🇰🇷 한글 설명
PHP Inventory 1.2의 index.php에서 sup_id 파라미터를 통한 SQL injection 취약점이 존재합니다. 원격 인증된 사용자가 suppliers details 작업 중에 임의의 SQL 명령을 실행할 수 있으며, 데이터베이스 조회 및 조작이 가능합니다.
💡 쉬운 설명
PHP Inventory 1.2 프로그램에서 권한을 가진 사용자가 특정 입력을 조작하여 데이터베이스를 직접 제어할 수 있는 결함입니다. 이로 인해 민감한 정보 유출이나 데이터 손상이 발생할 수 있습니다.
🇺🇸 원문 (English)
SQL injection vulnerability in index.php in PHP Inventory 1.2 allows remote authenticated users to execute arbitrary SQL commands via the sup_id parameter in a suppliers details action. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.
📍 영향받는 시스템
PHP Inventory version 1.2
⚔️ 공격 벡터
suppliers 상세정보 페이지의 sup_id 매개변수에 SQL 구문을 주입하여 데이터베이스 쿼리 조작
🛡️ 대응 방법
PHP Inventory를 최신 버전으로 업그레이드하거나 모든 입력에 대해 준비된 명령문(prepared statements) 사용 및 입력 검증 강화
🔧 검증 코드
sup_id 파라미터 처리 코드에서 SQL injection 보호(매개변수화된 쿼리, 이스케이핑 등)가 없으면 취약점 확인
grep -r "sup_id" /var/www 2>/dev/null | grep -E '\$_GET|\$_POST' | head -1