Submit #1000555: SourceCodester Online Grading System b11f906 SQL Injectioninfo

TitleSourceCodester Online Grading System b11f906 SQL Injection
Description SourceCodester Online Grading System (commit b11f906) allows unauthenticated admin login bypass via SQL injection. admin/login.php passes uname/pass to User::AuthenticateUser() in includes/member.php:32-50, which builds SELECT * FROM useraccounts WHERE ACCOUNT_USERNAME='<uname>' and ACCOUNT_PASSWORD='<sha1>' LIMIT 1 with raw string concatenation, no escaping or prepared statement. When row_count == 1 it sets the full admin session. A plain tautology fails because exactly one row must match, but the payload ' OR ACCOUNT_ID=1 -- - in the username field returns the seed administrator row, granting an admin session with zero credentials; the attacker lands in the dashboard as ACCOUNT_ID=1 (Administrator) with access to students, subjects, grades, faculty, and users. CVSS 3.1 score 9.8 Critical, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Discovered by Santhosh Kumar, TraceX Labs. Vendor contact attempted via SourceCodester contact form (blocked by spam filter); public disclosure published at https://tracexlabs.com/releases/online-grading-sqli-admin.html.
Source⚠️ https://tracexlabs.com/releases/online-grading-sqli-admin.html
User
 SanthoshKumar (UID 101638)
Submission09/25/2026 16:16 (1 month ago)
Moderation10/12/2026 23:03 (17 days later)
StatusDuplicate
VulDB entry216161 [SourceCodester Online Grading System 1.0 uname sql injection]
Points0

Might our Artificial Intelligence support you?

Check our Alexa App!