🇰🇷 한글 설명
MISP 설치 스크립트가 생성한 Apache HTTP 가상 호스트 설정에서 HTTP-to-HTTPS 리다이렉트 형식이 잘못 지정되었습니다. 목적지 URL 끝에 슬래시(/)가 누락되어, 공격자가 조작한 경로가 호스트 이름 뒤에 직접 붙음으로써 사용자를 공격자의 웹사이트로 리다이렉트시킬 수 있습니다.
💡 쉬운 설명
웹사이트 주소를 자동으로 보안 주소로 바꿔주는 설정에 오류가 있어, 가짜 주소로 연결될 위험이 있습니다. 공격자가 만든 특수 링크를 클릭하면 원래 사이트가 아닌 해커의 사이트로 이동하여 개인정보를 탈취당할 수 있습니다.
🇺🇸 원문 (English)
MISP installation scripts generated an Apache HTTP virtual-host configuration containing an incorrectly formatted HTTP-to-HTTPS redirect:
Redirect permanent / https://misp.example
Apache’s Redirect directive appends any portion of the requested path that follows the matched prefix to the configured destination URL. Because the destination did not end with /, attacker-controlled path content was appended directly to the hostname rather than to its URL path.
For example, a request resembling:
http://misp.example/@attacker.example/
could result in a redirect resembling:
https://
[email protected]/
Under standard URL parsing, misp.example is interpreted as user information and attacker.example as the destination host. An unauthenticated remote attacker could therefore construct a URL hosted under the legitimate MISP domain that redirects users to an attacker-controlled website.
The vulnerability could be used for phishing, credential collection, or potentially disclosing sensitive query-string information preserved during the redirect. Exploitation requires a user to follow the crafted HTTP URL.
The fix adds the missing trailing slash to the redirect destination, ensuring that appended request data remains part of the path on the configured MISP host.
Existing installationsExisting MISP installations should review their Apache HTTP virtual-host configuration and ensure that the HTTPS redirect destination ends with a trailing slash:
Redirect permanent / https://misp.example/
After updating the configuration, validate it with apachectl configtest and reload or restart Apache for the change to take effect
📍 영향받는 시스템
MISP 설치 스크립트를 통해 Apache HTTP 가상 호스트 설정이 생성된 시스템
⚔️ 공격 벡터
조작된 경로를 포함한 HTTP URL을 통해 사용자를 공격자가 제어하는 도메인으로 리다이렉트 유도
🛡️ 대응 방법
Apache 설정 파일 내 Redirect 지시어의 목적지 URL 끝에 슬래시(/)를 추가하고 Apache 서비스를 재시작합니다.
🔧 검증 코드
명령어 결과에 리다이렉트 설정이 출력된다면 목적지 URL 끝에 슬래시(/)가 누락된 취약한 상태입니다.
grep -r 'Redirect permanent / https://' /etc/apache2/sites-enabled/ | grep -v '/$'