제출 #919813: itsourcecode St Columban Student Information Management System 1.0 SQL Injection정보

제목itsourcecode St Columban Student Information Management System 1.0 SQL Injection
설명During the security review of "St Columban Student Information Management System" v1.0 (free PHP project distributed by itsourcecode.com), I discovered a critical unauthenticated SQL injection vulnerability in "/admin/login.php" (POST parameter "uname"). The login handler applies only trim() to the username (admin/login.php:50) and interpolates it directly into the authentication query (includes/member.php:35): SELECT * FROM `useraccounts` WHERE `ACCOUNT_USERNAME`='" . $email . "' and `ACCOUNT_PASSWORD`='" . $h_upass . "' LIMIT 1 The codebase's only escaper (Database::escape_value) is never invoked on this path. Because the password is SHA1-hashed before the query, the injection lives in "uname" and comments out the password predicate; an injected LIMIT 1 satisfies the row_count==1 check (includes/member.php:38). An unauthenticated remote attacker can therefore bypass authentication and log in as any account, including the seeded Administrator, gaining full control of the application and all student records. Proof of Concept (verified on a local deployment of the unmodified vendor source): POST /columbans/admin/login.php HTTP/1.1 Content-Type: application/x-www-form-urlencoded btnlogin=Login&uname='+OR+1=1+LIMIT+1--+ -&pass=x Result: the session is populated with the first useraccounts row (ACCOUNT_ID=1, Administrator) and the attacker lands on the admin dashboard. A targeted variant also works: ' OR ACCOUNT_TYPE='Administrator' LIMIT 1-- - Additional observation: the shipped database dump (columbandb.sql) stores unsalted SHA1 password hashes; 6 of 8 seeded accounts share 7110eda4d09e062aa5e4a390b0a572ac0d2c0220 = sha1("1234"). Full evidence (HTTP transcripts, authenticated dashboard screenshots, Docker reproduction environment): see the advisory link.
사용자
 chaos4 (UID 100466)
제출2026. 08. 09. PM 06:11 (2 개월 ago)
모더레이션2026. 09. 13. PM 03:48 (1 month later)
상태중복
VulDB 항목322985 [itsourcecode Student Information Management System 1.0 /admin/login.php uname SQL 주입]
포인트들0

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!