CodeAstro Simple Attendance Management System 1.0 — SQL Injection Auth Bypass (CVE-2026-37749)
by Varad AP Mene (menevarad007) · 2026-07-05
- Severity
- Critical
- CVE
- CVE-2026-37749
- Category
- web
- Affected product
- CodeAstro Simple Attendance Management System 1.0
- Affected versions
- 1
- Disclosed
- 2026-07-05
- Patch status
- unpatched
Archive entry
intelseclab/poc-archiveMetadata
| Field | Value |
|---|---|
| Date Added | 2026-07-05 |
| Last Updated | 2026-04 |
| Author / Researcher | Varad AP Mene (menevarad007) |
| CVE / Advisory | CVE-2026-37749 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| Status | PoC |
| Tags | php, sql-injection, authentication-bypass, cwe-89, unauthenticated, codeastro |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | CodeAstro Simple Attendance Management System 1.0 |
| Versions Affected | 1.0 |
| Language / Platform | Python (exploit) targeting PHP/MySQL web app |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
The login form in index.php of CodeAstro Simple Attendance Management System 1.0 concatenates the username POST parameter directly into a MySQL query with no sanitization or prepared statements. An unauthenticated attacker can submit a classic SQL injection payload such as admin'-- - in the username field to bypass authentication entirely and gain administrative access to the application.
Vulnerability Details
Root Cause
index.php builds the login query as SELECT * FROM admin WHERE username='$username' AND password='$password' using raw $_POST values, with no escaping or parameterization (CWE-89).
Attack Vector
- Navigate to the login page at
http://target/attendance/index.php. - Enter
admin'-- -as the username and any value as the password. - Submit the login form.
- The injected comment (
-- -) neutralizes the password check, granting admin access without valid credentials.
Impact
Complete authentication bypass and full administrative access to all attendance records, exploitable by any unauthenticated remote attacker.
Environment / Lab Setup
Target: CodeAstro Simple Attendance Management System 1.0 (PHP/MySQL)
Attacker: Python 3, requests library
Proof of Concept
PoC Script
See
exploit.pyin this folder.
| |
The script submits the crafted admin'-- - payload to the login endpoint and confirms the resulting authentication bypass.
Detection & Indicators of Compromise
POST /attendance/index.php HTTP/1.1
username=admin'-- -&password=anything
Signs of compromise:
- Login attempts containing SQL comment sequences (
--,'--,#) in the username field - Admin sessions established without a corresponding valid password submission
Remediation
| Action | Detail |
|---|---|
| Primary fix | No vendor patch confirmed as of 2026-07-05 — monitor for advisory |
| Interim mitigation | Rewrite the login query using parameterized/prepared statements (mysqli/PDO) instead of string concatenation |
References
Notes
Mirrored from https://github.com/menevarad007/CVE-2026-37749 on 2026-07-05.
| |