🔍 CVE-2012-2687

2.6
CVSS Score
LOW
2012-08-22
2026-06-16 23:41
✅ 완료

🇰🇷 한글 설명

Apache HTTP Server 2.4.x의 mod_negotiation 모듈에서 MultiViews 옵션이 활성화된 경우, make_variant_list 함수가 특별히 조작된 파일명을 제대로 처리하지 못하여 XSS 취약점이 발생합니다. 원격 공격자는 악의적인 파일명을 통해 임의의 웹 스크립트나 HTML을 웹 페이지에 주입할 수 있습니다.

💡 쉬운 설명

Apache 웹서버가 파일명을 처리할 때 사용자 입력을 제대로 검증하지 않아 악성 코드가 삽입되는 문제입니다. 공격자는 특수한 파일명으로 다른 사용자들의 브라우저에서 악성 스크립트를 자동으로 실행시킬 수 있습니다.

🇺🇸 원문 (English)

Multiple cross-site scripting (XSS) vulnerabilities in the make_variant_list function in mod_negotiation.c in the mod_negotiation module in the Apache HTTP Server 2.4.x before 2.4.3, when the MultiViews option is enabled, allow remote attackers to inject arbitrary web script or HTML via a crafted filename that is not properly handled during construction of a variant list.

📍 영향받는 시스템

Apache HTTP Server 2.4.0, 2.4.1, 2.4.2 (MultiViews 옵션 활성화 상태)

⚔️ 공격 벡터

MultiViews 옵션이 활성화된 웹 서버에 특별히 조작된 파일명으로 HTTP 요청을 보내 variant list 생성 과정에서 XSS 페이로드 주입

🛡️ 대응 방법

Apache HTTP Server를 2.4.3 이상으로 업그레이드하거나 mod_negotiation 모듈의 MultiViews 옵션 비활성화

🔧 검증 코드

출력된 버전이 2.4.3 이상이면 안전, 2.4.2 이하이면 취약함. 명령어 결과가 없으면 Apache가 설치되지 않았거나 설치 경로가 다름

Shell / Script
apache2ctl -v 2>/dev/null | grep -oP '(?<=Apache/)[0-9.]+' || httpd -v 2>/dev/null | grep -oP '(?<=Apache/)[0-9.]+'

📊 CVSS Vector String

CVSS Vector
AV:N/AC:H/Au:N/C:N/I:P/A:N

💻 영향받는 소프트웨어

Apache HTTP Server