| 제목 | Visitor management system CMS exist Cross-site scripting Vulnerability |
|---|
| 설명 | Visitor management 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:guestmanagement/myform.php
look at this source code
```
if(empty($_POST["name"]))
$name_error = "Enter the Name Properly !";
else
$name = $_POST["name"];
```
There is no protection for the name here. The `name` variable is directly output here. Here we can insert XSS statements to steal user cookies and other information. The construction statement is as follows
```
MeetingTo=<script>alert(document.cookie)&cno=1111111111&comment=<script>alert(document.cookie)&mydata=&name=<script>alert(document.cookie)</script>&purpose=<script>alert(document.cookie)&submit_post=Submit
```
https://s1.ax1x.com/2022/08/13/vtDEFO.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. AM 09:33 (4 연령 ago) |
|---|
| 모더레이션 | 2022. 08. 14. AM 08:27 (23 hours later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 206397 [SourceCodester Guest Management System myform.php 이름 크로스 사이트 스크립팅] |
|---|
| 포인트들 | 20 |
|---|