🇰🇷 한글 설명
PhpTax 0.8의 drawimage.php에서 pfilez GET 파라미터가 exec() 함수로 직접 전달되는 원격 코드 실행 취약점입니다. 인증 없이 공격자가 임의의 셸 명령어를 주입하여 웹 서버 권한으로 코드 실행이 가능합니다.
💡 쉬운 설명
PhpTax라는 프로그램의 drawimage.php 파일에서 사용자 입력을 검증하지 않고 시스템 명령어 실행 함수에 직접 전달합니다. 누구나 악의적인 명령어를 보내서 서버에서 임의의 코드를 실행할 수 있습니다.
🇺🇸 원문 (English)
PhpTax version 0.8 contains a remote code execution vulnerability in drawimage.php. The pfilez GET parameter is unsafely passed to the exec() function without sanitization. A remote attacker can inject arbitrary shell commands, leading to code execution under the web server's context. No authentication is required.
⚔️ 공격 벡터
http://target/drawimage.php?pfilez=<command> 형태의 GET 요청으로 shell 메타문자(;, |, &&, $() 등)를 포함한 명령어 주입
🛡️ 대응 방법
PhpTax를 최신 버전으로 업그레이드하거나, pfilez 파라미터에 대한 입력 검증 및 화이트리스트 적용, shell 메타문자 필터링
🔧 검증 코드
drawimage.php 파일 위치가 출력되면 취약한 버전이 설치된 것이며, 'Not Found'가 출력되면 해당 취약점의 영향을 받지 않습니다.
find / -name 'drawimage.php' 2>/dev/null | xargs grep -l 'exec' 2>/dev/null || echo 'Not Found'