| 제목 | ShopXO 6.5.0 Cross Site Scripting |
|---|
| 설명 | Summary
A Reflected Cross-Site Scripting (XSS) vulnerability exists in ShopXO 6.5.0, affecting multiple template files (header.html and is_header.html) across different modules. The issue arises due to insufficient input sanitization of the system_type parameter, allowing attackers to inject arbitrary JavaScript via a crafted URL.
Details
Insufficient Sanitization in Template Files:
The system_type parameter is passed directly into JavaScript without proper escaping for single quotes (').
While htmlentities() is applied, it does not prevent JavaScript injection when the value is used inside a JavaScript string context.
Vulnerable Code Locations:
app/admin/view/default/lib/is_header.html
app/admin/view/default/public/header.html
app/index/view/default/lib/is_header.html
app/index/view/default/public/header.html
app/install/view/public/header.html
Vulnerable Code Snippet:
<script>
var __system_type__ = '<?php echo htmlentities((string) $system_type); ?>';
Proof of Concept (PoC)
http://target-ip/?s=user/modallogininfo&system_type=1%27;alert(document.cookie);var%20__test__=%271 |
|---|
| 원천 | ⚠️ https://github.com/gongfuxiang/shopxo/issues/88 |
|---|
| 사용자 | jiashenghe (UID 39445) |
|---|
| 제출 | 2025. 07. 01. AM 06:07 (1 년도 ago) |
|---|
| 모더레이션 | 2025. 07. 13. AM 09:05 (12 days later) |
|---|
| 상태 | 중복 |
|---|
| VulDB 항목 | 316265 [ShopXO 까지 6.5.0 header.html lang/system_type 크로스 사이트 스크립팅] |
|---|
| 포인트들 | 0 |
|---|