vish07 / WackoPicko

WackoPicko is a vulnerable web application used to test web application vulnerability scanners.
MIT License
0 stars 0 forks source link

CX Second_Order_SQL_Injection @ website/include/users.php [master] #23

Open vish07 opened 4 years ago

vish07 commented 4 years ago

Second_Order_SQL_Injection issue exists @ website/include/users.php in branch master

Method get_user at line 15 of website\include\users.php gets database data from the mysql_fetch_assoc element. This element’s value then flows through the code without being properly sanitized or validated, and is eventually used in a database query in method get_purchased_pictures at line 125 of website\include\pictures.php. This may enable an Second-Order SQL Injection attack.

Severity: High

CWE:89

Vulnerability details and guidance

Checkmarx

Lines: 22 102 157


Code (Line #22):

     return mysql_fetch_assoc($res);

Code (Line #102):

     return mysql_fetch_assoc($res);

Code (Line #157):

        $cur_user = Users::get_user($_SESSION['userid']);

vish07 commented 4 years ago

Issue still exists.

vish07 commented 4 years ago

Issue still exists.