🇰🇷 한글 설명
AdithyaYelloju의 Restaurant-Management-System 특정 버전에서 SQL 인젝션 취약점이 발견되었습니다. Order Placement 구성 요소의 User/ord.php 파일 내 mysqli_query 함수에서 id 또는 name 인자를 조작하여 발생합니다. 이 취약점은 원격에서 공격이 가능하며 이미 공개된 상태입니다.
💡 쉬운 설명
음식 주문 시스템의 특정 입력창에 악의적인 명령어를 입력하여 데이터베이스를 조작할 수 있는 보안 약점입니다. 해커가 원격에서 시스템의 정보를 훔치거나 수정할 위험이 있습니다.
🇺🇸 원문 (English)
A vulnerability was determined in AdithyaYelloju Restaurant-Management-System up to 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c. Impacted is the function mysqli_query of the file User/ord.php of the component Order Placement. Executing a manipulation of the argument id/name can lead to sql injection. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
📍 영향받는 시스템
AdithyaYelloju Restaurant-Management-System (commit 7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c 이하 버전)
⚔️ 공격 벡터
원격에서 id 또는 name 인자에 조작된 SQL 구문을 삽입하여 공격
🛡️ 대응 방법
mysqli_query 사용 시 Prepared Statements를 적용하여 입력값을 검증하고 SQL 인젝션을 방지해야 합니다.
🔧 검증 코드
현재 프로젝트의 Git 커밋 해시가 취약한 범위 내에 있는지 확인하여 취약 여부를 판단합니다.
git rev-parse HEAD | grep -q '7f0e7e84255e8fcfd488e83f8f91451bbbff6b9c' && echo 'Vulnerable' || echo 'Not Vulnerable'