提交 #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)
提交2026-07-21 20時17分 (2 月前)
管理2026-09-23 15時47分 (2 months later)
状态已接受
VulDB条目408967 [Abdurrab5 online-makeup-store Admin Login index.php id/password SQL注入]
积分20

Might our Artificial Intelligence support you?

Check our Alexa App!