🇰🇷 한글 설명
SourceCodester Class and Exam Timetabling System 1.0의 /admin/modal_add_course2.php 파일 내 mysqli_query 함수에서 SQL 인젝션 취약점이 발견되었습니다. 공격자가 course 인자를 조작하여 원격에서 데이터베이스를 조작할 수 있으며, 해당 익스플로잇은 이미 공개되어 악용될 위험이 있습니다.
💡 쉬운 설명
프로그램의 입력값 검증이 부족하여 해커가 데이터베이스에 몰래 명령어를 입력할 수 있는 보안 구멍이 발견되었습니다. 이를 통해 해커가 중요한 정보를 훔치거나 데이터를 마음대로 수정할 수 있습니다.
🇺🇸 원문 (English)
A vulnerability has been found in SourceCodester Class and Exam Timetabling System 1.0. This affects the function mysqli_query of the file /admin/modal_add_course2.php. Such manipulation of the argument course leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may 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_course2.php