| 제목 | The simple and beautiful PHP shopping cart system has XSS vulnerability. |
|---|
| 설명 | Simple and beautiful PHP shopping cart system CMS exist Cross-site scripting Vulnerability .The input variables are not protected and output is directly output. Attackers can construct malicious code to steal user and administrator cookies.
Vulnerability file location:/mkshope/login.php
look at this source code
```
if (isset($_GET['status'])) {
$id=$_GET['status'];
$msg=$_GET['msg'];
<strong>Error:</strong> <?php echo $msg; ?>!
```
There is no protection for the `msg` here. The `msg` variable is directly output here. Here we can insert XSS statements to steal user cookies and other information. The construction statement is as follows
```
?status=error&msg=<script>alert(document.cookie)</script>
```
https://s1.ax1x.com/2022/08/13/vNcnHA.png
Source link
https://www.sourcecodester.com/php/12579/simple-and-nice-shopping-cart-script.html |
|---|
| 원천 | ⚠️ https://www.sourcecodester.com/php/12579/simple-and-nice-shopping-cart-script.html |
|---|
| 사용자 | qidian (UID 30810) |
|---|
| 제출 | 2022. 08. 14. AM 11:36 (4 연령 ago) |
|---|
| 모더레이션 | 2022. 08. 14. PM 12:31 (55 minutes later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 206401 [SourceCodester Simple and Nice Shopping Cart Script /mkshope/login.php msg 크로스 사이트 스크립팅] |
|---|
| 포인트들 | 20 |
|---|