CVE-2026-94016 in Drug Recommendation Systeminfo

Summary

by MITRE • 09/20/2026

A security flaw has been discovered in SourceCodester Drug Recommendation System 1.0. This impacts an unknown function of the file /drug_recommender/Admin/add_symptom. Performing a manipulation of the argument txtname results in cross site scripting. Remote exploitation of the attack is possible. The exploit has been released to the public and may be used for attacks.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 09/28/2026

The SourceCodester Drug Recommendation System version 1.0 contains a critical input validation vulnerability within its administrative interface, specifically located at the /drug_recommender/Admin/add_symptom endpoint. This flaw manifests as an Unrestricted Upload of File with Dangerous Type or more accurately in this context, Stored Cross-Site Scripting due to insufficient sanitization of user-supplied data before it is processed and subsequently rendered by the web application. The vulnerability arises because the system fails to adequately filter special characters or script tags within the txtname argument passed during symptom creation operations. When an attacker submits maliciously crafted input containing JavaScript code through this parameter, the server accepts the payload without validation and stores it in its backend database for future retrieval and display purposes.

This architectural oversight allows for a persistent cross-site scripting attack vector that significantly elevates the risk profile of the application compared to reflected variants. Because the injected script is stored on the server side, every user who accesses the affected page or view where this data is rendered will execute the malicious code within their own browser session context. This persistence ensures that the impact extends beyond a single interaction with the vulnerable endpoint, affecting potentially all users of the system including administrators and patients depending on how the symptom data is displayed in the interface. The presence of an exploit kit released to the public further amplifies the immediacy and severity of this threat, as automated tools can now easily identify and target instances of this specific software version without requiring custom development efforts from attackers.

From a technical perspective, this vulnerability aligns with CWE-79 Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting XSS. The failure to implement proper output encoding or input validation on the txtname parameter violates fundamental secure coding principles outlined in standards such as OWASP Top 10 under A3:2021 Injection and potentially A5:2021 Security Misconfiguration if default credentials are also present which is common with SourceCodester projects. The ability to execute arbitrary scripts enables attackers to perform session hijacking by stealing cookies or authentication tokens, conduct phishing attacks within the trusted context of the application, deface web pages, or redirect users to malicious sites designed to distribute malware. Given that this affects an administrative function add_symptom it suggests that even if a regular user cannot directly trigger the storage via public-facing forms, any authenticated administrator with access to manage symptoms becomes a high-value target for credential theft leading to full system compromise.

The operational impact of this vulnerability is severe due to its potential for widespread data exfiltration and loss of integrity within the drug recommendation ecosystem. Attackers leveraging ATT&CK technique T1059 Command and Scripting Interpreter can use the stored script to execute further commands on victim machines if combined with other vulnerabilities or social engineering tactics. The persistence of the payload means that remediation requires not only patching the code but also cleaning existing malicious entries from the database to prevent continued exposure of users who have already visited affected pages. Without immediate intervention, the application serves as a vector for large-scale attacks against its user base undermining trust in the healthcare-related data processing capabilities of the system.

Mitigation strategies must focus on implementing robust input validation and output encoding mechanisms immediately. Developers should enforce strict allow-listing for the txtname parameter ensuring that only alphanumeric characters and safe punctuation are accepted while rejecting any HTML or script-like structures at the point of entry. Additionally, applying context-sensitive output encoding when rendering user-supplied data in HTML contexts is essential to neutralize any residual malicious content that might bypass input filters. Implementing a Content Security Policy header can also provide an additional layer of defense by restricting the sources from which scripts are allowed to execute thereby mitigating the impact even if XSS occurs. Updating to a patched version of the software as soon as available and auditing existing database records for injected payloads are critical steps in restoring security posture.

Responsible

VulDB

Disclosure

09/20/2026

Moderation

accepted

Exploit

Download

EPSS

0.00368

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!