mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-10 04:33:31 +08:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
id: springboot-metrics
|
|
|
|
info:
|
|
name: Springboot Actuator Metrics - Exposure
|
|
author: pussycat0x,TheZakMan
|
|
severity: low
|
|
description: |
|
|
Spring Boot Metrics Actuator endpoint was detected, which may expose system metrics information. This template detects both older Spring Boot 1.x format and newer 2.x/3.x format.
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
tags: springboot,exposure,misconfig
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/metrics"
|
|
- "{{BaseURL}}/actuator/metrics"
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "contains_any(tolower(content_type), 'application/json', 'application/vnd.spring-boot')"
|
|
- "status_code == 200"
|
|
condition: and
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '{"mem":'
|
|
- '{"heap":'
|
|
- '{"nonheap":'
|
|
- '{"threads":'
|
|
- '{"gc":'
|
|
- '{"names":['
|
|
- '"jvm.memory'
|
|
- '"process.cpu'
|
|
condition: or
|
|
# digest: 490a00463044022079c5e9bd70edac101c4257e743259c8451fe7b598c2de54a68debed01ea1cfe6022013e9954849248daa27fc9637795aed76e94e3b940188352af4af3f7ed80e6643:922c64590222798bb761d5b6d8e72950 |