<?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>Api-Token — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/api-token/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 22 Apr 2026 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/api-token/feed.xml" rel="self" type="application/rss+xml"/><item><title>Tekton Pipelines Git Resolver API Token Leak via User-Controlled ServerURL</title><link>https://feed.craftedsignal.io/briefs/2026-04-tekton-api-token-leak/</link><pubDate>Wed, 22 Apr 2026 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-tekton-api-token-leak/</guid><description>The Tekton Pipelines git resolver in API mode leaks the system-configured Git API token to a user-controlled `serverURL` when the user omits the `token` parameter, allowing an attacker with TaskRun or PipelineRun creation permissions to exfiltrate the shared API token.</description><content:encoded><![CDATA[<p>A vulnerability exists in Tekton Pipelines&rsquo; git resolver (versions v1.0.0 through v1.10.0) where the system-configured Git API token is sent to a user-controlled <code>serverURL</code> when the user omits the <code>token</code> parameter. This allows a malicious tenant with TaskRun or PipelineRun create permissions to exfiltrate the shared API token (GitHub PAT, GitLab token, etc.) by pointing <code>serverURL</code> to an attacker-controlled endpoint. The attacker can then use this token to gain unauthorized access to private repositories, potentially exposing source code, secrets, and CI/CD configurations. This vulnerability is similar to GHSA-j5q5-j9gm-2w5c, where credentials could be exfiltrated. The vulnerability resides in the <code>ResolveAPIGit()</code> function within <code>pkg/resolution/resolver/git/resolver.go</code>.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains permission to create TaskRuns or PipelineRuns within a Tekton Pipelines namespace.</li>
<li>Attacker crafts a malicious TaskRun or PipelineRun configuration.</li>
<li>The configuration specifies the git resolver in API mode.</li>
<li>The configuration omits the <code>token</code> parameter but includes a <code>serverURL</code> pointing to an attacker-controlled endpoint.</li>
<li>Tekton Pipelines executes the TaskRun or PipelineRun, triggering the git resolver.</li>
<li>The <code>ResolveAPIGit()</code> function retrieves the system-configured Git API token using <code>getAPIToken()</code>.</li>
<li>The function creates an SCM client pointed at the attacker-controlled <code>serverURL</code> with the system token as an <code>Authorization</code> header.</li>
<li>Subsequent API calls from the resolver to the attacker-controlled URL transmit the system token, allowing the attacker to capture it.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an attacker to exfiltrate the system Git API token (GitHub PAT, GitLab token, etc.). The exfiltrated token can be used to access private repositories, potentially leading to the exposure of sensitive information like source code, secrets, and CI/CD configurations.  This can lead to supply chain compromise, data breaches, or other unauthorized activities. All Tekton Pipeline instances running versions v1.0.0 through v1.10.0 are potentially vulnerable if a system-level API token is configured.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Do not configure a system-level API token</strong> in the git resolver ConfigMap. Instead, require all users to provide their own tokens via the <code>token</code> parameter, as suggested in the advisory&rsquo;s workaround section.</li>
<li><strong>Restrict TaskRun creation</strong> to limit which users or ServiceAccounts can create TaskRuns and PipelineRuns that use the git resolver, as recommended in the advisory&rsquo;s workaround section.</li>
<li><strong>Apply NetworkPolicy</strong> to the <code>tekton-pipelines-resolvers</code> namespace to restrict outbound traffic to known-good Git servers only, mitigating the risk of token exfiltration to arbitrary <code>serverURL</code> values.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>tekton</category><category>git</category><category>credential-access</category><category>api-token</category></item><item><title>Directus Aggregate Query Vulnerability Allows Disclosure of Concealed Data</title><link>https://feed.craftedsignal.io/briefs/2026-04-directus-aggregate-disclosure/</link><pubDate>Sat, 04 Apr 2026 06:13:57 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-directus-aggregate-disclosure/</guid><description>A vulnerability in Directus versions prior to 11.17.0 allows authenticated users to extract concealed field values, including static API tokens and two-factor authentication secrets from directus_users, via aggregate queries.</description><content:encoded><![CDATA[<p>Directus versions prior to 11.17.0 contain a vulnerability where aggregate functions, such as <code>min</code> and <code>max</code>, when applied to fields with the <code>conceal</code> special type, incorrectly return raw database values instead of the masked placeholder. This affects authenticated users who have read access to the affected collection, enabling them to extract concealed field values via <code>groupBy</code> aggregate queries.  This vulnerability allows for the extraction of sensitive information, such as static API tokens and two-factor authentication secrets stored in <code>directus_users</code>, enabling account takeovers and 2FA bypass. The vulnerability was reported on April 4, 2026, and is identified as CVE-2026-35442. Defenders should prioritize upgrading Directus instances to version 11.17.0 or later to mitigate this risk.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker authenticates to a vulnerable Directus instance with valid user credentials.</li>
<li>Attacker identifies a collection containing fields with the <code>conceal</code> special type, such as <code>directus_users</code>.</li>
<li>Attacker crafts an aggregate query using functions like <code>min</code> or <code>max</code> on the concealed field and includes a <code>groupBy</code> clause. Example: <code>SELECT min(secret_field) FROM collection GROUP BY other_field</code>.</li>
<li>The Directus server processes the aggregate query but fails to properly apply the masking logic to the nested results.</li>
<li>The server returns the raw, unmasked values of the concealed field in the aggregate query response.</li>
<li>The attacker extracts static API tokens and TOTP seeds from the returned data.</li>
<li>Attacker uses the extracted API tokens to authenticate as other users, including administrators, bypassing username/password requirements.</li>
<li>Attacker uses the extracted TOTP seeds to bypass two-factor authentication for other users, gaining unauthorized access to their accounts.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability can lead to complete account takeover, including administrative accounts. Two-factor authentication mechanisms can be bypassed, invalidating this security control. The number of affected organizations depends on the adoption rate of Directus, but all instances running versions prior to 11.17.0 are vulnerable. If the attack succeeds, attackers gain full control over the Directus instance and associated data, potentially leading to data breaches, service disruption, and reputational damage.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Directus to version 11.17.0 or later to patch the vulnerability (CVE-2026-35442).</li>
<li>Implement a Web Application Firewall (WAF) rule to detect and block aggregate queries targeting concealed fields in sensitive collections. See the Sigma rule example for guidance.</li>
<li>Monitor Directus application logs for unusual aggregate query patterns, especially those involving <code>groupBy</code> and functions like <code>min</code> or <code>max</code>.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>directus</category><category>vulnerability</category><category>credential-access</category><category>api-token</category><category>2fa-bypass</category></item></channel></rss>