| 标题 | SourceCodester BarbarBaba 1.0 SQL Injection (Authentication Bypass) |
|---|
| 描述 | A SQL Injection vulnerability exists in the administrator login functionality of BarbarBaba version 1.0.
The login process in panel/index.php directly incorporates the username POST parameter into a SQL query without any sanitization, escaping, or use of prepared statements. This allows an attacker to manipulate the SQL query logic and bypass the authentication check.
$adminuser=$_POST['username'];
$password=md5($_POST['password']);
$query=mysqli_query($con,"select ID from tbladmin where UserName='$adminuser' && Password='$password' "); |
|---|
| 来源 | ⚠️ https://gist.github.com/c4ttr4ck/ce493363681ae3d7c7a500634818e219 |
|---|
| 用户 | c4ttr4ck (UID 75518) |
|---|
| 提交 | 2026-04-26 23時04分 (5 月前) |
|---|
| 管理 | 2026-05-24 08時29分 (27 days later) |
|---|
| 状态 | 重复 |
|---|
| VulDB条目 | 313776 [SourceCodester Best Salon Management System 1.0 Login 用户名 SQL注入] |
|---|
| 积分 | 0 |
|---|