jbruinaud / WebGoatNet

WebGoat .Net for demos
0 stars 0 forks source link

CX Reflected_XSS_All_Clients @ Content/SQLInjectionDiscovery.aspx.cs [master] #213

Open jbruinaud opened 4 years ago

jbruinaud commented 4 years ago

Reflected_XSS_All_Clients issue exists @ Content/SQLInjectionDiscovery.aspx.cs in branch master

Method btnFind_Click at line 23 of Content\SQLInjectionDiscovery.aspx.cs gets user input for the Text 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 btnFind_Click at line 23 of Content\SQLInjectionDiscovery.aspx.cs. This may enable a Cross-Site-Scripting attack.

Severity: High

CWE:79

Checkmarx

Lines: 27


Code (Line #27):

                string name = txtID.Text.Substring(0, 3);