<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Djust - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/djust/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 25 Aug 2026 18:50:53 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/djust/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Authentication Bypass in djust LiveViewConsumer</title><link>https://feed.craftedsignal.io/briefs/2026-08-djust-auth-bypass/</link><pubDate>Tue, 25 Aug 2026 18:50:53 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-djust-auth-bypass/</guid><description>An authentication bypass vulnerability (CVE-2026-55571) in the djust LiveViewConsumer allows unauthenticated attackers to execute event handlers on gated views by maintaining a WebSocket connection after a redirect.</description><content:encoded><![CDATA[<p>CVE-2026-55571 affects the djust framework's <code>LiveViewConsumer</code> component, which handles LiveView mounts over WebSockets. In versions prior to 1.0.4, the framework fails to properly terminate a WebSocket connection when an authentication-gated view (e.g., using <code>login_required</code> or <code>on_mount</code> hooks) triggers a redirect. Instead of closing the socket and clearing the view instance, the server sends a navigate redirect frame and keeps the connection alive.</p>
<p>An unauthenticated attacker using a raw WebSocket client can ignore the redirect frame and continue to send event-dispatching frames. Since the <code>handle_event</code> logic in these versions assumes the mount-time authentication checks are sufficient, it fails to re-verify the session status, allowing for the execution of sensitive event handlers. This bypass is critical for applications that rely solely on mount-level decorators and do not perform independent authorization checks inside individual event handler methods.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker initiates an unauthenticated WebSocket connection to a <code>LiveView</code> endpoint protected by <code>login_required</code>.</li>
<li>Server's <code>LiveViewConsumer</code> performs the mount check and triggers a redirect response (navigate frame) due to missing authentication.</li>
<li>Attacker's custom WebSocket client parses the redirect frame but intentionally refuses to close the connection or navigate away.</li>
<li>Server keeps the underlying WebSocket connection open and fails to clear <code>self.view_instance</code> from memory.</li>
<li>Attacker sends a malformed <code>{&quot;type&quot;:&quot;event&quot;, ...}</code> frame targeting an <code>@event_handler</code> on the gated view.</li>
<li>The <code>LiveViewConsumer</code> processes the event frame, bypassing any further security checks, and invokes the target method.</li>
<li>The application logic executes the sensitive handler with an unauthenticated session, resulting in unauthorized data access or state mutation.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows unauthenticated users to invoke sensitive server-side functions within gated views. Impact ranges from unauthorized information disclosure to data manipulation depending on the functionality of the exposed event handlers. Exploitation requires knowledge of specific view paths and event handler names. All djust applications using gated LiveViews on versions prior to 1.0.4 are affected.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Update to djust version 1.0.4 or later immediately to apply the patch provided in commit <code>1ae8aa9</code>.</li>
<li>For legacy deployments where patching is not immediately possible, implement explicit authentication and authorization checks at the top of every <code>@event_handler</code> within gated views.</li>
<li>Enable the defense-in-depth configuration <code>LIVEVIEW_CONFIG['reauth_on_event'] = True</code> to mandate session re-verification for all event handlers in gated views.</li>
<li>Audit application code for LiveView event handlers that perform mutations without secondary validation against the current session user.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>