🔍 CVE-2026-55891

0.0
CVSS Score
UNKNOWN
2026-08-28
2026-09-09 21:09
✅ 완료

🇰🇷 한글 설명

PrivateBin 2.0.5 미만 버전에서 Request::getRequestUri() 함수가 URL을 처리할 때 따옴표나 괄호와 같은 특수 문자를 제대로 제거하지 못하는 취약점이 존재합니다. 공격자가 조작된 URI를 통해 JSON-LD 응답 내에 임의의 키-값 데이터를 주입할 수 있으며, 보안 헤더가 누락되어 있어 구조화된 데이터 소비자에 영향을 줄 수 있습니다.

💡 쉬운 설명

웹사이트 주소에 특수 문자를 섞어 보내면, 서버가 만드는 데이터 응답 형식을 깨뜨리고 가짜 정보를 끼워 넣을 수 있는 문제입니다. 이로 인해 데이터를 읽어가는 다른 프로그램들이 잘못된 정보를 처리하게 만들 수 있습니다.

🇺🇸 원문 (English)

PrivateBin is an online pastebin where the server has zero knowledge of pasted data. Prior to 2.0.5, Request::getRequestUri() in lib/Request.php passes $_SERVER['REQUEST_URI'] through FILTER_SANITIZE_URL, which does not remove quotation marks, angle brackets, or apostrophes, and Controller::_init() stores the attacker-controlled value in Controller::$_urlBase. Controller::_jsonld() in lib/Controller.php then uses str_replace() to insert that value without JSON escaping into js/types.jsonld, js/paste.jsonld, and the other JSON-LD templates used by /?jsonld= and /?pasteid. A raw quotation mark delivered by an HTTP client, proxy, or structured-data crawler that does not normalize the request target can break out of the JSON string and inject arbitrary key-value data into a CORS-open application/ld+json response. The jsonld branch in Controller::__construct() returns before _setCacheHeaders(), so the response also lacks X-Content-Type-Options: nosniff, Content Security Policy, X-Frame-Options, and Referrer-Policy. Direct script execution was not demonstrated, but manipulated responses can affect structured-data consumers or combine with less strict clients. This issue is fixed in version 2.0.5.

📍 영향받는 시스템

PrivateBin 버전 2.0.5 미만

⚔️ 공격 벡터

조작된 특수 문자가 포함된 HTTP REQUEST_URI를 전송하여 JSON-LD 템플릿에 데이터 주입

🛡️ 대응 방법

PrivateBin을 최신 보안 패치가 적용된 버전 2.0.5 이상으로 업데이트하십시오.

🔧 검증 코드

설치된 PrivateBin의 버전이 2.0.5 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
php -r "echo 'PrivateBin version check required';" && grep -r "version" /path/to/privatebin/composer.json 2>/dev/null || echo 'Manual version check needed'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server