Prevelate / WebGoat.NET

OWASP WebGoat.NET
0 stars 0 forks source link

CX Stored_XSS @ WebGoat/Content/PathManipulation.aspx.cs [master] #21

Open Prevelate opened 4 years ago

Prevelate commented 4 years ago

Stored_XSS issue exists @ WebGoat/Content/PathManipulation.aspx.cs in branch master

Method ResponseFile at line 49 of WebGoat\Content\PathManipulation.aspx.cs gets data from the database, for the ReadBytes 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 ResponseFile at line 49 of WebGoat\Content\PathManipulation.aspx.cs. This may enable a Stored Cross-Site-Scripting attack.

Severity: High

CWE:79

Vulnerability details and guidance

Checkmarx

Lines: 88


Code (Line #88):

                            _Response.BinaryWrite(br.ReadBytes(pack));

Prevelate commented 4 years ago

Issue still exists.