<?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-10-01T21:12:20.590524+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/ghsa-gx7w-56w6-g48x</id>
    <title>GHSA-gx7w-56w6-g48x — Caddy: Remote Admin Authorization Bypass on PKI Endpoints via Prefix-Based Path Matching</title>
    <updated>2026-10-01T21:12:21.313905+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/caddyserver/caddy/v2</p>
<p>## AI Disclosure</p>
<p>I used an LLM to help review the source code, reason about attack surface, and help draft and refine this report.
  I manually validated the finding by reproducing it locally, confirming the vulnerable code path, and verifying the HTTP behavior with `curl -v`.</p>
<p>## Summary</p>
<p>Caddy's remote admin access control performs path authorization using prefix matching:</p>
<p>- [`admin.go`](/caddy/admin.go#L719): `strings.HasPrefix(r.URL.Path, allowedPath)`</p>
<p>This allows a client certificate authorized only for `/pki/ca/prod` to access sibling PKI resources whose paths merely share the same prefix, such as `/pki/ca/prod-backup`.</p>
<p>This is an authorization bug in Caddy's source code, not a misconfiguration issue. The configured policy is more restrictive than the behavior that Caddy actually enforces.</p>
<p>## Affected Component</p>
<p>Remote admin access control for PKI admin endpoints.</p>
<p>Relevant code:</p>
<p>- [`admin.go`](/caddy/admin.go#L687)
  - [`admin.go`](/caddy/admin.go#L719)
  - [`modules/caddypki/adminapi.go`](/caddy/modules/caddypki/adminapi.go#L68)
  - [`modules/caddypki/adminapi.go`](/caddy/modules/caddypki/adminapi.go#L164)</p>
<p>## Root Cause</p>
<p>In `RemoteAdmin.enforceAccessControls()`, allowed paths are checked like this:</p>
<p>```go
  for _, allowedPath := range accessPerm.Paths {
  	if strings.HasPrefix(r.URL.Path, allowedPath) {
  		pathFound = true
  		break
  	}
  }
```</p>
<p>This does not enforce a path-segment boundary.</p>
<p>So if the allowed path is:</p>
<p>/pki/c…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-gx7w-56w6-g48x"/>
  </entry>
</feed>
