🇰🇷 한글 설명
PrivateBin 1.7.7 버전부터 2.0.3 미만 버전에서 발생하는 self-XSS 취약점입니다. HTML이 포함된 파일명을 가진 파일을 드래그 앤 드롭할 경우, 해당 파일명이 페이지에 그대로 반영되어 사용자의 세션 내에서 임의의 자바스크립트가 실행될 수 있습니다. 이로 인해 암호화 전의 평문 데이터나 암호화 키가 탈취될 위험이 있습니다.
💡 쉬운 설명
악의적으로 이름이 지어진 파일을 웹사이트에 끌어다 놓으면, 사용자의 브라우저에서 몰래 나쁜 코드가 실행될 수 있는 문제입니다. 공격자는 이를 통해 사용자가 입력 중인 비밀번호나 중요한 내용을 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Starting in version 1.7.7 and prior to version 2.0.3, dragging a file whose filename contains HTML is reflected verbatim into the page via the drag-and-drop helper, so any user who drops a crafted file on PrivateBin will execute arbitrary JavaScript within their own session (self-XSS). This allows an attacker who can entice a victim to drag or otherwise attach such a file to exfiltrate plaintext, encryption keys, or stored pastes before they are encrypted or sent. Certain conditions must exist for the vulnerability to be exploitable. Only macOS or Linux users are affected, due to the way the `>` character is treated in a file name on Windows. The PrivateBin instance needs to have file upload enabled. An attacker needs to have access to the local file system or somehow convince the user to create (or download) a malicious file (name). An attacker needs to convince the user to attach that malicious file to PrivateBin. Any Mac / Linux user who can be tricked into dragging a maliciously named file into the editor is impacted; code runs in the origin of the PrivateBin instance they are using. Attackers can steal plaintext, passphrases, or manipulate the UI before data is encrypted, defeating the zero-knowledge guarantees for that victim session, assuming counter-measures like Content-Security-Policy (CSP) have been disabled. If CSP is not disabled, HTML injection attacks may be possible - like redirecting to a foreign website, phishing etc. As the whole exploit needs to be included in the file name of the attached file and only affects the local session of the user (aka it is neither persistent nor remotely executable) and that user needs to interact and actively attach that file to the paste, the impact is considered to be practically low. Version 2.0.3 patches the issue.
📍 영향받는 시스템
PrivateBin version 1.7.7 up to (but not including) 2.0.3
⚔️ 공격 벡터
HTML 코드가 포함된 파일명을 가진 파일을 사용자에게 드래그 앤 드롭하도록 유도하는 사회공학적 공격
🛡️ 대응 방법
PrivateBin을 최신 버전인 2.0.3 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과로 '2.0.3' 이상의 버전 번호가 출력되면 취약점이 해결된 상태입니다.
curl -s http://<your-privatebin-url>/version | grep -E '2.0.3'
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux