🔍 CVE-2015-3458

6.5
CVSS Score
MEDIUM
2015-04-29
2026-05-06 22:30
✅ 완료

🇰🇷 한글 설명

Magento Community Edition 1.9.1.0과 Enterprise Edition 1.14.1.0의 fetchView 함수에서 템플릿 경로의 stream wrapper를 제한하지 않아, 원격 관리자가 phar:// stream wrapper를 통해 임의의 PHP 파일을 포함하고 실행할 수 있는 원격 코드 실행 취약점입니다.

💡 쉬운 설명

Magento에서 파일을 불러올 때 위험한 파일 형식(phar://)을 차단하지 않습니다. 관리자 권한을 가진 사용자가 악의적인 파일을 실행해 서버를 제어할 수 있습니다.

🇺🇸 원문 (English)

The fetchView function in the Mage_Core_Block_Template_Zend class in Magento Community Edition (CE) 1.9.1.0 and Enterprise Edition (EE) 1.14.1.0 does not restrict the stream wrapper used in a template path, which allows remote administrators to include and execute arbitrary PHP files via the phar:// stream wrapper, related to the setScriptPath function. NOTE: it is not clear whether this issue crosses privilege boundaries, since administrators might already have privileges to include arbitrary files.

📍 영향받는 시스템

Magento Community Edition 1.9.1.0, Enterprise Edition 1.14.1.0

⚔️ 공격 벡터

원격 관리자가 템플릿 경로에 phar:// stream wrapper를 사용하여 임의의 PHP 파일 포함 및 실행

🛡️ 대응 방법

영향받는 버전을 보안 패치가 적용된 최신 버전으로 업그레이드하고 stream wrapper 사용을 제한하는 설정 적용

🔧 검증 코드

결과에 phar:// 또는 stream wrapper 관련 설정이 나타나면 취약점 존재 가능성이 있으며, 수동 코드 검토와 함께 템플릿 경로 검증 로직 확인 필요

Shell / Script
grep -r 'stream_wrapper\|phar://' /var/www/magento 2>/dev/null | head -20

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP