jbruinaud / WebGoatNet

WebGoat .Net for demos
0 stars 0 forks source link

CX Heuristic_Stored_XSS @ Content/ForgotPassword.aspx.cs [master] #191

Open jbruinaud opened 4 years ago

jbruinaud commented 4 years ago

Heuristic_Stored_XSS issue exists @ Content/ForgotPassword.aspx.cs in branch master

Method ButtonCheckEmail_Click at line 27 of Content\ForgotPassword.aspx.cs gets data from the database, for the GetSecurityQuestionAndAnswer element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method ButtonCheckEmail_Click at line 27 of Content\ForgotPassword.aspx.cs. This may enable a Stored Cross-Site-Scripting attack.

Severity: Low

CWE:79

Checkmarx

Lines: 33


Code (Line #33):

                result = du.GetSecurityQuestionAndAnswer(txtEmail.Text);