<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 20:50:24 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2026-58511</title>
      <link>https://vulnerability.circl.lu/vuln/fkie_cve-2026-58511</link>
      <description>&lt;p&gt;Webhook Authorization Header Returned in Plaintext via API&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;Webhook Authorization Header Returned in Plaintext via API&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/fkie_cve-2026-58511</guid>
    </item>
    <item>
      <title>GHSA-3r5c-2xxx-h872 — Gitea: Webhook Authorization Header Returned in Plaintext via API</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-3r5c-2xxx-h872</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: code.gitea.io/gitea&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;The `ToHook()` function in `services/webhook/general.go` decrypts the webhook&amp;#39;s `HeaderAuthorizationEncrypted` field and returns the plaintext authorization header in the API response. Any repository admin can read the full plaintext value of webhook authorization headers (Bearer tokens, Basic auth credentials, API keys) set by other admins.&lt;/p&gt;
&lt;p&gt;The authorization header is stored encrypted in the database using the server&amp;#39;s `SecretKey`, but `ToHook()` decrypts it before serializing it into the API response — converting a write-only secret into a readable credential.&lt;/p&gt;
&lt;p&gt;## Vulnerable Code&lt;/p&gt;
&lt;p&gt;**File:** `services/webhook/general.go:407-420`&lt;/p&gt;
&lt;p&gt;```go
func ToHook(repoLink string, w *webhook_model.Webhook) (*api.Hook, error) {
    // ...
    authorizationHeader, err := w.HeaderAuthorization()  // DECRYPTS from DB
    if err != nil {
        return nil, err
    }
    return &amp;amp;api.Hook{
        // ...
        AuthorizationHeader: authorizationHeader,  // PLAINTEXT in response
        // ...
    }, nil
}
```&lt;/p&gt;
&lt;p&gt;**Decryption function:** `models/webhook/webhook.go:209-216`&lt;/p&gt;
&lt;p&gt;```go
func (w Webhook) HeaderAuthorization() (string, error) {
    if w.HeaderAuthorizationEncrypted == &amp;#34;&amp;#34; {
        return &amp;#34;&amp;#34;, nil
    }
    return secret.DecryptSecret(setting.SecretKey, w.HeaderAuthorizationEncrypted)
}
```&lt;/p&gt;
&lt;p&gt;## Affected Endpoints&lt;/p&gt;
&lt;p&gt;All call `ToHook()`:
- `GET /api/v1/repos/{owner}/{repo}/hooks` (requires repo admin)
- `GET /api/v1/repos/{owner}/{repo}/hooks/{id}` (requires repo admin)
- `GET /api/…&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;## Summary&lt;/p&gt;
&lt;p&gt;The `ToHook()` function in `services/webhook/general.go` decrypts the webhook&amp;#39;s `HeaderAuthorizationEncrypted` field and returns the plaintext authorization header in the API response. Any repository admin can read the full plaintext value of webhook authorization headers (Bearer tokens, Basic auth credentials, API keys) set by other admins.&lt;/p&gt;
&lt;p&gt;The authorization header is stored encrypted in the database using the server&amp;#39;s `SecretKey`, but `ToHook()` decrypts it before serializing it into the API response — converting a write-only secret into a readable credential.&lt;/p&gt;
&lt;p&gt;## Vulnerable Code&lt;/p&gt;
&lt;p&gt;**File:** `services/webhook/general.go:407-420`&lt;/p&gt;
&lt;p&gt;```go
func ToHook(repoLink string, w *webhook_model.Webhook) (*api.Hook, error) {
    // ...
    authorizationHeader, err := w.HeaderAuthorization()  // DECRYPTS from DB
    if err != nil {
        return nil, err
    }
    return &amp;amp;api.Hook{
        // ...
        AuthorizationHeader: authorizationHeader,  // PLAINTEXT in response
        // ...
    }, nil
}
```&lt;/p&gt;
&lt;p&gt;**Decryption function:** `models/webhook/webhook.go:209-216`&lt;/p&gt;
&lt;p&gt;```go
func (w Webhook) HeaderAuthorization() (string, error) {
    if w.HeaderAuthorizationEncrypted == &amp;#34;&amp;#34; {
        return &amp;#34;&amp;#34;, nil
    }
    return secret.DecryptSecret(setting.SecretKey, w.HeaderAuthorizationEncrypted)
}
```&lt;/p&gt;
&lt;p&gt;## Affected Endpoints&lt;/p&gt;
&lt;p&gt;All call `ToHook()`:
- `GET /api/v1/repos/{owner}/{repo}/hooks` (requires repo admin)
- `GET /api/v1/repos/{owner}/{repo}/hooks/{id}` (requires repo admin)
- `GET /api/…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-3r5c-2xxx-h872</guid>
    </item>
  </channel>
</rss>
