<?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>Stalwart Labs - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/stalwart-labs/</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>Wed, 26 Aug 2026 16:22:40 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/stalwart-labs/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>CVE-2026-81036: OAuth Redirect Validation Bypass in Stalwart Mail Server</title><link>https://feed.craftedsignal.io/briefs/2026-08-stalwart-oauth-redirect/</link><pubDate>Wed, 26 Aug 2026 16:22:40 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-stalwart-oauth-redirect/</guid><description>Stalwart Mail Server suffers from an OAuth open redirect vulnerability in its default configuration that allows attackers to hijack authorization codes and gain unauthorized access to user accounts.</description><content:encoded><![CDATA[<p>Stalwart Mail Server contains a vulnerability (CVE-2026-81036) in its OAuth implementation where redirect URI targets are not properly validated against registered destinations. The flaw originates in the validation routine located at crates/http/src/auth/oauth/registration.rs. Due to the shipped default configuration having client-authentication requirements disabled, the validation routine returns immediate success for any provided redirect URI.</p>
<p>The application stores the attacker-supplied redirect value alongside the authorization code. During the authentication process, the application redirects the user's browser to this attacker-controlled destination with the authorization code attached. Because the token exchange endpoint only verifies that the redirect URI presented during the exchange matches the one recorded with the code, the attacker can successfully exchange the code for valid access and refresh tokens, leading to full unauthorized access to the victim's mail account.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker crafts a malicious request containing a custom 'redirect_uri' parameter pointing to an attacker-controlled endpoint.</li>
<li>Attacker induces a victim to initiate an OAuth authentication flow through the vulnerable Stalwart Mail Server.</li>
<li>The server processes the OAuth request, fails to validate the redirect URI due to the insecure default configuration, and stores the malicious URI.</li>
<li>The victim authenticates successfully via the legitimate OAuth provider.</li>
<li>The server sends an HTTP 302 redirect, instructing the victim's browser to send the authorization code to the attacker's server.</li>
<li>Attacker captures the authorization code from the incoming request logs.</li>
<li>Attacker presents the captured authorization code and the original malicious redirect URI to the Stalwart token endpoint.</li>
<li>The server issues valid access and refresh tokens to the attacker, providing unauthorized access to the victim's account.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows unauthorized actors to intercept authorization codes and exchange them for permanent access and refresh tokens. This results in complete compromise of the victim's email account, enabling exfiltration of sensitive data and continued unauthorized access to the mail service.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Review Stalwart Mail Server configuration files to verify the status of client-authentication requirements.</li>
<li>Patch the server to the latest version that enforces strict redirect URI validation regardless of authentication settings.</li>
<li>Audit application access logs for unexpected redirect URIs associated with OAuth authentication attempts.</li>
<li>Implement strict allowlisting for OAuth redirect URIs if the environment permits, ensuring only trusted destinations are permitted.</li>
</ol>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category></item></channel></rss>