CVE-2025–63611: Stored Cross-Site Scripting(XSS) in Hostel Mana
The complaint submission form in Hostel Management System v2.1 stores the 'Explain the Complaint' textarea input in the database without sanitisation, and the admin complaint detail page renders it without output encoding. An authenticated user could submit a script payload that executes in an administrator's browser when the complaint is viewed.
Published on medium.com
A stored Cross-Site Scripting (XSS) vulnerability exists in Hostel Management System v2.1 within the complaint submission functionality.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application saves raw user input from the complaint textarea to the database and later prints it into the admin page without escaping, so browser markup in the input is treated as code.
Impact
A submitted payload could execute in the browser of any administrator who views the complaint, which may let the attacker act with the administrator's privileges.
What the attacker needed
A user account on the application; an administrator views the complaint
The fix
The report recommends escaping output with a function such as htmlspecialchars and/or sanitising the input; it does not state that a fix was released.
How it was found
- Log in as a user and open the complaint submission page.
- Enter a script payload in the 'Explain the Complaint' field and submit it.
- As an administrator, open the new complaints list.
- Open the complaint detail page for the submitted complaint, where the payload executes.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A web page can contain small scripts that run in your browser. This app lets a student type text into a complaint form and saves it word for word. When an administrator later opens that complaint, the saved script runs in the administrator's browser, which is called stored cross-site scripting because the harmful content is stored on the server first.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.