
Advisory and proof-of-concept for CVE-2026-29861, a critical SQL injection in PHP-MYSQL-User-Login-System allowing unauthenticated admin access.
Disclosure Date: 10 April 2026
CVE ID: CVE-2026-29861
Severity: CRITICAL (CVSS 9.8)
A critical SQL Injection vulnerability exists in PHP-MYSQL-User-Login-System v1.0, specifically within the login.php endpoint. The application directly incorporates unsanitized user inputs into SQL queries, allowing unauthenticated attackers to bypass authentication and gain full administrative access.
This issue has been assigned the identifier CVE-2025-26198. At the time of public disclosure, no official patch was available.
login.phphttp://localhost/PHP-MYSQL-User-Login-System/login.phpThe admin login mechanism uses unsanitized input directly in SQL queries without any input validation or prepared statements:
$query = "SELECT * FROM admin WHERE username='$username' AND password='$password'";
This allows for injection payloads such as:
Username: ' OR '1'='1
Password: [any value]
This bypasses authentication logic by evaluating to a true condition, thereby granting access to the admin dashboard.
| CWE ID | Title |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
| Score | Severity | Vector String |
|---|---|---|
| 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
A successful exploitation could result in:
UNION-based SQL injectiongit clone https://github.com/keerti1924/PHP-MYSQL-User-Login-System.git
Use XAMPP/LAMP to deploy the project and navigate to:
http://localhost/PHP-MYSQL-User-Login-System/login.php
Enter the following credentials in the login form:
' OR '1'='1[any value]You will be logged in as the first admin user, verifying successful SQL injection.
mysqli_prepare() or PDO).| Event | Date |
|---|---|
| Vulnerability Discovered | 22 January 2026 |
| Public Disclosure | 10 April 2026 |
| Patch Available | ❌ Not available as of disclosure |
This vulnerability was discovered and responsibly disclosed by:
Aman Yadav
💬 This advisory is published independently due to lack of vendor response.