kmcdon83 / DVWA

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

CX Stored_XSS @ dvwa/includes/dvwaPage.inc.php [master] #20

Open ghost opened 3 years ago

ghost commented 3 years ago

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

Method dvwaGuestbook at line 503 of dvwa\includes\dvwaPage.inc.php gets data from the database, for the mysqli_fetch_row 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 dvwaHtmlEcho at line 183 of dvwa\includes\dvwaPage.inc.php. This may enable a Stored Cross-Site-Scripting attack.

Severity: High

CWE:79

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 509


Code (Line #509):

    while( $row = mysqli_fetch_row( $result ) ) {

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.