At a glance
- Controls
- CWE-489 · A05:2021 Security Misconfiguration
What it is
Frameworks and tools ship with endpoints for debugging, health, metrics and profiling. These are meant for engineers on an internal network. When they are reachable from outside, they can expose settings, memory contents or controls that change how the app runs.
An attacker probes common paths for these endpoints on every host they can find. Some leak secrets, and some let a caller trigger memory dumps or profiling that slow the service. AI tools can try known paths across many hosts and read the results in moments.
Where it hides
What a reviewer can look for in the code and in the behaviour, before anyone proves it.
- Framework management and actuator endpoints left on in production
- Profiling and memory dump routes added during debugging
- Metrics endpoints on the same port as the public app
- Admin consoles on staging hosts that share production data
How MATT tests it
The proof runs against the deployed product, on every release, whoever wrote the code.
- 01Read the configuration to list debug, metrics and admin routes and the ports they use
- 02From outside the network, send a plain GET to each listed path with no login
- 03Record which ones answer, reading only what they return and calling no action endpoints
Debug and metrics endpoints must not be reachable from the internet.
Executable checkfrom the internet: GET /debug, /metrics, /actuator and similar listed paths expect: 404 or no connection from the internet: GET /admin with no login expect: 401, 403 or no connection
Every rule MATT holds →What the fix looks like
- 01
Serve debug and metrics endpoints on a separate internal port or network
- 02
Turn off debug and profiling features in production builds
- 03
Block these paths at the load balancer or gateway
- 04
Require strong authentication on any admin console that must stay reachable
A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →