jbruinaud / WebGoatNet

WebGoat .Net for demos
0 stars 0 forks source link

CX Reflected_XSS_All_Clients @ WebGoatCoins/ProductDetails.aspx [master] #209

Open jbruinaud opened 4 years ago

jbruinaud commented 4 years ago

Reflected_XSS_All_Clients issue exists @ WebGoatCoins/ProductDetails.aspx in branch master

Method %> at line 1 of WebGoatCoins\ProductDetails.aspx gets user input for the Request 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 %> at line 1 of WebGoatCoins\ProductDetails.aspx. This may enable a Cross-Site-Scripting attack.

Severity: High

CWE:79

Checkmarx

Lines: 19


Code (Line #19):

    <h1 class="title-regular-4 clearfix">Details for <%=(Request["productNumber"] == null ? "This Month's Special" : "Product #" + Request["productNumber"].ToString()) %></h1>