Skip to main content

Pharmacy Sales and Inventory System CVE-2026-7087

| EUVDEUVD-2026-25771 MEDIUM
SQL Injection (CWE-89)
2026-04-27 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Discover vulnerable endpoint /ajax.php
  2. Delivery
    Craft SQL injection payload in ID parameter
  3. Exploit
    Submit unauthenticated HTTP POST/GET request
  4. Install
    Trigger SQL query concatenation
  5. C2
    Extract database credentials/data
  6. Execute
    Escalate to admin access
  7. Impact
    Exfiltrate sensitive 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 the /ajax.php endpoint with action=save_sales to be accessible over the network. No special authentication, session cookies, or user interaction is required (CVSS PR:N/UI:N) - any remote attacker can send HTTP requests directly to the vulnerable endpoint. The save_sales function must be implemented with dynamic SQL query construction that incorporates the ID parameter without sanitization, which appears to be the default behavior in version 1.0. Default installation configurations are vulnerable; no non-default settings or special features need to be enabled. Exploitation is limited only by network reachability of the web application. If the application is deployed on the public internet (common for small pharmacies using hosted solutions), attack surface is unrestricted. Internal-only deployments reduce exposure to network-adjacent attackers.

Impact

This vulnerability presents elevated real-world risk despite the moderate CVSS 7.3 score. The CVSS vector AV:N/AC:L/PR:N/UI:N indicates remote exploitation with low complexity, no authentication required, and no user interaction needed - a highly favorable attack surface for adversaries. Public exploit availability (GitHub POC at https://github.com/nidieaaa/test/issues/2) dramatically increases exploitation probability by enabling script kiddie-level attackers. The vulnerability is NOT listed in CISA KEV, suggesting no confirmed widespread exploitation campaigns yet, but public POC availability means defenders should treat this as imminently exploitable. SQL injection traditionally allows database extraction (C:L), data tampering (I:L), and potential denial of service through resource exhaustion or data deletion (A:L). The unscoped nature (S:U) limits impact to the vulnerable application tier, but pharmacy systems often contain sensitive patient health data and financial records, elevating real-world consequences. Primary risk factors: trivial exploitation requirements, public tooling, and sensitive data context. Mitigating factors: niche application with likely small deployment footprint, no confirmed active exploitation. Organizations running this system should treat as critical priority due to zero authentication barrier and healthcare data sensitivity.

Exploit ScenarioDerived

An external attacker discovers the pharmacy's web application at https://pharmacy-example.com/ajax.php. Without authentication, the attacker crafts a malicious HTTP request to /ajax.php?action=save_sales with the ID parameter containing SQL injection payload: ID=1' UNION SELECT username,password,email FROM users--. The vulnerable PHP code concatenates this input directly into a SQL query, causing the database to return administrator credentials. The attacker uses these credentials to access the admin panel, exfiltrating patient prescription records and financial data, then modifies medication inventory levels to cover tracks.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extract, modify, or delete database contents via the ID parameter in /ajax.php?action=save_sales endpoint. Publicly available exploit code exists (GitHub POC), enabling low-complexity attacks with no authentication barriers. EPSS data not available, but public exploit significantly lowers attacker skill threshold. CVSS 7.3 reflects network-exploitable vulnerability with moderate confidentiality, integrity, and availability impacts.

RemediationAI

Immediate action: Replace vulnerable version 1.0 with a patched release if available by checking https://www.sourcecodester.com/ and https://vuldb.com/vuln/359662 for updates. However, no vendor-released patch has been independently confirmed at time of analysis. Compensating controls: (1) Implement Web Application Firewall (WAF) rules to block SQL metacharacters in the ID parameter for /ajax.php requests - test thoroughly as this may break legitimate numeric ID values containing special characters; (2) Restrict network access to /ajax.php endpoints to authenticated internal users only via .htaccess or web server configuration - this breaks the unauthenticated remote vector (PR:N→PR:L/H) but may disrupt legitimate AJAX functionality if the application requires unauthenticated access; (3) Apply input validation at the application layer by modifying /ajax.php to enforce integer-only ID values using PHP intval() or prepared statements with parameterized queries - requires source code modification expertise. Workaround trade-off: WAF rules may cause false positives; authentication requirements may break application workflows; code changes require PHP development skills and testing. Long-term: Migrate to a maintained, security-patched pharmacy management system, as SourceCodester projects are often educational code without enterprise security support.

Affected VersionsENISA

Pharmacy Sales and Inventory System 1.0

Affected Packages

euvd pharmacy_sales_and_inventory_system no fix

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

This is a SQL injection vulnerability (CWE-89) in a PHP-based web application. The affected component is the /ajax.php endpoint with action parameter set to save_sales, where the ID parameter is directly incorporated into SQL queries without proper sanitization or parameterized statements. SQL injection occurs when user-controlled input is concatenated into SQL commands, allowing attackers to break out of the intended query logic and execute arbitrary SQL statements. The CPE identifier cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:* indicates this affects SourceCodester's freely distributed code, commonly used by small pharmacies or for educational purposes. The PHP tag suggests the application uses direct SQL query construction rather than modern ORM frameworks or prepared statements that would mitigate this vulnerability class.

Know when Pharmacy Sales And Inventory 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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
CVSS changed
Apr 29, 2026 - 01:12 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
Severity Changed
Apr 27, 2026 - 06:22 NVD
HIGH MEDIUM
CVSS changed
Apr 27, 2026 - 06:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
CVE Published
Apr 27, 2026 - 04:30 nvd
MEDIUM 5.5

DescriptionCVE.org

A security flaw has been discovered in SourceCodester Pharmacy Sales and Inventory System 1.0. Impacted is an unknown function of the file /ajax.php?action=save_sales. Performing a manipulation of the argument ID results in sql injection. The attack can be initiated remotely. The exploit has been released to the public and may be used for attacks.

Executive ViewAI

Why It Matters

SourceCodester Pharmacy Sales and Inventory System 1.0 contains a critical SQL injection vulnerability in its sales endpoint that allows unauthenticated attackers to read, modify, or delete pharmacy database records without credentials. Public exploit code is available, making this vulnerability immediately actionable by low-skilled threat actors and posing direct risk to patient data confidentiality, prescription integrity, and operational continuity.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy WAF with SQL injection detection rules specific to ID parameter in /ajax.php endpoints; (2) Restrict network access to /ajax.php to authorized internal IP ranges only; (3) Implement database query logging and real-time alerting for suspicious SELECT/UPDATE/DELETE patterns; (4) Apply principle of least privilege to database user accounts; (5) Enable database-level read-only access for pharmacy inventory queries where possible.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2022-30407 CRITICAL POC
9.8 May 13

Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_

CVE-2026-10255 MEDIUM POC
5.5 Jun 01

Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b

CVE-2026-8083 MEDIUM POC
5.5 May 07

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7550 MEDIUM POC
5.5 May 01

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,

CVE-2026-7549 MEDIUM POC
5.5 May 01

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra

CVE-2026-7199 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7194 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp

CVE-2026-7127 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,

CVE-2026-7126 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7088 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-6189 MEDIUM POC
5.5 Apr 13

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra

CVE-2026-6188 MEDIUM POC
5.5 Apr 13

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execu

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy