Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

portainer version scan (Portainer version scanning module)

Open Sickwoman opened this issue 1 month ago • 1 comments

I'd like to add a portainer_version_scan module.

Why Portainer

One of the most commonly internet-exposed container-management panels (large Shodan/Censys footprint), and it manages Docker/Kubernetes — so a reliable version is high-value input for the planned version-to-CVE mapping work. It has a steady stream of advisories (e.g. CVE-2026-55761 affects specific 2.39–2.42 ranges), so pinning the exact version is useful. There is currently no Portainer module, and no open issue/PR for one. Proposed detection

GET /api/status on ports 9000 and 9443 (Portainer CE defaults), plus 80/443 for reverse-proxied instances, over http and https. This is a documented, unauthenticated endpoint that the login page itself calls; it returns JSON containing the instance "Version". Portainer 2.19+ moved it to /api/system/status, so the module probes both paths (/api/status and /api/system/status) via the fuzzer to cover old and new releases. Match on status 200 and capture the version from "Version":"X.Y.Z", then log only the captured version string (single-capture-group regex, same approach as the existing version-scan modules). Added as a scan module alongside the other *_version_scan modules (jenkins, confluence, grafana), in a portainer profile so -p portainer runs it. Testing plan Test against official Portainer CE Docker images — an older 2.1x (serving /api/status) and a recent 2.4x (serving /api/system/status) — confirming the version is captured on both. Also test against non-Portainer /api/status responses to check for false positives, and verify the module stays silent when neither endpoint returns a Version.

Can this be assigned to me?

OS: Windows 11

OS Version: 10.0.26200

Python Version: 3.12.10

Sickwoman avatar Nov 05 '26 11:11 Sickwoman

Can This be assigned to me @securestep9 ?

Sickwoman avatar Nov 05 '26 11:11 Sickwoman