🇰🇷 한글 설명
Microsoft IIS에서 제3자 업로드 애플리케이션을 사용할 때, NTFS 대체 데이터 스트림(ADS) 구문을 악용하여 임의의 확장자를 가진 빈 파일을 생성할 수 있는 취약점입니다. 공격자는 파일명에 콜론(:)을 포함하여 확장자 검사를 우회함으로써 .asp와 같은 실행 가능한 파일을 생성할 수 있습니다.
💡 쉬운 설명
파일을 올릴 때 이름 뒤에 특수 기호를 붙여서 보안 검사를 속이는 방식입니다. 이를 통해 원래는 올릴 수 없는 위험한 파일을 서버에 몰래 저장할 수 있습니다.
🇺🇸 원문 (English)
Microsoft Internet Information Services (IIS), when used in conjunction with unspecified third-party upload applications, allows remote attackers to create empty files with arbitrary extensions via a filename containing an initial extension followed by a : (colon) and a safe extension, as demonstrated by an upload of a .asp:.jpg file that results in creation of an empty .asp file, related to support for the NTFS Alternate Data Streams (ADS) filename syntax. NOTE: it could be argued that this is a vulnerability in the third-party product, not IIS, because the third-party product should be applying its extension restrictions to the portion of the filename before the colon.
📍 영향받는 시스템
Microsoft Internet Information Services (IIS) 및 NTFS 파일 시스템을 사용하는 환경
⚔️ 공격 벡터
업로드 파일명에 '파일이름.asp:.jpg'와 같이 콜론을 포함하여 확장자 필터링을 우회하는 방식
🛡️ 대응 방법
업로드 애플리케이션에서 파일명 내 콜론(:) 사용을 금지하고, 확장자 검사 시 콜론 앞부분이 아닌 전체 파일명을 기준으로 검증하도록 수정
🔧 검증 코드
명령어 결과에 콜론(:)이 포함된 파일명이 나타난다면 해당 시스템은 ADS를 통한 파일 생성 취약점에 노출될 수 있습니다.