<?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/"><channel><title>Oauth (&gt;= 0.5.5, &lt;= 1.1.5) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/oauth--0.5.5--1.1.5/</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, 28 Jul 2026 16:28:12 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/oauth--0.5.5--1.1.5/feed.xml" rel="self" type="application/rss+xml"/><item><title>Cross-origin OAuth token-request redirects can expose signed request metadata</title><link>https://feed.craftedsignal.io/briefs/2026-07-oauth-cross-origin-redirect/</link><pubDate>Tue, 28 Jul 2026 16:28:12 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-oauth-cross-origin-redirect/</guid><description>The 'oauth' Ruby gem versions 0.5.5 through 1.1.5 are vulnerable to a critical issue (CVE-2026-54605) where the 'OAuth::Consumer#token_request' method improperly handles HTTP 3xx redirects during OAuth 1.0 token exchanges, enabling an attacker to redirect the request to a malicious host, exposing sensitive OAuth 1.0 metadata, and facilitating Server-Side Request Forgery (SSRF) and confused-deputy behavior.</description><content:encoded><![CDATA[<p>The <code>oauth</code> Ruby gem, specifically versions 0.5.5 through 1.1.5, contains a critical vulnerability (CVE-2026-54605) in its <code>OAuth::Consumer#token_request</code> method. This flaw allows for cross-origin signed-request disclosure, Server-Side Request Forgery (SSRF), and confused-deputy behavior. When an application uses the gem to request OAuth 1.0 tokens, the <code>token_request</code> helper follows HTTP 3xx redirects. If an attacker can control or compromise an OAuth server to return a redirect to a malicious host, the vulnerable gem will re-sign the original token request, including sensitive OAuth 1.0 metadata like <code>oauth_consumer_key</code>, <code>oauth_signature</code>, <code>oauth_nonce</code>, and <code>oauth_timestamp</code>, and send it to the attacker-controlled endpoint. This also exposes the application server's network position, enabling SSRF attacks against internal or external targets, and can force the application to make signed requests to unintended origins, leading to confused-deputy scenarios. The vulnerability is due to improper parsing of the <code>Location</code> header, lack of redirect limits, and recursive handling of cross-host redirects that mutate the consumer's configured <code>site</code>. Patching to version 1.1.6 or later is recommended.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An application, using the vulnerable <code>oauth</code> Ruby gem (v0.5.5-1.1.5), initiates an OAuth 1.0 token request (e.g., <code>OAuth::Consumer#get_request_token</code> or <code>OAuth::Consumer#get_access_token</code>) to a legitimate OAuth provider.</li>
<li>The OAuth provider's token endpoint, either compromised or influenced by an attacker, responds with an HTTP 3xx redirect. This redirect's <code>Location</code> header points to an attacker-controlled domain (e.g., <code>https://attacker.example/...</code>).</li>
<li>The vulnerable <code>OAuth::Consumer#token_request</code> method in the <code>oauth</code> gem automatically parses the <code>Location</code> header, modifies the consumer's <code>site</code> configuration to the attacker's domain, and rebuilds its internal HTTP client.</li>
<li>The <code>oauth</code> gem then recursively attempts the token request, this time targeting the attacker-controlled <code>site</code> but still using the application's legitimate OAuth 1.0 consumer key and secrets to sign the request.</li>
<li>The application server makes an outbound network connection, sending the newly signed OAuth 1.0 token request, which now includes sensitive parameters like <code>oauth_consumer_key</code>, <code>oauth_signature</code>, <code>oauth_nonce</code>, and <code>oauth_timestamp</code>, to the attacker-controlled host.</li>
<li>The attacker receives this signed request, gaining access to sensitive integration metadata and potentially discovering internal network services via Server-Side Request Forgery (SSRF) if the attacker's endpoint is crafted to target internal resources from the application server's network position.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-54605 can result in three main security property losses: <strong>cross-origin signed-request metadata disclosure</strong>, <strong>Server-Side Request Forgery (SSRF) from the application server</strong>, and <strong>confused-deputy behavior</strong>. Attackers can receive sensitive OAuth 1.0 parameters such as <code>oauth_consumer_key</code>, <code>oauth_signature_method</code>, <code>oauth_timestamp</code>, <code>oauth_nonce</code>, <code>oauth_version</code>, and <code>oauth_signature</code>. While the disclosed OAuth 1 signature is bound to the signed request and not a reusable bearer token, it still exposes sensitive integration metadata. SSRF allows the attacker to use the application server's network position to access internal network resources or other targets. Confused-deputy behavior enables a malicious or compromised token endpoint to cause the trusted application to initiate signed requests to unintended origins, potentially granting the attacker unauthorized access or control.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch the <code>oauth</code> Ruby gem to version 1.1.6 or later immediately to address CVE-2026-54605.</li>
<li>Ensure configured OAuth token endpoints are fixed absolute URLs controlled by a trusted provider, as described in the &quot;Workarounds&quot; section in the source advisory.</li>
<li>Avoid using tenant-controlled OAuth token endpoint URLs unless the tenant is fully trusted, as outlined in the &quot;Workarounds&quot; section in the source advisory.</li>
<li>Implement network egress filtering to block outbound application-server traffic to internal metadata services and other sensitive internal addresses, particularly for services interacting with the <code>oauth</code> gem.</li>
<li>Deploy a trusted proxy in front of OAuth providers that explicitly rejects token endpoint redirects to different origins, as described in the &quot;Workarounds&quot; section in the source advisory.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>oauth</category><category>vulnerability</category><category>ssrf</category><category>ruby</category><category>gem</category><category>web-application</category></item></channel></rss>