🇰🇷 한글 설명
Pinger 1.0은 ping 및 socket 매개변수를 통한 셸 명령 주입 취약점을 가진다. 미정제 입력으로 인해 공격자는 ping.php를 악용하여 임의의 PHP 파일을 작성하고 시스템 명령을 실행할 수 있다.
💡 쉬운 설명
Pinger라는 소프트웨어에서 공격자가 숨겨진 명령을 입력하면 웹 서버가 그대로 실행해버리는 보안 결함이다. 이를 통해 공격자는 서버를 완전히 제어할 수 있다.
🇺🇸 원문 (English)
Pinger 1.0 contains a remote code execution vulnerability that allows attackers to inject shell commands through the ping and socket parameters. Attackers can exploit the unsanitized input in ping.php to write arbitrary PHP files and execute system commands by appending shell metacharacters.
📍 영향받는 시스템
Pinger 1.0 (특히 ping.php 파일이 포함된 버전)
⚔️ 공격 벡터
ping 또는 socket 파라미터에 셸 메타문자(예: ;, |, &&)를 포함한 입력값을 전송하여 원격 코드 실행
🛡️ 대응 방법
Pinger를 최신 버전으로 업그레이드하거나 ping.php의 입력값을 엄격히 검증하고 escaping 처리
🔧 검증 코드
curl 명령이 응답을 반환하고 결과에 명령 실행 결과가 보이면 취약한 상태, 에러가 나면 패치된 상태
curl -s http://target/ping.php?ping=127.0.0.1 2>/dev/null | grep -E '(output|result|success)' || echo 'Vulnerable if command executed'