Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to admin panel (PR:H)
-
DeliveryOpen Drug Creation form
-
ExploitInject SQL via txtname/cmdtype parameters
-
ExecutionManipulate backend database query
-
ImpactRead or modify stored records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated administrator session (PR:H) because the vulnerable endpoint /Admin/add_drug.php is part of the admin-only Drug Creation component; the attacker must reach the add-drug form and supply crafted input in the txtname, cmdtype, txtusage, txtsideeffect, or cmdcontraindication POST parameters. No user interaction by a victim is needed (UI:N) and the attack is network-remote (AV:N), but the hard limiting factor is that prior admin-level access is mandatory - this is not exploitable by an anonymous remote user against a default configuration. Impact is bounded to LOW (partial read/write of the application database), not full server compromise. |
| Impact | This is a low-to-moderate priority issue despite the SQL injection classification. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N) indicates network-reachable, low-complexity exploitation but requires HIGH privileges (PR:H) - the vulnerable endpoint /Admin/add_drug.php sits inside the administrative panel, so an attacker must already hold admin-level access, which sharply limits real-world risk. Impact is rated LOW across confidentiality, integrity, and availability (VC:L/VI:L/VA:L), not a full database takeover, yielding a modest 5.1 (Medium) base score. The E:P temporal flag and the description ('exploit is publicly available') confirm publicly available exploit code exists, but there is NO CISA KEV listing and no EPSS score was provided in the input, so there is no evidence of active or widespread exploitation. The signals are internally consistent: a credentialed SQLi with limited impact in niche software. The dominant mitigating factor is the PR:H requirement - an unauthenticated attacker cannot reach this. No EPSS data was supplied, so exploitation probability cannot be quantified from the input. |
| Exploit ScenarioDerived | An attacker who has already obtained administrator credentials to the Drug Recommendation System logs into the admin panel and navigates to the drug creation feature. They submit the add-drug form with a malicious SQL payload in one of the txtname, cmdtype, txtusage, txtsideeffect, or cmdcontraindication parameters, causing the backend query to be manipulated to read or alter database contents. Public exploit code for this parameter injection is available, lowering the skill required to reproduce the attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
SQL injection in the admin Drug Creation routine of SourceCodester Drug Recommendation System 1.0 lets an attacker with an existing administrator session read and tamper with the application's database by submitting crafted values through the txtname, cmdtype, txtusage, txtsideeffect, or cmdcontraindication parameters of /Admin/add_drug.php. The hard prerequisite is prior admin-level access (CVSS PR:H / the assessed CVSS:3.1 vector PR:H), so this is not exploitable by an anonymous remote user against a default installation, and impact is bounded to partial confidentiality, integrity and availability of the application database. Publicly available exploit code exists (the CVSS 4.0 vector carries E:P), although there is no indication of confirmed active exploitation (not in CISA KEV), and the issue should be treated as low-to-moderate priority relative to the SQL injection classification.
RemediationAI
No vendor-released patch or fixed version is identified at time of analysis, so remediation must be code-level and compensating. The durable fix is to rewrite the insert/update logic in /Admin/add_drug.php to use parameterized queries (PDO or mysqli prepared statements with bind_param) for txtname, cmdtype, txtusage, txtsideeffect and cmdcontraindication, and to apply strict server-side allow-listing/type validation on those fields; where the source is not maintained in-house, this means forking and patching the file directly. Until that is done, restrict the entire /Admin/ path to trusted management networks (VPN, IP allow-list, or reverse-proxy authentication), which fully removes the network attack surface but blocks remote administration; if the Drug Creation form is not required, disable or delete /Admin/add_drug.php entirely. Additional layers with their trade-offs: run the application's database account with least privilege and no FILE/stacked-query capabilities (limits injection payoff but does not stop data theft), enable a WAF rule set for SQLi payloads on POST bodies (bypassable via encoding/obfuscation and prone to false positives), and log/alert on anomalous admin POST traffic. Because proof-of-concept exploit code is publicly available, prioritise hardening or removal of the admin endpoint over passive monitoring. Track https://vuldb.com/vuln/413409 and https://www.sourcecodester.com/ for a vendor fix, and note that the absence of patch data in the current sources is not proof that no fix exists.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The target is a PHP-based open-source drug recommendation/pharmacy web application distributed by SourceCodester, where CPE data (cpe:2.3:a:sourcecodester:drug_recommendation_system) confirms the vendor and product but attaches no version boundary, meaning the reported behaviour applies to the 1.0 release as published. The defect class is CWE-89, improper neutralization of special elements used in an SQL command: the admin script /Admin/add_drug.php apparently concatenates attacker-controlled POST fields (txtname, cmdtype, txtusage, txtsideeffect, cmdcontraindication) directly into a database query instead of binding them as prepared-statement parameters, so injected SQL syntax is interpreted by the backend database engine. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P shows a network-reachable, low-complexity, no-special-conditions attack that nevertheless requires high privileges, needs no victim interaction, and stays within the same security scope, producing only low-level read, write and availability effects rather than full server compromise or database-engine command execution. The E:P metric reflects proof-of-concept exploit maturity, which aligns with the report that exploit code is publicly available, but is distinct from evidence of real-world attacks.
Know when Drug Recommendation System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Admin-only endpoint requires authenticated high privileges (PR:H); network-reachable with simple crafted input (AV:N/AC:L); limited partial database read/write yields C:L/I:L/A:L with no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was identified in SourceCodester Drug Recommendation System 1.0. The affected element is an unknown function of the file /Admin/add_drug.php of the component Drug Creation. Such manipulation of the argument txtname/cmdtype/txtusage/txtsideeffect/cmdcontraindication leads to sql injection. The attack may be performed from remote. The exploit is publicly available and might be used.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Related Vulnerabilities in Drug Recommendation System SQL Injection Flaws
View all 5More in Drug Recommendation System
View allAuthentication bypass in SourceCodester Drug Recommendation System 1.0 lets remote, unauthenticated attackers impersonat
SQL injection in SourceCodester Drug Recommendation System 1.0 lets a remote attacker manipulate the SQL query behind /d
SQL injection in SourceCodester Drug Recommendation System 1.0 allows remote attackers to manipulate the ID parameter in
Cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows unauthenticated remote attackers to inject
Cross-site scripting (XSS) in SourceCodester Drug Recommendation System 1.0 allows remote attackers to inject malicious
Cross-site request forgery in SourceCodester Drug Recommendation System 1.0 allows a remote attacker to make an authenti
Stored cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows an authenticated user with access to
Stored cross-site scripting in the admin symptom-management form (drug_recommender/Admin/add_symptom) of SourceCodester
Cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows remote, unauthenticated attackers to inject
Stored cross-site scripting in SourceCodester Drug Recommendation System 1.0 lets unauthenticated remote attackers injec
EUVD-2026-92162
GHSA-46x6-gw8q-rwjw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB