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-2274 Overview
CVE-2024-2274 is a reflected cross-site scripting (XSS) vulnerability in Bdtask G-Prescription Gynaecology & OBS Consultation Software 1.0. The flaw resides in the Prescription Dashboard component accessible through the /Home/Index endpoint. Attackers can inject malicious script content through the Title parameter, which the application renders without proper sanitization. The vulnerability has been publicly disclosed, and the vendor did not respond to disclosure attempts. The weakness is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Successful exploitation enables attackers to execute arbitrary JavaScript in the browser context of authenticated clinicians, potentially exposing patient data and session tokens.
Affected Products
- Bdtask G-Prescription Gynaecology & OBS Consultation Software 1.0
- Prescription Dashboard component (/Home/Index)
- Deployments exposing the Title parameter to untrusted input
Discovery Timeline
- 2024-03-08 - CVE-2024-2274 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2024-2274
Vulnerability Analysis
The vulnerability affects the Prescription Dashboard component of G-Prescription Gynaecology & OBS Consultation Software. The application accepts user-supplied input through the Title argument and reflects that content into the rendered HTML response without encoding or validation. Attackers can craft a URL containing JavaScript payloads in the Title parameter and deliver it through phishing, chat, or embedded links. When a logged-in user visits the crafted link, the injected script executes under the application's origin. The resulting access allows attackers to steal session cookies, perform actions on behalf of the victim, and exfiltrate medical records displayed in the dashboard.
Root Cause
The root cause is improper neutralization of user input before it is placed in the HTML output stream. The handler for /Home/Index writes the Title value directly into the response markup, enabling the browser to interpret attacker-controlled markup as executable script. No contextual output encoding or allowlist validation is applied before rendering.
Attack Vector
Exploitation requires a remote attacker to deliver a crafted link containing an XSS payload in the Title parameter. The attack requires user interaction, typically a click by an authenticated user. Because the scope changes to the browser context, injected script runs with the victim's session privileges. The exploit code has been publicly disclosed, lowering the barrier for opportunistic abuse against exposed instances.
No verified proof-of-concept code is published alongside this advisory. See the external VulDB entry VulDB #256043 for additional technical context.
Detection Methods for CVE-2024-2274
Indicators of Compromise
- Inbound HTTP requests to /Home/Index containing Title values with <script>, onerror, onload, or javascript: substrings
- Web server logs showing URL-encoded script fragments such as %3Cscript%3E or %3Cimg in the Title query parameter
- Unexpected outbound requests from clinician browsers to attacker-controlled domains shortly after dashboard access
Detection Strategies
- Deploy web application firewall (WAF) rules that identify reflected script patterns in query parameters targeting the Prescription Dashboard
- Review application access logs for anomalous Title parameter lengths or non-printable characters
- Correlate browser session anomalies, such as unexpected cookie access or token reuse, with dashboard page requests
Monitoring Recommendations
- Enable Content Security Policy (CSP) reporting to capture script-src violations originating from the application
- Alert on repeated requests to /Home/Index from the same source with varying Title payloads, indicating fuzzing
- Monitor outbound DNS and HTTP traffic from clinician endpoints for connections to newly registered or low-reputation domains
How to Mitigate CVE-2024-2274
Immediate Actions Required
- Restrict public exposure of the G-Prescription application and place it behind authenticated VPN access until a vendor fix is available
- Deploy WAF signatures that block script injection patterns in the Title parameter of /Home/Index
- Instruct clinical staff to avoid clicking unsolicited links referencing the prescription dashboard
Patch Information
No vendor patch is available at the time of publication. The vendor was contacted during coordinated disclosure but did not respond. Operators should track vendor channels for a future release addressing the Prescription Dashboard input handling. Reference VulDB CTI ID #256043 for ongoing tracking.
Workarounds
- Place the application behind a reverse proxy that enforces input validation and strips HTML metacharacters from the Title parameter
- Apply a strict Content Security Policy that disallows inline scripts and limits script sources to trusted origins
- Enable the HttpOnly and Secure attributes on session cookies to reduce the impact of script execution
- Terminate active sessions and rotate session identifiers if suspicious Title payloads are observed in logs
# Example NGINX reverse proxy rule to block script payloads in the Title parameter
if ($args ~* "Title=[^&]*(<|%3C)\s*script") {
return 403;
}
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

