2021-11-12 20:33:22 +00:00
|
|
|
id: debug-vars
|
|
|
|
|
|
|
|
info:
|
2023-02-09 21:39:16 +00:00
|
|
|
name: Golang Expvar - Detect
|
2021-11-12 20:33:22 +00:00
|
|
|
author: luqman
|
2023-02-16 06:13:17 +00:00
|
|
|
severity: low
|
2023-02-09 19:29:36 +00:00
|
|
|
description: Golang expvar function exposes multiple public variables via HTTP such as stack trace information and server operation counters.
|
2021-11-12 20:33:22 +00:00
|
|
|
tags: go,debug,exposure
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/debug/vars"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '"memstats":'
|
|
|
|
- '"cmdline":'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2023-02-09 19:29:36 +00:00
|
|
|
- 200
|
|
|
|
|
2023-02-13 15:27:33 +00:00
|
|
|
# Enhanced by cs on 2023/02/13
|