Bring Your Own SSRF – The Gateway Actuator
An exposed Spring Boot Gateway actuator allowed unauthenticated users to add new routes, enabling server-side request forgery (SSRF) to internal services or cloud metadata. Attackers could also delete existing routes, causing denial of service.
Published on web.archive.org
I love finding exposed spring boot actuators when testing applications. Spring supplies a bunch of default actuators such as health, info, mappings, env, configprops, and the infamous heapdump.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The gateway actuator endpoints were exposed without authentication, allowing unauthenticated users to modify routing configuration.
Impact
An attacker could use the application to access internal services or cloud metadata, potentially obtaining credentials, and could also delete routes to cause denial of service.
What the attacker needed
Exposed Spring Boot Gateway actuator; No authentication on actuator endpoints
The fix
The gateway actuator should be protected by authentication or disabled for non-administrators.
How it was found
- Send a GET request to /actuator/gateway/routes to list existing routes.
- Send a POST request to /actuator/gateway/routes/new_route with a JSON body defining a new route.
- Send a POST request to /actuator/gateway/refresh to apply the new route.
- Send a request to the new route path to trigger the SSRF.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The application had a management endpoint that was not protected by a password. This endpoint let anyone create new rules for how the application forwards web traffic. By adding a rule, an attacker could make the application send requests to internal systems that are normally not reachable from the internet.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.