🇰🇷 한글 설명
Guardian language-system의 transcribe.php 파일에서 id GET 파라미터가 적절한 검증 없이 PHP exec() 함수로 직접 전달되는 취약점이 발견되었습니다. 인증되지 않은 원격 공격자가 쉘 메타문자를 삽입하여 서버에서 임의의 운영체제 명령어를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 주소창에 특정 명령어를 입력하는 것만으로 해커가 서버를 마음대로 조종할 수 있는 심각한 보안 결함입니다. 별도의 로그인 없이도 누구나 공격이 가능하여 매우 위험합니다.
🇺🇸 원문 (English)
Guardian language-system passes the id GET parameter directly into a PHP exec() call in transcribe.php (line 15) without sanitization: exec(\"php jobs/transcribe.php \".$login_session.\" \".$_GET['id'].\" ...\"). No authentication is required. An unauthenticated remote attacker can append shell metacharacters to execute arbitrary OS commands on the server.
📍 영향받는 시스템
Guardian language-system (transcribe.php 사용 버전)
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 HTTP GET 요청의 id 파라미터에 쉘 메타문자를 삽입하여 공격
🛡️ 대응 방법
id 파라미터에 대한 입력값 검증(Sanitization)을 수행하고, exec() 대신 안전한 API를 사용하거나 명령 실행 방식을 변경해야 합니다.
🔧 검증 코드
명령어 실행 결과로 서버의 사용자 정보(uid, gid 등)가 출력되면 취약한 상태입니다.
curl -s 'http://<target>/transcribe.php?id=;id' | grep -E 'uid=|gid='