漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
djust authentication bypass: a login_required / on_mount LiveView mount redirect does not close the WebSocket, allowing an unauthenticated client to dispatch event-handler calls
Vulnerability Description
djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to 1.0.4, LiveViewConsumer.handle_mount sends a `{"type":"navigate","to":...}` frame when login_required, permission_required, or a redirecting on_mount hook denies a LiveView mount, but returns without closing the WebSocket or clearing self.view_instance. A browser follows the redirect, but a raw WebSocket client can ignore it and retain the mounted socket. Because LiveViewConsumer.handle_event does not recheck authentication or authorization, the client can send `{"type":"event",...}` frames that invoke @event_handler methods without an authenticated session, including through handle_live_redirect_mount, enabling unauthorized sensitive reads or mutations. This issue is fixed in version 1.0.4.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Vulnerability Type
授权机制不恰当
Vulnerability Title
djust 授权问题漏洞
Vulnerability Description
djust是djust组织的一款辅助应用开发的开发框架。 djust 1.0.4之前版本存在授权问题漏洞,该漏洞源于LiveViewConsumer.handle_mount在拒绝挂载时未关闭WebSocket且handle_event未重新检查认证或授权,可能导致未经身份验证的攻击者通过WebSocket发送事件帧调用事件处理器,实现未授权敏感数据读取或修改。
CVSS Information
N/A
Vulnerability Type
N/A