🔍 CVE-2025-27413

6.5
CVSS Score
MEDIUM
2025-02-28
2026-06-17 09:03
✅ 완료

🇰🇷 한글 설명

PwnDoc 1.2.0 미만 버전에서 백업 복구 기능이 경로 탐색(Path Traversal) 시퀀스를 포함한 원시 데이터를 데이터베이스로 가져올 수 있는 취약점이 발견되었습니다. 공격자는 이를 통해 템플릿 업데이트 기능의 경로를 조작하여 임의의 파일을 시스템에 작성할 수 있으며, 소스 코드를 덮어써 원격 코드 실행(RCE)을 달성할 수 있습니다.

💡 쉬운 설명

관리자 권한을 가진 사용자가 백업 파일을 복구할 때 특수하게 조작된 파일을 넣으면, 서버의 중요한 파일을 마음대로 바꿀 수 있는 문제입니다. 이를 통해 해커가 서버에 직접 명령을 내리는 위험한 상황이 발생할 수 있습니다.

🇺🇸 원문 (English)

PwnDoc is a penetration test reporting application. Prior to version 1.2.0, the backup restore functionality allows an administrator to import raw data into the database, including Path Traversal (`../`) sequences. This is problematic for the template update functionality as it uses the path from the database to write arbitrary content to, potentially overwriting source code to achieve Remote Code Execution. Any user with the `backups:create`, `backups:update` and `templates:update` permissions (only administrators by default) can write arbitrary content to anywhere on the filesystem. By overwriting source code, it is possible to achieve Remote Code Execution. Version 1.2.0 fixes the issue.

📍 영향받는 시스템

PwnDoc version < 1.2.0

⚔️ 공격 벡터

백업 복구 기능을 통한 경로 탐색(Path Traversal) 및 템플릿 업데이트 기능을 이용한 임의 파일 쓰기

🛡️ 대응 방법

PwnDoc를 최신 버전인 1.2.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 1.2.0 미만인지 확인하십시오.

Shell / Script
python3 -c 'import pkg_resources; print(pkg_resources.get_distribution("pwndoc").version)' 2>/dev/null || echo 'Package not found'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Data REST