Submit #1055655: amirhamza05 Student-Management-System 1.0 Stored Cross-Site Scriptinginfo

Titleamirhamza05 Student-Management-System 1.0 Stored Cross-Site Scripting
DescriptionA 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.
Source⚠️ https://github.com/amirhamza05/Student-Management-System/issues/77
User
 CDicetea (UID 96479)
Submission10/24/2026 11:55 (1 month ago)
Moderation11/23/2026 19:31 (1 month later)
StatusAccepted
VulDB entry442505 [amirhamza05 Student-Management-System up to 449397e35d42e3779f14f0bfc654ab307103f7e3 Live Chat chat_system.php send_message_chat cross site scripting]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!