🇰🇷 한글 설명
AXIS M1033-W IP 카메라의 펌웨어 5.40.5.1 버전에서 파일 업로드 시 파일 형식을 검증하지 않는 취약점이 발견되었습니다. 공격자는 .shtml 파일을 업로드하여 Apache HTTP 서버의 mod_include 모듈을 통해 원격 코드 실행(RCE)을 수행할 수 있습니다.
💡 쉬운 설명
카메라의 웹 페이지에 허용되지 않은 파일을 올릴 수 있는 허점이 있습니다. 이를 통해 해커가 카메라에 몰래 명령어를 입력하여 제어권을 뺏을 수 있습니다.
🇺🇸 원문 (English)
An issue was discovered on AXIS M1033-W (IP camera) Firmware version 5.40.5.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 M1033-W (IP camera) Firmware version 5.40.5.1
⚔️ 공격 벡터
fileUpload.shtml 요청을 통한 악성 .shtml 파일 업로드 및 Apache mod_include 모듈을 이용한 명령 실행
🛡️ 대응 방법
제조사에서 제공하는 최신 보안 패치 적용 또는 파일 업로드 제한 설정 확인
🔧 검증 코드
업로드한 .shtml 파일에 대해 HTTP 200 OK 응답이 오고, 해당 파일 내에 명령 실행 코드가 작동하는지 확인
curl -s -I http://<TARGET_IP>/path/to/uploaded/file.shtml | grep -i 'HTTP/1.1 200 OK'