Prevelate / WebGoat.NET

OWASP WebGoat.NET
0 stars 0 forks source link

CX Reflected_XSS_All_Clients @ WebGoat/App_Code/DB/SqliteDbProvider.cs [master] #20

Open Prevelate opened 4 years ago

Prevelate commented 4 years ago

Reflected_XSS_All_Clients issue exists @ WebGoat/App_Code/DB/SqliteDbProvider.cs in branch master

Method GetSecurityQuestionAndAnswer at line 282 of WebGoat\App_Code\DB\SqliteDbProvider.cs gets user input for the row element. This element’s value then flows through the code without being properly sanitized or validated and is eventually displayed to the user in method ButtonCheckEmail_Click at line 26 of WebGoat\WebGoatCoins\ForgotPassword.aspx.cs. This may enable a Cross-Site-Scripting attack.

Severity: High

CWE:79

Vulnerability details and guidance

Checkmarx

Lines: 300 301


Code (Line #300):

                    qAndA[0] = row[0].ToString();

Code (Line #301):

                    qAndA[1] = row[1].ToString();

Prevelate commented 4 years ago

Issue still exists.