Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-5726 Overview
CVE-2025-5726 is a stored cross-site scripting (XSS) vulnerability in SourceCodester Student Result Management System 1.0, developed by razormist. The flaw resides in the Division System Page accessible through the /script/academic/division-system endpoint. Attackers can inject malicious script payloads through the Division parameter, which the application stores and later renders without proper sanitization [CWE-79].
The vulnerability was publicly disclosed with proof-of-concept details available on GitHub. Exploitation requires authenticated access with high privileges and user interaction to trigger the stored payload.
Critical Impact
Authenticated attackers can store JavaScript payloads in the Division field, executing arbitrary script in the browser context of users who view the affected page.
Affected Products
- SourceCodester Student Result Management System 1.0
- razormist Student Result Management System (CPE: cpe:2.3:a:razormist:student_result_management_system:1.0)
- Division System Page component (/script/academic/division-system)
Discovery Timeline
- 2025-06-06 - CVE-2025-5726 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-5726
Vulnerability Analysis
The vulnerability is a stored cross-site scripting flaw in the Division System Page of the Student Result Management System. The application accepts user-supplied input through the Division form field and persists it to the backend database without applying output encoding or input sanitization.
When any user subsequently loads the Division System Page, the server renders the stored value directly into the HTML response. Browsers interpret the injected <script> content as executable JavaScript. The attack executes in the context of the viewing user's session, enabling session token theft, forced actions, or defacement of administrative pages.
The issue is categorized under CWE-79: Improper Neutralization of Input During Web Page Generation. Research details are published at 0xEricTee's Stored XSS Research.
Root Cause
The application fails to neutralize HTML and JavaScript metacharacters supplied through the Division parameter. Neither server-side input validation nor context-aware output encoding is applied before the data is written to persistent storage or echoed back in the HTML response.
Attack Vector
An authenticated attacker with high privileges submits a crafted request to /script/academic/division-system containing a JavaScript payload in the Division parameter. The payload persists in the database. Victim users browsing the Division System Page then execute the attacker's script within their authenticated session context. Detailed field-level analysis is available in the Division Field writeup.
Detection Methods for CVE-2025-5726
Indicators of Compromise
- Database records in the Division table containing HTML tags such as <script>, <img onerror=>, or <svg onload=>.
- HTTP POST requests to /script/academic/division-system with URL-encoded < (%3C) or > (%3E) characters in the Division parameter.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains after visiting the Division page.
Detection Strategies
- Deploy a web application firewall rule that inspects POST bodies submitted to the /script/academic/division-system endpoint for HTML tag characters and known XSS payload patterns.
- Perform routine database audits of the Division storage table to identify records containing script-like syntax.
- Enable browser Content Security Policy (CSP) violation reporting to surface inline script execution on administrative pages.
Monitoring Recommendations
- Correlate authenticated session activity with suspicious writes to the Division field, flagging accounts that submit encoded script payloads.
- Monitor browser referer logs and administrator session anomalies, such as unexpected cookie transmission or privilege changes.
- Track VulDB intelligence entries VulDB #311246 for updated exploit disclosures.
How to Mitigate CVE-2025-5726
Immediate Actions Required
- Restrict access to the /script/academic/division-system endpoint to trusted administrator accounts only.
- Audit the Division table and remove any records containing HTML or JavaScript syntax.
- Rotate administrator session tokens and credentials if stored payloads are discovered.
Patch Information
No official vendor patch is listed in the NVD advisory for this release of the Student Result Management System. Organizations running this application should evaluate alternative solutions or apply source-level fixes. Reference materials are available at SourceCodester Security Resources and VulDB #311246 Details.
Workarounds
- Apply server-side input validation on the Division parameter, rejecting non-alphanumeric characters where business logic permits.
- Implement context-aware HTML output encoding using functions such as htmlspecialchars($value, ENT_QUOTES, 'UTF-8') before rendering stored values.
- Deploy a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
- Place the application behind a web application firewall with XSS signatures enabled until a vendor fix is available.
# Example Apache CSP header configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'"
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

