2024-01-04 07:04:14 +00:00
|
|
|
id: go-pprof-debug
|
|
|
|
|
|
|
|
info:
|
2024-01-22 06:27:57 +00:00
|
|
|
name: Go pprof Debug Page
|
2024-01-04 07:04:14 +00:00
|
|
|
author: w8ay
|
|
|
|
severity: low
|
|
|
|
description: go pprof debug page was exposed.
|
|
|
|
tags: logs,exposure,go,pprof
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/debug/pprof/heap?debug=1"
|
|
|
|
- "{{BaseURL}}/pprof/heap?debug=1"
|
|
|
|
|
2024-01-22 06:27:57 +00:00
|
|
|
stop-at-first-match: true
|
2024-01-04 07:04:14 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
2024-01-22 06:27:57 +00:00
|
|
|
- 'heap profile:'
|
|
|
|
- 'Alloc'
|
|
|
|
condition: and
|
2024-01-04 07:04:14 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "text/plain"
|
|
|
|
part: header
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2024-01-22 06:27:57 +00:00
|
|
|
- 200
|