🔍 CVE-2026-55696

4.3
CVSS Score
MEDIUM
2026-08-28
2026-09-09 21:09
✅ 완료

🇰🇷 한글 설명

PrivateBin 2.0.5 미만 버전에서 첨부파일 처리 시 공격자가 제어 가능한 MIME 타입을 허용하여 발생하는 취약점입니다. 공격자가 악성 스크립트가 포함된 파일을 업로드하고 피해자가 이를 다운로드 링크로 열 경우, PrivateBin의 동일 출처(Same-origin) 권한으로 자바스크립트가 실행되어 로컬 스토리지 탈취 및 요청 위조가 가능합니다.

💡 쉬운 설명

악성 코드가 담긴 파일을 올린 뒤 사용자가 이를 클릭하게 유도하여, 해당 웹사이트의 권한을 가로채는 공격입니다. 이를 통해 사용자의 개인 정보나 저장된 데이터를 훔칠 수 있습니다.

🇺🇸 원문 (English)

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Prior to 2.0.5, AttachmentViewer.setAttachment in js/privatebin.js uses getAttachmentMimeType to accept attacker-controlled MIME types and uses getBlobUrl to create a same-origin blob before setting attachmentLink's href for the Download attachment link. The SVG-only sanitization branch updates only the preview blob, so text/html, image/svg, application/xhtml+xml, and text/xml attachments can remain active in the download blob. On an instance with fileupload = true and a weakened, stripped, or absent Content Security Policy, an anonymous attacker can create such an attachment, and a victim who opens the link in a new tab causes inline JavaScript to execute in the PrivateBin origin. The script can read origin-scoped local storage and issue same-origin requests, including requests to applications co-hosted on the same domain. This issue is fixed in version 2.0.5.

📍 영향받는 시스템

PrivateBin 2.0.5 미만 버전 (fileupload = true 설정 시 위험)

⚔️ 공격 벡터

악성 MIME 타입(text/html 등)을 가진 첨부파일 업로드 후 피해자가 해당 다운로드 링크를 새 탭에서 실행하도록 유도

🛡️ 대응 방법

PrivateBin을 최신 버전인 2.0.5 이상으로 업데이트하고, 강력한 Content Security Policy(CSP)를 적용하십시오.

🔧 검증 코드

명령어 결과에 2.0.0부터 2.0.4 사이의 버전이 나타나면 취약한 버전이 설치된 상태입니다.

Shell / Script
grep -r "version" . | grep -E '2\[\.\]0\.[0-4]'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server