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-2024-2135 Overview
CVE-2024-2135 is a stored cross-site scripting (XSS) vulnerability in Bdtask Hospital AutoManager versions up to 20240223. The flaw resides in the /hospital_activities/birth/form endpoint within the Hospital Activities Page component. An attacker can inject arbitrary HTML or JavaScript through the Description parameter, which the application fails to sanitize before rendering. The exploit has been publicly disclosed under identifier VDB-255497. The vendor was contacted prior to disclosure but did not respond.
Critical Impact
Remote attackers can execute arbitrary JavaScript in the context of authenticated hospital staff sessions, enabling session hijacking, credential theft, and manipulation of patient activity records.
Affected Products
- Bdtask Hospital AutoManager versions up to and including 20240223
- Component: Hospital Activities Page (/hospital_activities/birth/form)
- Parameter: Description
Discovery Timeline
- 2024-03-03 - CVE-2024-2135 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-2135
Vulnerability Analysis
The vulnerability is a stored cross-site scripting flaw classified under [CWE-79]. The Hospital Activities Page accepts user-supplied input in the Description field of the birth registration form at /hospital_activities/birth/form. The application stores and later renders this input without applying output encoding or input sanitization. When a staff member views the activity record, the injected markup executes within the browser session.
Because the payload persists in the application database, every subsequent viewer of the affected record triggers script execution. This expands the blast radius beyond a single victim. Impacted sessions typically belong to clinical and administrative users with elevated access to patient data.
Root Cause
The root cause is missing input validation and output encoding on the Description parameter. The server-side code accepts raw HTML content and reflects it unchanged into the DOM when the activity record is rendered. No Content Security Policy (CSP) appears to mitigate inline script execution.
Attack Vector
The attack is remotely exploitable over the network and requires user interaction, specifically a victim viewing the stored record. An attacker with the ability to submit a birth activity form supplies a payload such as <img src=a onerror=alert(1)> in the Description field. When any authenticated user later loads the record, the browser evaluates the attacker-controlled script in the trusted origin of the application.
An attacker can leverage this to steal session cookies, perform actions on behalf of victims through the application's own API, deliver browser-based exploits, or modify patient-facing content. See the VulDB entry for VDB-255497 for additional technical details.
Detection Methods for CVE-2024-2135
Indicators of Compromise
- Birth activity records containing HTML tags, event handlers, or script fragments in the Description field (<script>, onerror=, onload=, javascript:)
- Unexpected outbound requests from staff browsers to attacker-controlled domains shortly after loading the Hospital Activities Page
- Anomalous session cookie use from geographies or devices that do not match the legitimate user
Detection Strategies
- Review database rows in the hospital activities tables for stored HTML or JavaScript payloads in free-text columns
- Inspect web server access logs for POST requests to /hospital_activities/birth/form that contain URL-encoded <, >, or script tokens in the Description parameter
- Deploy a web application firewall (WAF) rule to flag XSS signatures targeting the birth activity endpoint
Monitoring Recommendations
- Enable browser-side Content Security Policy violation reporting to surface inline script execution attempts
- Alert on authenticated session reuse from new IP addresses or user agents immediately after staff access the Hospital Activities Page
- Correlate web application logs with endpoint telemetry to identify follow-on activity such as credential harvesting or lateral access attempts
How to Mitigate CVE-2024-2135
Immediate Actions Required
- Restrict network access to the Hospital AutoManager application to trusted clinical networks only until a vendor patch is available
- Audit existing birth activity records and remove any entries containing HTML tags or script content in the Description field
- Rotate active user sessions and reset credentials for accounts that accessed affected records during the exposure window
Patch Information
No vendor patch is currently referenced in the public advisory. The vendor was contacted prior to disclosure but did not respond. Operators should monitor Bdtask communications for an updated release beyond version 20240223 and apply it when available.
Workarounds
- Deploy a WAF rule that blocks requests to /hospital_activities/birth/form containing characters such as <, >, or javascript: in the Description parameter
- Enforce a strict Content Security Policy that disallows unsafe-inline script execution across the application
- Apply server-side output encoding by placing a reverse proxy filter that HTML-encodes response bodies for activity records
- Limit write access to the birth activity form to a minimum set of trusted users to reduce the attacker pool
# Example ModSecurity rule blocking XSS payloads on the vulnerable endpoint
SecRule REQUEST_URI "@beginsWith /hospital_activities/birth/form" \
"id:1002135,phase:2,deny,status:403,log,msg:'CVE-2024-2135 XSS attempt',\
chain"
SecRule ARGS:Description "@rx (?i)(<\s*script|onerror\s*=|onload\s*=|javascript:)" \
"t:none,t:urlDecodeUni"
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

