🇰🇷 한글 설명
oretnom23 php-travel-agency-system의 traceapplication.php 파일 내 알 수 없는 함수에서 보안 취약점이 발견되었습니다. Search 인자 조작을 통해 SQL 인젝션이 발생하며, 원격에서 공격이 가능합니다. 공개된 익스플로잇이 존재하며 프로젝트 측은 이슈 보고를 받았으나 아직 응답하지 않은 상태입니다.
💡 쉬운 설명
여行 예약 웹사이트의 검색 기능에 해커가 악성 명령을 몰래 넣을 수 있는 결함이 있습니다. 이를 통해 고객 정보나 데이터베이스가 외부로 유출될 수 있습니다.
🇺🇸 원문 (English)
A security flaw has been discovered in oretnom23 php-travel-agency-system 4e28b8f84d72420373dd15c3ae32900beb7e0635. Impacted is an unknown function of the file traceapplication.php. The manipulation of the argument Search results in sql injection. It is possible to launch the attack remotely. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
📍 영향받는 시스템
oretnom23 php-travel-agency-system (커밋 4e28b8f84d72420373dd15c3ae32900beb7e0635 및 해당 버전)
⚔️ 공격 벡터
원격지에서 traceapplication.php의 Search 파라미터에 악성 SQL 구문을 삽입하여 데이터베이스 조회·변조
🛡️ 대응 방법
공식 패치가 없으므로 Search 입력값에 대해 prepared statement 적용 또는 입력 검증/이스케이프 처리를 수행하고, 해당 기능을 임시 비활성화하거나 WAF로 차단
🔧 검증 코드
출력된 라인에 Search 입력값이 쿼리에 직접 연결(예: 문자열 连接)되어 있으면 취약하며, 아무 출력이 없으면 파일을 찾지 못했거나 직접 입력이 사용되지 않은 것입니다.
grep -n -i 'search' $(find / -name traceapplication.php 2>/dev/null | head -1) 2>/dev/null | grep -E '\$_(GET|POST|REQUEST)'