<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T02:58:14.297495+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/fkie_cve-2026-58511</id>
    <title>fkie_cve-2026-58511</title>
    <updated>2026-09-29T02:58:14.347623+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>Webhook Authorization Header Returned in Plaintext via API</p>
      </div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/fkie_cve-2026-58511"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-3r5c-2xxx-h872</id>
    <title>GHSA-3r5c-2xxx-h872 — Gitea: Webhook Authorization Header Returned in Plaintext via API</title>
    <updated>2026-09-29T02:58:14.347770+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: code.gitea.io/gitea</p>
<p>## Summary</p>
<p>The `ToHook()` function in `services/webhook/general.go` decrypts the webhook'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.</p>
<p>The authorization header is stored encrypted in the database using the server's `SecretKey`, but `ToHook()` decrypts it before serializing it into the API response — converting a write-only secret into a readable credential.</p>
<p>## Vulnerable Code</p>
<p>**File:** `services/webhook/general.go:407-420`</p>
<p>```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;api.Hook{
        // ...
        AuthorizationHeader: authorizationHeader,  // PLAINTEXT in response
        // ...
    }, nil
}
```</p>
<p>**Decryption function:** `models/webhook/webhook.go:209-216`</p>
<p>```go
func (w Webhook) HeaderAuthorization() (string, error) {
    if w.HeaderAuthorizationEncrypted == "" {
        return "", nil
    }
    return secret.DecryptSecret(setting.SecretKey, w.HeaderAuthorizationEncrypted)
}
```</p>
<p>## Affected Endpoints</p>
<p>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/…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-3r5c-2xxx-h872"/>
  </entry>
</feed>
