🇰🇷 한글 설명
PHPGurukul Pre-School Enrollment System 1.0의 /admin/add-class.php 파일에서 classname 매개변수에 대한 SQL injection 취약점이 발견되었습니다. 이 취약점을 통해 공격자는 원격에서 데이터베이스를 조회하거나 조작할 수 있으며, 이미 공개된 취약점입니다.
💡 쉬운 설명
학급 추가 화면에서 사용자 입력을 제대로 검증하지 않아 데이터베이스 명령을 직접 주입할 수 있는 문제입니다. 악의적인 사용자가 특수한 명령어를 입력하면 민감한 정보를 빼내거나 데이터를 변조할 수 있습니다.
🇺🇸 원문 (English)
A vulnerability, which was classified as critical, was found in PHPGurukul Pre-School Enrollment System 1.0. Affected is an unknown function of the file /admin/add-class.php. The manipulation of the argument classname leads to sql injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
📍 영향받는 시스템
PHPGurukul Pre-School Enrollment System 1.0
⚔️ 공격 벡터
HTTP GET/POST 요청으로 /admin/add-class.php에 접근하여 classname 매개변수에 SQL 구문(예: ' OR '1'='1)을 주입
🛡️ 대응 방법
classname 입력값을 준비된 명령문(prepared statements) 또는 매개변수화된 쿼리로 처리하여 입력값을 일반 문자열로 취급하도록 수정
🔧 검증 코드
명령어가 검증 없는 classname 사용을 발견하면 취약점이 존재하며, 결과가 없으면 시스템이 패치되었거나 설치되지 않은 상태입니다.
grep -r "classname" /var/www/html/*/admin/add-class.php 2>/dev/null | grep -v 'prepared\|parameterized'