Online Book Shop Using PHP has SQL Injection vulnerability via $subcatid paremeter in /booklist.php
.
https://code-projects.org/online-book-shop-using-php-source-code/
/booklist.php - $subcatid
paremeter.
The SQL Injection vulnerability exists in diretory /booklist.php
where this function query the subcatid parameter into the SQL statement without any restriction, validation or sanitization. An attacker could exploit this vulnerability to get unauthorized access to the server database, or even perform Remote Code Execution (RCE).
$cat=$_GET['subcatid'];
$totalq="select count(*) \"total\" from book where b_subcat='$cat'";
$totalres=mysqli_query($conn,$totalq) or die("Can't Execute Query...");
$totalrow=mysqli_fetch_assoc($totalres);