Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
netgear-r8500-preauth-rce — End-to-end PoC for Netgear R8500 firmware V1.0.2.100_1.0.82: unauthenticated config download, static DES decryption, admin credential recovery, and telnet root shell. | Kitploit
工具/GitHubGitHub/ejfkdev/netgear-r8500-preauth-rce
Embedded Systems SecurityPrivilege EscalationVulnerability AnalysisExploitationInformation GatheringCryptographyHardware & IoT SecurityAuthenticationRemote Access Tool
分享
Firmware Analysis
GitHubejfkdev/netgear-r8500-preauth-rce

netgear-r8500-preauth-rce

End-to-end PoC for Netgear R8500 firmware V1.0.2.100_1.0.82: unauthenticated config download, static DES decryption, admin credential recovery, and telnet root shell.

查看仓库
6小时22分前尚未审核

Netgear R8500 预认证到 Root RCE

仅供授权安全测试使用。 请仅在你拥有或已获得明确书面授权的设备上运行本项目。

firmware python device

概述

Netgear R8500(Nighthawk X8)固件 V1.0.2.100_1.0.82 存在一条从未认证到 root shell 的完整利用链:

未认证下载加密配置
  → 用固件静态 DES 密钥解密
  → 得到 Web 管理员口令 / 找回答案 / WPS PIN / WiFi 密码
  → 管理员登录后台
  → 隐藏调试页 /debug.htm
  → /newdebug.cgi form=3 启动 telnet
  → 无登录 uid=0 BusyBox root shell

核心问题:

  • 认证绕过:认证白名单只比对 ? 之前的前缀,业务分发却对完整 URL 做 strstr,因此任意白名单静态文件 + 恶意查询串即可触发配置导出。
  • 静态加密密钥:配置使用固件内固定密钥 "NtgrBak" 的逐块 DES 加密,所有设备相同,可离线解密。
  • 隐藏调试接口:管理员登录后,newdebug.cgi 可直接启动 utelnetd;固件缺少可用的 /bin/login,实际落到 BusyBox ash,直接获得 uid=0 root shell。

固件下载

版本说明官方下载
V1.0.2.100_1.0.82本项目实测版本R8500-V1.0.2.100_1.0.82.zip
V1.0.2.160_1.0.107另一版本(未在本项目实机验证)R8500-V1.0.2.160_1.0.107.zip

固件由 NETGEAR 官方站点托管。刷机有风险,请先核对校验和,并在隔离环境中测试。

文件

文件说明
r8500_exploit.py单 IP 参数的端到端 PoC,仅使用 Python 标准库
R8500_vuln_report.md完整漏洞报告(已脱敏:无序列号、口令、答案、WPS PIN、SSID、MAC、IP)

脚本

python3 r8500_exploit.py <ROUTER_IP>          # 默认:仅关键信息
python3 r8500_exploit.py <ROUTER_IP> --all    # 额外:完整 nvram + root 详情

默认输出(精简):

  • 序列号
  • Web 登录用户名 / 密码
  • 两个密码找回问题的答案
  • WPS PIN
  • 所有 WiFi 名称 / 密码(2.4G、5G、5G-2、guest、WPS SSID)
  • Telnet 登录状态与完整连接命令

示例(占位符):

序列号        : <SERIAL>
设备/固件     : R8500 V1.0.2.100_1.0.82
Web 登录      : <ADMIN_USER> / <ADMIN_PASS>
问题答案      : <ANSWER_1> / <ANSWER_2>
WPS PIN       : <WPS_PIN>
WiFi 名称/密码:
  2.4G                   : <SSID_24G> / <PSK_24G>
  5G-1                   : <SSID_5G> / <PSK_5G>
  5G-2                   : <SSID_5G2> / <PSK_5G2>
Telnet 登录   : 无(直接 root shell,无需用户名密码)
Telnet 命令   : telnet <ROUTER_IP>
                nc <ROUTER_IP> 23

--all 额外输出完整 nvram、DDNS/FTP 等凭据,以及 root shell 下的 DHCP 租约/主机名、ARP 表、无线客户端列表、shadow/passwd。

脚本默认保留 telnet 以便交互。测试结束后请执行脚本末尾打印的 form=3 关闭命令;不要让无登录 root shell 长期暴露。

漏洞报告

R8500_vuln_report.md 包含完整分析、证据与修复建议:

  • C1 未授权配置下载 + DES 解密 + 管理员口令(实机验证)
  • R1 认证后隐藏调试页 → root shell(实机验证)
  • C2 UPnP SOAP Authenticate 子串绕过 → 配置恢复 / 固件刷写(代码确认)
  • H1 密码找回直接回显 http_username / http_passwd
  • H2 genie.cgi 预认证执行(已确认无命令注入)
  • 已排除路径:HTTP 走私、路径穿越、ASP 令牌注入、写 web 根等
  • 修复建议:统一认证/分发的 URL 视图、每设备配置密钥、移除调试页 telnet 能力

