🔍 CVE-2014-7146

7.5
CVSS Score
HIGH
2014-11-18
2026-05-06 22:30
✅ 완료

🇰🇷 한글 설명

MantisBT 1.2.17 이전 버전의 XmlImportExport 플러그인에서 정규표현식 함수(preg_replace)의 /e modifier를 잘못 처리하여 발생하는 취약점입니다. 공격자는 악의적인 XML 파일의 description 필드나 issuelink 속성에 PHP 코드를 삽입하여 서버에서 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

MantisBT 버그 추적 시스템에서 XML 파일 가져오기 기능이 안전하지 않아, 해커가 특수한 XML 파일을 업로드하면 서버를 완전히 제어할 수 있는 취약점입니다. 서버가 해커의 명령을 마치 자신의 코드인 것처럼 실행해버리기 때문입니다.

🇺🇸 원문 (English)

The XmlImportExport plugin in MantisBT 1.2.17 and earlier allows remote attackers to execute arbitrary PHP code via a crafted (1) description field or (2) issuelink attribute in an XML file, which is not properly handled when executing the preg_replace function with the e modifier.

📍 영향받는 시스템

MantisBT 1.2.17 이전 모든 버전 (특히 XmlImportExport 플러그인 사용 시)

⚔️ 공격 벡터

악의적으로 조작된 XML 파일을 XmlImportExport 플러그인을 통해 업로드하여 원격 코드 실행 유발

🛡️ 대응 방법

MantisBT를 1.2.18 이상으로 업그레이드하거나 XmlImportExport 플러그인을 비활성화

🔧 검증 코드

설치된 MantisBT 버전이 1.2.17 이하이면 취약함. 1.2.18 이상이면 안전. 파일이 없으면 설치되지 않음.

Shell / Script
dpkg -l 2>/dev/null | grep -i mantis || find / -name 'version.php' -path '*mantis*' -exec grep -l 'version' {} \; 2>/dev/null | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP