cx-justin-ruth / CxFlowGithub

0 stars 0 forks source link

CX XSRF @ root/register.jsp [master] #33

Open cx-justin-ruth opened 2 years ago

cx-justin-ruth commented 2 years ago

XSRF issue exists @ root/register.jsp in branch master

Method = at line 7 of root\register.jsp gets a parameter from a user request from ""password1"". This parameter value flows through the code and is eventually used to access application state altering functionality. This may enable Cross-Site Request Forgery (XSRF).

Severity: Medium

CWE:352

Vulnerability details and guidance

Checkmarx

Lines: 51 7 46


Code (Line #51):

                        basketId = cookie.getValue();

Code (Line #7):

String password1 = (String) request.getParameter("password1");

Code (Line #46):

            Cookie[] cookies = request.getCookies();