Find ADAudit Plus web servers in nmap output and triage CVE-2026-6516 (pre-auth RCE) in a single dependency-free Python file.
Find ManageEngine ADAudit Plus web servers in a target list or nmap output
and flag builds affected by CVE-2026-6516 — in a single dependency-free
Python file.
cve-2026-6516-scanner.py identifies ADAudit Plus web servers with HTTP
fingerprinting, probes the Agent API surface the CVE lives in, checks whether
the web UI is exposed without authentication, and grades the detected build
against the advisory.
Current version: 2.3.4
CVE-2026-6516 is a pre-authentication remote code execution vulnerability
in ADAudit Plus, with CVSS v3.1 10.0
(AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L). Three properties shape how this
scanner works:
The flaw lives in the Agent APIs, not the console — authentication
bypass plus path traversal allows an unauthenticated attacker to write
files outside the intended directory, ultimately leading to RCE. So the
scanner probes Agent API paths and reports any that answer without
authentication.
It is graded on the build number, not semver — affected means builds
earlier than 8606; fixed in build 8606. The scanner extracts the build
number wherever the web surface exposes it.
The exposure dimension is often the real finding. ADAudit Plus serves
the full AD audit (user lists, group memberships, ACLs, password policy)
over its web UI. A console bound beyond loopback that answers
unauthenticated requests is a serious finding independent of the CVE, and
the two are reported separately.
Python 3.7 or newer. Standard library only — no pip install, no nmap
required.
Read-only: HTTP GET requests only. No exploitation, no path traversal, no
credential guessing.
TLS certificates are not verified — internal consoles almost always
use self-signed certificates.
# non-default port: --ports sets the port for targets without one
python3 cve-2026-6516-scanner.py --targets "web01.example.com" --ports 9002
# 443 and 8443 are probed over HTTPS automatically
python3 cve-2026-6516-scanner.py --targets "demo.example.com" --port 443
# an explicit port in the target string always wins
python3 cve-2026-6516-scanner.py --targets "web01.example.com:9002"
# nmap output file (any of -oX / -oN / grepable; auto-detected)
python3 cve-2026-6516-scanner.py --nmap-input-file scan.xml
# comma-delimited targets
python3 cve-2026-6516-scanner.py --targets "web01.example.com,web02.example.com:8081"
# line-delimited target file
python3 cve-2026-6516-scanner.py --input-file targets.txt
# see what the final / page actually contains
python3 cve-2026-6516-scanner.py --targets "web01.example.com" --ports 9002 --debug
# reports
python3 cve-2026-6516-scanner.py --nmap-input-file scan.xml --json report.json --csv report.csv
# diagnostics
python3 cve-2026-6516-scanner.py --self-test
Run --help for examples, the affected-version table and the advisory
summary — the section headers are colour-highlighted in a terminal.
HOST PORT SERVICE STATUS TITLE APP VERSION VERDICT EXPOSURE
web1 9002 - 200 ADAudit Plus ADAudit Plus 7053 VULNERABLE EXPOSED
web2 8080 http 200 ManageEngine ADAudit ADAudit Plus 8606 NOT VULNERABLE AUTH REQUIRED
web3 8443 https 200 ADAudit Plus login ADAudit Plus - UNKNOWN AUTH REQUIRED
In a terminal, VULNERABLE and EXPOSED render in red,
NOT VULNERABLE / AUTH REQUIRED / LOOPBACK ONLY render in green, and
UNKNOWN or weak-indicator matches render in yellow. Colour is disabled
automatically when output is not a terminal, when --color never is passed,
or when the NO_COLOR environment variable is set.
Three ways in, all combinable — there are no positional arguments:
| Source | Flag | Notes |
|---|---|---|
| nmap output | --nmap-input-file FILE | -oX, -oN and grepable formats auto-detected; repeatable |
| Comma-delimited string | --targets LIST | Same grammar as the file; repeatable |
| Line-delimited file | --input-file FILE | One target per line; # comments and blank lines ignored; repeatable |
Target grammar (--targets items or --input-file lines): host,
host:port, host port, or a CIDR (expanded to individual addresses, capped
at a built-in 1024-address limit).
Ports. host:9002 or host 9002 in the target string always wins. A
target without an explicit port is expanded across --ports; if --ports
is not given, --port (default 80) is used. Ports 443 and 8443 are probed
over HTTPS automatically, and if a plain-HTTP request lands on a TLS port
(nginx answers 400 The plain HTTP request was sent to HTTPS port) the probe
retries over TLS.
For nmap input, scan-file ports are filtered to web candidates before
probing: a port is a candidate if nmap named it as an HTTP-ish service, if
the service product string looks like a web server, or if the port is on
--ports (or the built-in list: 80, 443, 3000, 5000, 8000, 8008, 8080,
8081, 8082, 8180, 8443, 8888, 9000, 9001, 9090, 9443, 10000, 20000, 50000).
Port state is always read explicitly from the scan output (the <state>
element or the state field), never inferred. Explicit targets are always
probed regardless of port.
A signature matches when a strong marker hits — a marker in the response
body, the page title, or a response header. A match raised only by probe
paths answering 2xx is possible (weak) — too many web applications
answer 200 on generic paths — and is reported as
possible ADAudit Plus in yellow with a weak indicators only - verify manually note.
Two behaviours matter in practice:
Redirects are followed. ADAudit Plus consoles commonly redirect /
to a logon page. The scanner follows up to 3 hops and fingerprints the
final page, where the title and vendor assets actually live. Each
hop is shown in the evidence.
TLS is accepted unverified. A self-signed certificate no longer
aborts the probe; if an nmap entry is tagged HTTPS but the handshake
fails, plain HTTP is tried as a fallback.
The built-in signature ships with best-effort markers, defined in
APP_SIGNATURES at the top of the script, including the vendor asset name
(vendor-auditplus.js → marker auditplus), the /adap/ context path, and
the usual title/header markers. If a real ADAudit Plus host is not matched,
run with --debug and compare the printed title, headers and script/link
tags against the signature table; add the missing marker in the file.
Probing policy: every candidate gets a root-path request. Hosts that
fingerprint as ADAudit Plus also get the full probe set — console paths,
version paths and the Agent API paths. Hosts that do not fingerprint are
probed on the root path only.
CVE-2026-6516 is fixed in build 8606; anything earlier is affected. The
scanner looks for the build number in this order: