<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 30 Oct 2026 06:59:22 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-56654 — Privilege Escalation via Access Token Scope Escalation in API</title>
      <link>https://db.gcve.eu/vuln/cve-2026-56654</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Gitea Open Source Git Server&lt;/p&gt;
&lt;p&gt;Privilege Escalation via Access Token Scope Escalation in API&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Gitea Open Source Git Server&lt;/p&gt;
&lt;p&gt;Privilege Escalation via Access Token Scope Escalation in API&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-56654</guid>
    </item>
    <item>
      <title>GHSA-683j-3ff6-hh2x — Gitea: Privilege Escalation via Access Token Scope Escalation in API</title>
      <link>https://db.gcve.eu/vuln/ghsa-683j-3ff6-hh2x</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: code.gitea.io/gitea&lt;/p&gt;
&lt;p&gt;Gitea&amp;#39;s API endpoint for creating Personal Access Tokens (`POST /users/{username}/tokens`) is protected by a middleware (`reqBasicOrRevProxyAuth`) that is intended to require password-based authentication, preventing a compromised token from being used to mint new ones. However, when a token is passed in the `Authorization: Basic &amp;lt;token&amp;gt;:x-oauth-basic` format, the Basic auth handler validates it and sets `AuthedMethod=&amp;#34;basic&amp;#34;`, causing `IsBasicAuth=true` and fooling the middleware into passing the request. Once past the guard, the token creation handler applies no scope ceiling — it will create a new token with any requested scope regardless of the caller&amp;#39;s scope. An attacker with a restricted token (e.g. `write:user` from a leaked CI secret) can therefore create a fully-privileged `all`-scoped token without knowing the account password.&lt;/p&gt;
&lt;p&gt;### Data flow&lt;/p&gt;
&lt;p&gt;#### Step 1 - Token extracted from Basic auth header
  
When the attacker sends Authorization: Basic base64(&amp;lt;token&amp;gt;:x-oauth-basic), parseAuthBasic detects that the password is &amp;#34;x-oauth-basic&amp;#34; and treats the username field as the token:&lt;/p&gt;
&lt;p&gt;https://github.com/go-gitea/gitea/blob/9155a81b9daf1d46b2380aa91271e623ac947c1e/services/auth/basic.go#L55-L64&lt;/p&gt;
&lt;p&gt;`VerifyAuthToken` then validates the token against the database and sets `LoginMethod = &amp;#34;access_token&amp;#34;` and `ApiTokenScope` to the token&amp;#39;s actual scope (`write:user`):&lt;/p&gt;
&lt;p&gt;https://github.com/go-gitea/gitea/blob/9155a81b9daf1d46b2380aa91271e623ac947c1e/services/auth/basic.go#L100-L106&lt;/p&gt;
&lt;p&gt;#…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: code.gitea.io/gitea&lt;/p&gt;
&lt;p&gt;Gitea&amp;#39;s API endpoint for creating Personal Access Tokens (`POST /users/{username}/tokens`) is protected by a middleware (`reqBasicOrRevProxyAuth`) that is intended to require password-based authentication, preventing a compromised token from being used to mint new ones. However, when a token is passed in the `Authorization: Basic &amp;lt;token&amp;gt;:x-oauth-basic` format, the Basic auth handler validates it and sets `AuthedMethod=&amp;#34;basic&amp;#34;`, causing `IsBasicAuth=true` and fooling the middleware into passing the request. Once past the guard, the token creation handler applies no scope ceiling — it will create a new token with any requested scope regardless of the caller&amp;#39;s scope. An attacker with a restricted token (e.g. `write:user` from a leaked CI secret) can therefore create a fully-privileged `all`-scoped token without knowing the account password.&lt;/p&gt;
&lt;p&gt;### Data flow&lt;/p&gt;
&lt;p&gt;#### Step 1 - Token extracted from Basic auth header
  
When the attacker sends Authorization: Basic base64(&amp;lt;token&amp;gt;:x-oauth-basic), parseAuthBasic detects that the password is &amp;#34;x-oauth-basic&amp;#34; and treats the username field as the token:&lt;/p&gt;
&lt;p&gt;https://github.com/go-gitea/gitea/blob/9155a81b9daf1d46b2380aa91271e623ac947c1e/services/auth/basic.go#L55-L64&lt;/p&gt;
&lt;p&gt;`VerifyAuthToken` then validates the token against the database and sets `LoginMethod = &amp;#34;access_token&amp;#34;` and `ApiTokenScope` to the token&amp;#39;s actual scope (`write:user`):&lt;/p&gt;
&lt;p&gt;https://github.com/go-gitea/gitea/blob/9155a81b9daf1d46b2380aa91271e623ac947c1e/services/auth/basic.go#L100-L106&lt;/p&gt;
&lt;p&gt;#…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-683j-3ff6-hh2x</guid>
    </item>
  </channel>
</rss>