环境要求

  • Python 3.6+(不需要第三方库)
  • 能访问路由器 LAN 管理地址
  • 可选:TCP/UDP 5000 可达时,脚本通过 UPnP IGD 读取序列号

免责声明

本项目仅用于授权渗透测试、漏洞研究与防御验证。使用者应确保对目标设备拥有明确授权,并遵守当地法律法规。作者不对任何未授权使用或由此造成的损失负责。测试完成后请关闭 telnet、恢复设备配置,并妥善保管运行输出中的敏感信息。


Netgear R8500 Pre-auth to Root RCE (English)

For authorized security testing only. Run this project only against devices you own or have explicit written permission to test.

Overview

Netgear R8500 (Nighthawk X8) firmware V1.0.2.100_1.0.82 is vulnerable to a full unauthenticated-to-root exploit chain:

Unauthenticated encrypted-config download
  → decrypt with the static DES key embedded in firmware
  → recover web admin password / recovery answers / WPS PIN / WiFi keys
  → log in to the admin UI
  → hidden debug page /debug.htm
  → /newdebug.cgi form=3 starts telnet
  → unauthenticated uid=0 BusyBox root shell

Root causes:

  • Authentication bypass: the auth whitelist compares only the URL prefix before ?, while request dispatch runs strstr on the full URL. Any whitelisted static file plus a crafted query string reaches the config-export handler.
  • Static encryption key: the config is encrypted with the firmware-wide key "NtgrBak" using a per-block DES schedule. Every device shares it, so backups can be decrypted offline.
  • Hidden debug interface: after admin login, newdebug.cgi can start utelnetd. The firmware lacks a usable /bin/login, so the service falls back to BusyBox ash and yields a uid=0 root shell directly.

Firmware

VersionNotesOfficial download
V1.0.2.100_1.0.82Tested in this projectR8500-V1.0.2.100_1.0.82.zip
V1.0.2.160_1.0.107Additional build (not live-tested in this project)R8500-V1.0.2.160_1.0.107.zip

Firmware is hosted by NETGEAR. Flashing carries risk; verify checksums and test in an isolated environment.

Files

FileDescription
r8500_exploit.pyEnd-to-end PoC taking a single IP; Python standard library only
R8500_vuln_report.mdFull sanitized report (no serial, passwords, answers, WPS PIN, SSIDs, MACs, or IPs)

Usage

python3 r8500_exploit.py <ROUTER_IP>          # concise key information
python3 r8500_exploit.py <ROUTER_IP> --all    # full nvram + root-level details

Default output:

  • Serial number
  • Web admin username / password
  • Answers to both password-recovery questions
  • WPS PIN
  • All WiFi SSIDs / passphrases (2.4G, 5G, 5G-2, guest, WPS SSIDs)
  • Telnet login status and complete connection commands

Example (placeholders):

Serial        : <SERIAL>
Device/FW     : R8500 V1.0.2.100_1.0.82
Web login     : <ADMIN_USER> / <ADMIN_PASS>
Answers       : <ANSWER_1> / <ANSWER_2>
WPS PIN       : <WPS_PIN>
WiFi SSID/PSK :
  2.4G                   : <SSID_24G> / <PSK_24G>
  5G-1                   : <SSID_5G> / <PSK_5G>
  5G-2                   : <SSID_5G2> / <PSK_5G2>
Telnet login  : none (direct root shell)
Telnet        : telnet <ROUTER_IP>
                nc <ROUTER_IP> 23

--all additionally dumps every non-empty nvram key, DDNS/FTP credentials, DHCP leases/hostnames, the ARP table, wireless clients, and shadow/passwd from the root shell.

The script leaves telnet enabled by default. After testing, run the form=3 disable command printed at the end. Do not leave an unauthenticated root shell exposed.

Vulnerability report

R8500_vuln_report.md contains the full analysis, evidence, and remediation guidance:

  • C1 Unauthenticated config download + DES decryption + admin credentials (live-verified)
  • R1 Authenticated hidden debug page → root shell (live-verified)
  • C2 UPnP SOAP Authenticate substring bypass → config restore / firmware flash (code-confirmed)
  • H1 Password recovery page echoes http_username / http_passwd
  • H2 Pre-auth genie.cgi execution (confirmed, no command injection)
  • Ruled out: HTTP smuggling, path traversal, ASP token injection, web-root writes
  • Remediation: unify the URL view between auth and dispatch, use per-device config keys, remove telnet from debug pages

Requirements

  • Python 3.6+ (no third-party packages)
  • Network access to the router's LAN management address
  • Optional: TCP/UDP 5000 reachable for the UPnP IGD serial lookup

Disclaimer

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    974
  • 2

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    760
  • 3

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    728
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    483
  • 5

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    438
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    397

探索所有工具

浏览我们的工具集合

查看所有工具 →