Skip to content

CX Use_Of_Broken_Or_Risky_Cryptographic_Algorithm @ Controllers/PasswordResetsController.cs [Merge_Branch]

Use_Of_Broken_Or_Risky_Cryptographic_Algorithm issue exists @ Controllers/PasswordResetsController.cs in branch Merge_Branch

In Post, the application protects sensitive data using a cryptographic algorithm, ComputeHash, that is considered weak or even trivially broken, in Controllers\PasswordResetsController.cs at line 80.

Severity: Low

CWE:327

Checkmarx

Training Recommended Fix

Lines: 80


Code (Line #80):

         var hash = md5.ComputeHash(System.Text.Encoding.ASCII.GetBytes(passwordResetRequest.email));

Edited by Gabriel Prevelate