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-1082 Overview
CVE-2025-1082 is a stored cross-site scripting (XSS) vulnerability in Mindskip xzs-mysql 学之思开源考试系统 version 3.9.0. The flaw resides in the Exam Edit Handler accessible through the /api/admin/question/edit endpoint. An authenticated attacker can inject malicious script payloads into the title or content parameters, which the application stores and later renders without proper output encoding. The exploit has been publicly disclosed, and the vendor did not respond to disclosure attempts. The weakness is tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Attackers with low-privilege authenticated access can inject persistent JavaScript that executes in administrator browsers, enabling session hijacking, credential theft, and unauthorized actions in the exam management system.
Affected Products
- Mindskip xzs-mysql 学之思开源考试系统 3.9.0
- Component: Exam Edit Handler (/api/admin/question/edit)
- Vulnerable parameters: title and content
Discovery Timeline
- 2025-02-06 - CVE-2025-1082 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-1082
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the exam question management interface of Mindskip xzs-mysql, an open-source Chinese examination platform. When an authenticated user submits a request to the /api/admin/question/edit endpoint, the application accepts the title and content fields without neutralizing HTML or JavaScript metacharacters. The injected payload is persisted in the backing MySQL database and rendered to any subsequent viewer of the affected exam question.
Because the payload executes in the context of the victim's authenticated session, an attacker can perform actions permitted to that user. The attack is remotely exploitable over the network and requires low privileges plus user interaction, since a victim must view the poisoned exam content for the payload to fire.
Root Cause
The root cause is missing input sanitization and output encoding in the Exam Edit Handler. User-controlled title and content values flow directly from the HTTP request into persistent storage and ultimately into rendered HTML without contextual escaping. This is a classic violation of safe output handling for web content as described in CWE-79.
Attack Vector
An authenticated attacker sends a crafted POST request to /api/admin/question/edit, embedding a JavaScript payload inside the title or content parameter. The exam question is saved with the malicious markup intact. When another user, typically an administrator reviewing exam content, loads the affected question in a browser, the script executes with that user's privileges and session cookies. Technical reproduction details are documented in the public vulnerability research write-up.
Detection Methods for CVE-2025-1082
Indicators of Compromise
- Exam question records in the xzs-mysql database containing HTML tags such as <script>, <img onerror=>, or <svg onload=> in title or content columns.
- HTTP POST requests to /api/admin/question/edit whose body contains encoded or raw JavaScript event handlers.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains following exam content viewing.
Detection Strategies
- Perform database queries against the exam question tables to search for script tags and JavaScript event-handler attributes stored in text fields.
- Enable web application firewall (WAF) rules that flag XSS signatures in requests targeting /api/admin/question/edit.
- Review application access logs for low-privileged accounts repeatedly editing exam questions outside normal patterns.
Monitoring Recommendations
- Alert on anomalous JavaScript execution originating from the exam administration UI using browser Content Security Policy (CSP) violation reports.
- Monitor admin account activity for unexpected API calls or privilege use that may indicate session hijacking after XSS execution.
- Correlate authentication events with HTTP referrers to detect administrator sessions interacting with poisoned exam content.
How to Mitigate CVE-2025-1082
Immediate Actions Required
- Restrict access to the /api/admin/question/edit endpoint to trusted administrators until a fix is available, since the vendor has not responded to disclosure.
- Audit existing exam question records for stored script payloads and sanitize or remove suspicious entries.
- Rotate credentials and invalidate active sessions for any administrator who may have viewed attacker-controlled exam content.
Patch Information
No vendor patch is available. According to the disclosure, the vendor was contacted but did not respond. Organizations running Mindskip xzs-mysql 3.9.0 should consider forking the project to apply custom output encoding, or migrating to a maintained alternative. Refer to the public advisory for technical reproduction details.
Workarounds
- Deploy a WAF rule in front of xzs-mysql that strips or blocks HTML tags and JavaScript event handlers in POST bodies to /api/admin/question/edit.
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
- Limit account provisioning so only vetted staff hold question-editing privileges, reducing the pool of accounts capable of planting payloads.
- Apply server-side input validation at a reverse proxy to reject requests whose title or content fields contain <, >, or javascript: sequences.
# Example NGINX rule to block script-like payloads to the vulnerable endpoint
location = /api/admin/question/edit {
if ($request_body ~* "(<script|onerror=|onload=|javascript:)") {
return 403;
}
proxy_pass http://xzs_backend;
}
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

