提交 #1055655: amirhamza05 Student-Management-System 1.0 Stored Cross-Site Scripting信息

标题amirhamza05 Student-Management-System 1.0 Stored Cross-Site Scripting
描述A stored cross-site scripting (XSS) vulnerability exists in the Live Chat functionality. The chat message handler in `page_action/nav_bar/chat_system.php:3-10` accepts the `send_message_chat` POST parameter and stores the message in the `chat` table without sanitization or HTML encoding. When the chat body is loaded, the stored message is echoed directly into the page via `<?php echo "$message"; ?>` at `chat_system.php:97` and `chat_system.php:127`, with no output encoding applied. As a result, any authenticated user can send a chat message containing arbitrary HTML or JavaScript, such as: ```html <script>alert(document.domain)</script> ``` The payload persists in the database and executes in the browser of every user who opens the Live Chat panel, including administrators. The Live Chat entry is visible to all logged-in users via `layout/nev_bar.php:32`, and the entry point `nav_bar_action.php` only verifies that a session exists.
来源⚠️ https://github.com/amirhamza05/Student-Management-System/issues/77
用户
 CDicetea (UID 96479)
提交2026-10-24 11時55分 (1 月前)
管理2026-11-23 19時31分 (1 month later)
状态已接受
VulDB条目442505 [amirhamza05 Student-Management-System 直到 449397e35d42e3779f14f0bfc654ab307103f7e3 Live Chat chat_system.php send_message_chat 跨网站脚本]
积分20

Interested in the pricing of exploits?

See the underground prices here!