VYPR
Unrated severityNVD Advisory· Published Jul 19, 2022· Updated Apr 14, 2025

SourceCodester Garage Management System login.php sql injection

CVE-2022-2467

Description

Garage Management System 1.0 login.php suffers from a time-based blind SQL injection via the username parameter, enabling remote unauthenticated data extraction.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Garage Management System 1.0 login.php suffers from a time-based blind SQL injection via the username parameter, enabling remote unauthenticated data extraction.

Vulnerability

The Garage Management System version 1.0 by SourceCodester contains a critical SQL injection vulnerability in the login page (/login.php). The username POST parameter is directly concatenated into SQL queries without proper sanitization. By submitting a specially crafted payload such as 1@a.com' AND (SELECT 6427 FROM (SELECT(SLEEP(5)))LwLu) AND 'hsvT'='hsvT, an attacker can inject arbitrary SQL commands. The vulnerability is present in version 1.0 as disclosed in the public exploit [1].

Exploitation

An attacker can exploit this vulnerability remotely without any prior authentication. The attack involves sending a POST request to /login.php with a malicious username parameter. The public proof-of-concept (POC) demonstrates a time-based blind SQL injection technique using the SLEEP() function to confirm injection. Tools like sqlmap can automate the exploitation. A sample request is provided in [1], showing the exact payload and HTTP headers needed.

Impact

Successful exploitation allows an attacker to extract arbitrary data from the underlying MySQL database, including but not limited to user credentials, session tokens, and other sensitive information stored by the application. The injection is blind, meaning data extraction is performed via time-based inference. Given the critical severity classification, the attacker can gain access to the application's backend data, potentially leading to privilege escalation or further system compromise.

Mitigation

As of the publication date (2022-07-19), no official patch has been released by SourceCodester. The vulnerable version is 1.0, and users are advised to contact the vendor for an update. If no fix is available, the recommended workaround is to implement proper input validation and parameterized queries for all user-supplied data, especially the username parameter in the login form. The application is not listed on the CISA KEV catalog as of the published date.

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"Missing input sanitization in the username parameter at /login.php allows SQL injection."

Attack vector

An unauthenticated attacker sends a POST request to `/login.php` with a crafted `username` parameter containing a SQL injection payload. The researcher's sample POC uses a time-based blind injection: `1@a.com' AND (SELECT 6427 FROM (SELECT(SLEEP(5)))LwLu) AND 'hsvT'='hsvT` [ref_id=1]. The attack is remotely exploitable over HTTP with no prior authentication required.

Affected code

The vulnerability is in `/login.php` of the Garage Management System 1.0. The `username` parameter is passed unsanitized into a SQL query, as shown by the researcher's proof-of-concept payload [ref_id=1].

What the fix does

No patch is provided in the bundle. The advisory does not include a fix or remediation guidance from the vendor. To close the vulnerability, the application should use parameterized queries (prepared statements) or properly escape the `username` input before including it in a SQL statement.

Preconditions

  • networkThe attacker must be able to reach the /login.php endpoint over HTTP.
  • authNo authentication is required; the login page is publicly accessible.

Reproduction

Send a POST request to `/login.php` with the body `username=1@a.com' AND (SELECT 6427 FROM (SELECT(SLEEP(5)))LwLu) AND 'hsvT'='hsvT&password=412312&login=`. If the server delays the response by approximately 5 seconds, the SQL injection is confirmed [ref_id=1].

Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

2

News mentions

0

No linked articles in our index yet.