Description
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.
Published: 2026-08-05
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Stock‑Inventory‑Management‑System login script accepts raw username and password values from the web form and assigns them directly to session variables without validation. It then concatenates those values into a SQL query, creating a classic injection point. An attacker can supply a payload such as \' OR \'1\='1 in the login form to satisfy the WHERE clause and gain access without knowing a valid account. In addition, the script contains hard‑coded administrative credentials (admin/neola) in a post‑login check, providing a completely independent bypass pathway. The weakness is a classic CWE‑89 SQL Injection that leads to unrestricted authentication bypass.

Affected Systems

The affected product is Stock‑Inventory‑Management‑System from vendor mrswapnilsahu. No version information is listed, so the vulnerability exists in the current codebase that contains login.php as distributed in the repository linked in the references.

Risk and Exploitability

With a CVSS score of 9.8 the risk level is Critical. The EPSS score is not available, implying historical data is lacking, but the exploit is trivial: an unauthenticated remote attacker can submit a crafted login form and gain full access via SQL injection or hard‑coded credentials. The vulnerability is not listed in CISA’s KEV catalog, but the lack of mitigation makes it highly attractive for exploitation. Had the EPSS been available, it would likely be in the higher tier, but even without it the exploitation effort is negligible due to the absence of access controls or code obfuscation.

Generated by OpenCVE AI on August 5, 2026 at 09:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Rewrite the login logic to use prepared statements or parameterized queries and escape all input; this removes the SQL injection vector associated with CWE‑89.
  • Eliminate the hard‑coded admin credentials from the codebase and enforce proper credential storage (e.g., hashed password table).
  • Deploy the updated login.php source code, ensuring that the hard‑coded admin credentials are removed and the code uses parameterized queries for authentication.

Generated by OpenCVE AI on August 5, 2026 at 09:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Swapnilsahu
Swapnilsahu stock Management System
Vendors & Products Swapnilsahu
Swapnilsahu stock Management System

Wed, 05 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Stock-Inventory-Management-System: Unauthenticated SQL Injection and Hardcoded Credentials in login.php Enable Full Authentication Bypass
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Swapnilsahu Stock Management System
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-05T06:59:10.082Z

Reserved: 2026-08-05T06:56:15.799Z

Link: CVE-2026-71207

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T09:30:11Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')