CWE-489AvailabilitySeverity · High

Debug endpoints on the internet

Profiling, metrics and admin consoles that answer from the internet can leak internals or allow heavy actions. Some let an outsider crash or control the app.

At a glance

Controls
CWE-489 · A05:2021 Security Misconfiguration
Typical severityHigh
ReferenceCWE-489
OWASP Top 10A05: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.

  1. 01Read the configuration to list debug, metrics and admin routes and the ports they use
  2. 02From outside the network, send a plain GET to each listed path with no login
  3. 03Record which ones answer, reading only what they return and calling no action endpoints
The rule, in plain English

Debug and metrics endpoints must not be reachable from the internet.

Executable check

from 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

  1. 01

    Serve debug and metrics endpoints on a separate internal port or network

  2. 02

    Turn off debug and profiling features in production builds

  3. 03

    Block these paths at the load balancer or gateway

  4. 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? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02