🇰🇷 한글 설명
AXIS P1354 IP 카메라의 펌웨어 5.90.1.1 버전에서 파일 유형 검증 미흡으로 인해 발생하는 취약점입니다. 공격자가 .shtml 파일을 업로드하여 Apache HTTP 서버의 mod_include 모듈을 통해 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
카메라의 웹 페이지에 검증되지 않은 파일을 올릴 수 있는 허점이 있습니다. 이를 통해 해커가 카메라에 몰래 명령어를 실행할 수 있는 파일을 심어 카메라를 마음대로 조종할 수 있습니다.
🇺🇸 원문 (English)
An issue was discovered on AXIS P1354 (IP camera) Firmware version 5.90.1.1 devices. The upload web page doesn't verify the file type, and an attacker can upload a webshell by making a fileUpload.shtml request for a custom .shtml file, which is interpreted by the Apache HTTP Server mod_include module with "<!--#exec cmd=" support. The file needs to include a specific string to meet the internal system architecture. After the webshell upload, an attacker can use the webshell to perform remote code execution such as running a system command (ls, ping, cat /etc/passwd, etc.). NOTE: the vendor reportedly indicates that this is an intended feature or functionality
📍 영향받는 시스템
AXIS P1354 IP camera (Firmware version 5.90.1.1)
⚔️ 공격 벡터
fileUpload.shtml 요청을 통한 악성 .shtml 파일 업로드 및 Apache mod_include를 이용한 명령 실행
🛡️ 대응 방법
제조사에서 제공하는 최신 보안 패치 적용 또는 해당 기능이 포함된 파일 업로드 경로에 대한 접근 제어 설정
🔧 검증 코드
업로드한 .shtml 파일에 대해 HTTP 200 OK 응답이 오고, 해당 파일 내에 명령 실행 코드가 포함되어 있다면 취약한 상태입니다.
curl -I http://<target_ip>/path/to/uploaded_file.shtml | grep -i 'HTTP/1.1 200 OK'