🇰🇷 한글 설명
SourceCodester Class and Exam Timetabling System 1.0 버전의 /admin/modal_add_coursea.php 파일 내 mysqli_query 함수에서 SQL 인젝션 취약점이 발견되었습니다. course 인자를 조작함으로써 원격에서 데이터베이스를 공격할 수 있으며, 이미 공격 코드가 공개되어 악용될 위험이 있습니다.
💡 쉬운 설명
프로그램의 입력창에 특수 명령어를 입력하여 데이터베이스를 마음대로 조작할 수 있는 보안 약점입니다. 해커가 이 취약점을 이용해 중요한 정보를 훔치거나 삭제할 수 있습니다.
🇺🇸 원문 (English)
A vulnerability was found in SourceCodester Class and Exam Timetabling System 1.0. This impacts the function mysqli_query of the file /admin/modal_add_coursea.php. Performing a manipulation of the argument course results in sql injection. Remote exploitation of the attack is possible. The exploit has been made public and could be used.
📍 영향받는 시스템
SourceCodester Class and Exam Timetabling System 1.0
⚔️ 공격 벡터
원격에서 course 인자 값을 조작하여 SQL 쿼리를 실행하는 방식
🛡️ 대응 방법
Prepared Statements를 사용하여 SQL 인젝션을 방지하고, 입력값에 대한 검증 로직을 추가해야 합니다.
🔧 검증 코드
명령어 실행 결과 해당 파일에서 변수 검증 없이 mysqli_query가 사용된 코드가 출력되면 취약한 상태입니다.
grep -r "mysqli_query(.*course" /path/to/source/admin/modal_add_coursea.php