Detection and exploitation of exposed Spring Boot Actuator (/heapdump, /env, /gateway, /jolokia) and other framework debug/management endpoints (Django/Rails/Laravel debug, phpinfo) that leak secrets or chain to RCE. Tier 2. Use when a Java/Spring or framework debug surface is suspected.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Exposed Actuators?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-exposed-actuators)
---
name: exposed-actuators
description: Detection and exploitation of exposed Spring Boot Actuator (/heapdump, /env, /gateway, /jolokia) and other framework debug/management endpoints (Django/Rails/Laravel debug, phpinfo) that leak secrets or chain to RCE. Tier 2. Use when a Java/Spring or framework debug surface is suspected.
---
# Exposed Actuators & Debug Endpoints
Management/debug endpoints range from secret-leaking (heapdump, env) to directly RCE-able (Spring Cloud Gateway SpEL, Jolokia JNDI). High value, often forgotten.
## Trigger phrases
`actuator, heapdump, spring boot actuator, jolokia, spring cloud gateway, env endpoint, debug endpoint, phpinfo, ignition`
## Execution gate (Tier 2)
Detection and info-leak reads (heapdump/env/mappings) are non-destructive and run by default. Before any RCE chain (gateway SpEL route, jolokia JNDI, `/env` property-injection), ask:
1. "Lab/authorized to exploit this to RCE?" → if yes, run the full chain.
2. If no: "Run detection only (enumerate endpoints + version-check, no exploitation)?" → if yes, stop at identification.
Record answers in `./.zazy/scope.md`.
## Method
1. **Discover**: probe both `/actuator/<x>` and legacy root `/<x>`:
`nuclei -t http/exposures/ -t http/misconfiguration/springboot* -u https://T`; manually hit `/actuator`, `/actuator/mappings`.
2. **Info leak (safe)**:
- `/actuator/heapdump` — download heap; grep for AWS `AKIA`, JWTs `eyJ`, `Authorization`/cookies, DB creds → `secrets-disclosure`.
- `/actuator/env` — config + env vars (DB passwords, cloud keys). `/actuator/configprops`.
- `/actuator/mappings`, `/threaddump`, `/metrics`, `/scheduledtasks`, `/info`, `/health` — internal routes/IPs/versions → `server-leaks`, `version-id`.
3. **RCE chains (gated)**:
- **Spring Cloud Gateway** (`/actuator/gateway/routes`) — SSRF by design + **CVE-2022-22947** SpEL: create a route with a SpEL `#{T(java.lang.Runtime)...}` body then POST `/actuator/gateway/refresh`. Prove with a benign OAST callback / `id`.
- **Jolokia** (`/actuator/jolokia`) — JMX over HTTP; `/jolokia/list` enumerate MBeans; `logback reloadByURL` → JNDI → RCE (confirm via OAST, not weaponized payload).
- **`/env` POST property injection** on vulnerable versions → set a property + refresh to reach RCE.
4. **Other framework debug** (handoff/overlap `tech-misconfig`): Werkzeug `__debugger__` console, Django `DEBUG=True` dump, Rails `web-console`, Laravel `APP_DEBUG` + Ignition **CVE-2021-3129** RCE, Symfony `/_profiler`, `phpinfo()`.
## Modern / rare techniques
- **Heapdump secret mining** is reliable even when `/env` is masked (`******`): the heap holds raw values.
- **Both path styles**: older apps expose actuators at root (`/env`) not `/actuator/env`.
- **Gateway as SSRF** even without the SpEL CVE → `web-ssrf`.
## Escalation / chaining
Secrets → `secrets-disclosure`/`cloud-pentest`/`jwt`; RCE → post-exploitation; SSRF → `web-ssrf`/metadata chains. Discovery feeds `version-id`/`vulnerable-components`.
## Backend & tooling
Kali/HexStrike (nuclei/curl/jq/`jattack`/spring-boot exploit scripts). Burp Repeater for manual route/env POSTs. OAST (interactsh/Collaborator) for RCE confirmation.
## Verification (background, before reporting)
Re-confirm each exposed endpoint independently. For RCE, confirm with an OAST callback or benign command output, reproduce once, and never run destructive commands. Distinguish "exposed" vs "secret-leaking" vs "RCE".
## Evidence
Endpoint + response/dump excerpt (redacted secrets), RCE PoC (OAST hit / benign output), impact + remediation (`management.endpoints.web.exposure.exclude`, Spring Security + IP allow-list, disable debug in prod, patch; IMDSv2 to blunt SSRF).