🔍 CVE-2024-47056

5.1
CVSS Score
MEDIUM
2025-05-28
2026-06-17 07:56
✅ 완료

🇰🇷 한글 설명

Mautic에서 .env 설정 파일이 웹 브라우저를 통해 직접 접근 가능한 취약점입니다. 이로 인해 데이터베이스 자격증명, API 키 등 민감한 정보가 노출될 수 있습니다.

💡 쉬운 설명

Mautic 시스템의 .env 파일이 인터넷에서 누구나 접근할 수 있도록 노출되어 있습니다. 이 파일에는 데이터베이스 암호와 같은 비밀 정보가 저장되어 있어서 공격자가 이를 탈취할 수 있습니다.

🇺🇸 원문 (English)

SummaryThis advisory addresses a security vulnerability in Mautic where sensitive .env configuration files may be directly accessible via a web browser. This exposure could lead to the disclosure of sensitive information, including database credentials, API keys, and other critical system configurations. Sensitive Information Disclosure via .env File Exposure: The .env file, which typically contains environment variables and sensitive application configurations, is directly accessible via a web browser due to missing web server configurations that restrict access to such files. This allows an unauthenticated attacker to view the contents of this file by simply navigating to its URL. MitigationUpdate Mautic to the latest Mautic version. By default, Mautic does not use .env files for production data. For Apache users: Ensure your web server is configured to respect .htaccess files. For Nginx users: As Nginx does not inherently support .htaccess files, you must manually add a configuration block to your Nginx server configuration to deny access to .env files. Add the following to your Nginx configuration for the Mautic site: location ~ /\.env { deny all; } After modifying your Nginx configuration, remember to reload or restart your Nginx service for the changes to take effect.

📍 영향받는 시스템

Mautic (최신 버전 이전의 모든 버전, Apache 및 Nginx 웹 서버)

⚔️ 공격 벡터

웹 브라우저에서 /.env URL에 직접 접근하여 설정 파일 내용 조회

🛡️ 대응 방법

Mautic 최신 버전으로 업데이트, Apache는 .htaccess 설정 확인, Nginx는 location ~ /\.env { deny all; } 설정 추가

🔧 검증 코드

HTTP 상태 코드 200이면 .env 파일이 접근 가능한 취약 상태, 403이면 웹 서버에서 차단된 안전한 상태입니다.

Shell / Script
curl -I http://localhost/.env 2>/dev/null | grep -E '200|403' && echo 'Check: 200=Vulnerable, 403=Protected'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

💻 영향받는 소프트웨어

Nginx