🇰🇷 한글 설명
Guardian language-system의 speechmac_text.php 파일에서 id GET 파라미터가 적절한 검증 없이 PHP exec() 함수로 직접 전달되는 취약점이 발견되었습니다. 인증되지 않은 원격 공격자가 쉘 메타문자를 삽입하여 서버에서 임의의 OS 명령어를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트의 주소창에 특정 명령어를 입력하는 것만으로 해커가 서버를 마음대로 조종할 수 있는 심각한 보안 결함입니다. 별도의 로그인 없이도 누구나 공격이 가능하여 매우 위험합니다.
🇺🇸 원문 (English)
Guardian language-system passes the id GET parameter directly into a PHP exec() call in speechmac_text.php (line 18) without sanitization: exec(\"php jobs/speech_audio_mac_text.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 (speechmac_text.php 사용 버전)
⚔️ 공격 벡터
인증되지 않은 원격 공격자가 HTTP GET 요청의 id 파라미터에 쉘 메타문자를 삽입하여 공격
🛡️ 대응 방법
id 파라미터에 대한 입력값 검증(Sanitization)을 수행하고, exec() 대신 안전한 API를 사용하도록 코드를 수정해야 합니다.
🔧 검증 코드
명령어 실행 결과로 해당 라인이 출력되면 입력값 검증 없이 GET 파라미터가 exec 함수에 사용되고 있음을 의미합니다.
grep -n "exec(.*\\$ _GET\['id'\]" speechmac_text.php