🔍 CVE-2012-6554

6.5
CVSS Score
MEDIUM
2013-05-23
2026-04-29 01:13
✅ 완료

🇰🇷 한글 설명

activeCollab의 Chat 모듈 1.5.2 이전 버전에서 chat/add_message 요청 시 message_text 파라미터가 preg_replace 함수의 /e 수정자로 처리되어 인증된 사용자가 임의의 PHP 코드를 실행할 수 있습니다. 이는 php/html_to_text.php 파일의 부적절한 입력 검증으로 인한 원격 코드 실행 취약점입니다.

💡 쉬운 설명

activeCollab에 로그인한 사용자가 악의적인 메시지를 보내면 서버에서 원하는 PHP 코드를 실행할 수 있습니다. 이를 통해 공격자는 시스템 전체를 제어하거나 민감한 데이터를 탈취할 수 있습니다.

🇺🇸 원문 (English)

functions/html_to_text.php in the Chat module before 1.5.2 for activeCollab allows remote authenticated users to execute arbitrary PHP code via the message[message_text] parameter to chat/add_messag, which is not properly handled when executing the preg_replace function with the eval switch.

📍 영향받는 시스템

activeCollab Chat module versions prior to 1.5.2

⚔️ 공격 벡터

Authenticated attacker sends crafted message with PHP code via chat/add_message endpoint exploiting preg_replace /e modifier

🛡️ 대응 방법

Upgrade activeCollab to version 1.5.2 or later that removes the /e modifier from preg_replace calls

🔧 검증 코드

preg_replace의 /e 수정자가 검출되면 취약하고, 아무 결과 없으면 패치된 상태입니다. /e 수정자는 PHP 5.5.0부터 제거되었으므로 PHP 버전 확인도 권장됩니다.

Shell / Script
grep -rn 'preg_replace.*\/e' /path/to/activecollab/functions/html_to_text.php 2>/dev/null || echo 'Not vulnerable'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP