Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach login.php over network
-
DeliverySubmit ' OR '1'='1 or admin/neola
-
ExploitBypass authentication check
-
ExecutionObtain admin session
-
ImpactRead/modify inventory data
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 only network reachability to the application's login.php page; the CVSS vector (AV:N/AC:L/PR:N/UI:N) and description confirm no authentication, no user interaction, and no special configuration are needed against default deployments of the Stock-Inventory-Management-System. Two concrete paths exist: submit a SQL tautology such as ' OR '1'='1 in the login form's username/password fields, or supply the hardcoded credentials admin/neola. The only real limiting factor is exposure - the target instance must be network-accessible to the attacker; because this is a self-hosted hobby PHP app rather than a widely deployed product, the practical constraint is finding a reachable installation, not any technical prerequisite. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) is internally consistent with the description: exploitation is remote, low-complexity, unauthenticated, and yields full admin access to the application and its data. Real-world risk of the flaw itself is high because the payload is trivial and self-documenting, and the hardcoded credential is visible in the public GitHub source. However, aggregate risk is bounded by deployment footprint: this is an individual developer's GitHub project, not enterprise software, so mass exploitation is unlikely. No EPSS score, KEV listing, POC flag, or SSVC decision data was provided in the input, so exploitation-probability signals are absent rather than low - the 9.8 reflects impact/exploitability of a single instance, not prevalence. No conflicts exist between the CVSS vector and the description; both point to unauthenticated remote authentication bypass. |
| Exploit ScenarioDerived | An attacker discovers an internet-reachable deployment of the application, browses to the login page, and submits a username of ' OR '1'='1 (or simply the hardcoded admin/neola pair). The tautology or static credential satisfies the authentication check, granting an immediate admin session with full read/write control over inventory data - no prior credentials, user interaction, or reconnaissance required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Authentication bypass in mrswapnilsahu's Stock-Inventory-Management-System (PHP) lets an unauthenticated remote attacker log in as any user by injecting SQL through the login form. The login.php script concatenates raw POST username/password into the auth query (CWE-89) and also ships hardcoded admin credentials (admin/neola), giving two independent full-bypass paths. No public exploit identified at time of analysis, though the trivial ' OR '1'='1 payload is described directly in the disclosure.
RemediationAI
No vendor-released patch identified at time of analysis; the only reference (https://github.com/mrswapnilsahu/Stock-Inventory-Management-System/blob/master/login.php) points to the vulnerable source, not a fixed release. Remediate at the code level: rewrite the login query in login.php to use parameterized/prepared statements (PDO or mysqli with bound parameters) so username/password can never alter query structure, and stop assigning raw $_POST values into $_SESSION. Remove the hardcoded admin/neola credential entirely and replace it with properly hashed credentials stored in the database (password_hash/password_verify). As interim compensating controls if the code cannot be changed immediately: place the application behind a WAF rule blocking SQL meta-characters and tautology patterns on the login endpoint (trade-off: pattern-based rules are bypassable and may break legitimate logins containing quote characters), and restrict network access to the login page via IP allowlisting or VPN (trade-off: reduces convenience and does not fix the hardcoded credential for anyone with reachable access). Given the severity, taking the instance offline until the code is fixed is the safest option.
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 affected component is a PHP-based inventory web application backed by a SQL database. In login.php the application assigns unsanitized $_POST['username'] and $_POST['password'] directly into $_SESSION and then builds the authentication SQL statement by string concatenation with no prepared statements, parameter binding, or escaping. This is a textbook CWE-89 SQL Injection: attacker-controlled input crosses into the query's syntactic context, so a tautology such as ' OR '1'='1 forces the WHERE clause to always evaluate true and returns a valid session. Compounding this, a post-login conditional compares against static hardcoded administrative credentials (admin/neola), a CWE-798-style flaw baked into source that any reader of the public repository can see.
Know when PHP 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Unauthenticated remote login bypass via trivial SQLi and hardcoded creds gives full application read/write, so AV:N/AC:L/PR:N/UI:N with high C/I/A.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
The Stock-Inventory-Management-System application's login.php assigns raw $_POST username/password values to $_SESSION and builds its authentication query by directly concatenating those session values into a SQL statement with no parameterization or escaping. An unauthenticated remote attacker can submit a payload such as ' OR '1'='1 in the login form to bypass authentication entirely. The same script additionally contains hardcoded administrative credentials (admin/neola) in a post-login conditional check, providing a second, independent full-authentication-bypass path.
Articles & Coverage 1
Executive ViewAI
Stock-Inventory-Management-System contains a critical SQL injection vulnerability enabling unauthenticated remote attackers to completely bypass authentication and assume any user identity, including administrative accounts. This creates immediate risk of unauthorized inventory access, system manipulation, and data exposure across all deployed instances. Immediate containment is required to prevent data breach and operational disruption.
No vendor-released patch identified at time of analysis. Interim mitigations: implement Web Application Firewall blocking SQL injection patterns in authentication parameters; restrict network access to trusted IP ranges only; enforce reverse proxy authentication with multi-factor authentication (MFA) in front of the application; deploy real-time database query logging and alerting for anomalous authentication attempts; disable the application if not immediately business-critical pending remediation.
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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-53204
GHSA-8924-6725-h379
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB