Отправить #898997: Abdurrab5 (Github) Online Makeup Store 1.0 Unauthenticated SQL Injection (Authentication Bypass)Информация

НазваниеAbdurrab5 (Github) Online Makeup Store 1.0 Unauthenticated SQL Injection (Authentication Bypass)
ОписаниеThe admin login handler in index.php concatenates the id and password POST parameters directly into a SQL query, with no prepared statement, escaping, or validation: $aid=$_POST['id']; $password=$_POST['password']; $query="SELECT * FROM admin WHERE id='$aid' and password='$password' "; $result= mysqli_query($link, $query); if(mysqli_num_rows($result)){ // ... login succeeds, $_SESSION['adminid'] is set } The id parameter is injectable. An attacker can supply ' OR '1'='1' -- to make the WHERE clause always true and comment out the password check, authenticating as an administrator without any credentials. Passwords are stored in plaintext, and the handler also reflects raw mysqli_error() output on failure (information exposure / error-based SQLi).
Источник⚠️ https://github.com/yashkeral/cve-writeups/blob/main/online-makeup-store/01-admin-login-sqli.md
Пользователь
 Yashkumar Keral (UID 99903)
Представление21.07.2026 20:17 (2 месяцы назад)
Модерация23.09.2026 15:47 (2 months later)
Статуспринято
Запись VulDB408967 [Abdurrab5 online-makeup-store Admin Login index.php id/password SQL-инъекция]
Баллы20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!