🔍 CVE-2026-61593

8.1
CVSS Score
HIGH
2026-09-16
2026-09-30 17:51
✅ 완료

🇰🇷 한글 설명

djust 1.0.7 미만 버전에서 SSE 클라이언트-서버 POST 엔드포인트의 CSRF 보호 미비와 GET 스트림 엔드포인트의 Origin 검증 부재로 인해 발생합니다. 공격자는 교차 출처(Cross-Origin) 페이지를 통해 피해자의 인증된 세션을 이용해 상태 변경 이벤트를 실행할 수 있습니다.

💡 쉬운 설명

해커가 만든 가짜 웹사이트를 방문하면, 사용자의 권한을 도용하여 실제 서비스에서 중요한 동작을 몰래 수행하게 만드는 보안 취약점입니다. 사용자가 로그인된 상태라면 공격자가 사용자인 것처럼 행동할 수 있습니다.

🇺🇸 원문 (English)

djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to version 1.0.7, the SSE client→server POST endpoints are `@csrf_exempt` and the SSE GET stream endpoint had no Origin check, so a cross-origin page could drive a victim-cookie-authenticated SSE session: force the victim's browser to GET the stream URL (which creates and mounts a LiveView as the victim) and POST to the message endpoint with `credentials: include` to fire state-changing event handlers as the victim. The URL `session_id` is client-chosen (validated only for UUID *format*), so it is not a CSRF token, and a JSON body sent as `text/plain` is a CORS simple request with no preflight. The issue is fixed in 1.0.7. All three SSE endpoints validate the request `Origin` against `ALLOWED_HOSTS` (mirroring the WebSocket CSWSH defense) and reject cross-origin requests with 403; the POST endpoints additionally require `Content-Type: application/json` (415 otherwise), closing the `text/plain` simple-request bypass. As a workaround, disable the SSE transport, or front it with a proxy that enforces an Origin allowlist.

📍 영향받는 시스템

djust version < 1.0.7

⚔️ 공격 벡터

교차 출처(Cross-Origin) 요청을 통한 CSRF 및 Origin 검증 우회 공격

🛡️ 대응 방법

djust를 1.0.7 버전 이상으로 업데이트하거나, SSE 전송을 비활성화하고 프록시를 통해 Origin 허용 목록을 강제 적용하십시오.

🔧 검증 코드

출력된 Version이 1.0.7 미만이면 취약한 상태입니다.

Shell / Script
pip show djust 2>/dev/null | grep -E 'Version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server