kmcdon83 / DVWA

Damn Vulnerable Web Application (DVWA)
http://dvwa.co.uk
GNU General Public License v3.0
0 stars 1 forks source link

CX Reflected_XSS_All_Clients @ dvwa/includes/dvwaPage.inc.php [master] #10

Open ghost opened 3 years ago

ghost commented 3 years ago

Reflected_XSS_All_Clients issue exists @ dvwa/includes/dvwaPage.inc.php in branch master

Method dvwaSecurityLevelGet at line 135 of dvwa\includes\dvwaPage.inc.php gets user input for the _COOKIE 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 dvwaHtmlEcho at line 183 of dvwa\includes\dvwaPage.inc.php. This may enable a Cross-Site-Scripting attack.

Severity: High

CWE:79

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 112 136


Code (Line #112):

    dvwaRedirect( $_SERVER[ 'PHP_SELF' ] );

Code (Line #136):

    return isset( $_COOKIE[ 'security' ] ) ? $_COOKIE[ 'security' ] : 'impossible';

ghost commented 3 years ago

Issue still exists.

ghost commented 3 years ago

Issue still exists.

ghost commented 3 years ago

Issue still exists.

ghost commented 3 years ago

Issue still exists.