CVE-2026-29861
Received Received - Intake
SQL Injection in PHP-MYSQL-User-Login-System v1.0 Login

Publication date: 2026-04-10

Last updated on: 2026-04-14

Assigner: MITRE

Description
PHP-MYSQL-User-Login-System v1.0 was discovered to contain a SQL injection vulnerability via the username parameter at login.php.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-10
Last Modified
2026-04-14
Generated
2026-05-06
AI Q&A
2026-04-10
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-29861 is a critical SQL Injection vulnerability found in the PHP-MYSQL-User-Login-System version 1.0, specifically in the login.php endpoint.

The vulnerability occurs because the application directly uses unsanitized user inputs in SQL queries without validation or prepared statements.

An attacker can inject SQL code via the username parameter to bypass authentication, for example by using the payload: ' OR '1'='1, which makes the SQL WHERE clause always true and grants unauthorized admin access.

This vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command).


How can this vulnerability impact me? :

Exploitation of this vulnerability can lead to full authentication bypass, allowing attackers to gain unauthorized administrative access.

Attackers may manipulate or leak sensitive data through SQL injection techniques such as UNION-based queries.

The backend database can be completely compromised, potentially leading to data loss, corruption, or unauthorized data disclosure.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by attempting to inject SQL payloads into the username parameter at the login.php endpoint and observing if authentication is bypassed.

  • Use the payload ' OR '1'='1 in the username field and any value in the password field to test if the login is bypassed.
  • Monitor web server logs for suspicious login attempts containing SQL injection patterns such as ' OR '1'='1.
  • Use tools like sqlmap to automate detection of SQL injection vulnerabilities against the login.php endpoint.
  • Example command with sqlmap: sqlmap -u "http://target/PHP-MYSQL-User-Login-System/login.php" --data="username=' OR '1'='1&password=any" --risk=3 --level=5

How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The SQL injection vulnerability in PHP-MYSQL-User-Login-System v1.0 allows attackers to bypass authentication and gain unauthorized administrative access, potentially leading to data leakage or manipulation.

Such unauthorized access and potential data compromise can violate common standards and regulations like GDPR and HIPAA, which require protection of personal and sensitive data against unauthorized access and breaches.

Therefore, this vulnerability poses a significant risk to compliance with these regulations by undermining data confidentiality and integrity.


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include:

  • Replace dynamic SQL queries with prepared statements such as mysqli_prepare() or PDO to prevent SQL injection.
  • Implement strict input validation and sanitization on all user inputs, especially the username and password fields.
  • Deploy a Web Application Firewall (WAF) to block known SQL injection attack patterns.
  • Conduct regular code audits and penetration testing to identify and fix similar vulnerabilities.

Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart