2021-01-28 23:13:50 +05:30
|
|
|
id: springboot-env
|
2021-01-11 21:54:18 -06:00
|
|
|
|
|
|
|
|
info:
|
2023-04-15 22:05:52 +05:30
|
|
|
name: Springboot Env Actuator - Detect
|
2022-11-21 15:07:43 +05:30
|
|
|
author: that_juan_,dwisiswant0,wdahlenb,philippedelteil,stupidfish
|
2021-05-14 18:55:06 +05:30
|
|
|
severity: low
|
2021-01-11 21:54:18 -06:00
|
|
|
description: Sensitive environment variables may not be masked
|
2023-04-28 13:41:21 +05:30
|
|
|
metadata:
|
|
|
|
|
max-request: 4
|
2023-10-14 16:57:55 +05:30
|
|
|
tags: misconfig,springboot,env,exposure
|
2021-01-11 21:54:18 -06:00
|
|
|
|
2023-04-27 09:58:59 +05:30
|
|
|
http:
|
2021-01-11 21:54:18 -06:00
|
|
|
- method: GET
|
|
|
|
|
path:
|
|
|
|
|
- "{{BaseURL}}/env"
|
|
|
|
|
- "{{BaseURL}}/actuator/env"
|
2022-11-21 15:05:42 +05:30
|
|
|
- "{{BaseURL}}/actuator;/env;"
|
2023-04-14 16:54:10 +08:00
|
|
|
- "{{BaseURL}}/message-api/actuator/env"
|
2022-07-28 14:05:52 +05:30
|
|
|
|
|
|
|
|
stop-at-first-match: true
|
2023-10-14 16:57:55 +05:30
|
|
|
|
2021-01-11 21:54:18 -06:00
|
|
|
matchers-condition: and
|
|
|
|
|
matchers:
|
|
|
|
|
- type: word
|
|
|
|
|
part: body
|
|
|
|
|
words:
|
2021-04-28 15:50:24 +05:30
|
|
|
- "applicationConfig"
|
2021-06-09 11:36:54 -06:00
|
|
|
- "activeProfiles"
|
|
|
|
|
condition: or
|
2021-05-16 15:19:19 +05:30
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
|
part: body
|
|
|
|
|
words:
|
|
|
|
|
- "server.port"
|
2021-01-11 21:54:18 -06:00
|
|
|
- "local.server.port"
|
2021-05-16 15:19:19 +05:30
|
|
|
condition: or
|
|
|
|
|
|
2021-01-11 21:54:18 -06:00
|
|
|
- type: word
|
2022-07-28 14:05:52 +05:30
|
|
|
part: header
|
2021-01-11 21:54:18 -06:00
|
|
|
words:
|
|
|
|
|
- "application/json"
|
|
|
|
|
- "application/vnd.spring-boot.actuator"
|
2021-01-28 21:26:38 +05:30
|
|
|
- "application/vnd.spring-boot.actuator.v1+json"
|
2021-08-20 03:12:53 -04:00
|
|
|
- "application/vnd.spring-boot.actuator.v2+json"
|
2023-05-31 15:28:23 +08:00
|
|
|
- "application/vnd.spring-boot.actuator.v3+json"
|
2021-01-11 21:54:18 -06:00
|
|
|
condition: or
|
2022-07-28 14:05:52 +05:30
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
|
status:
|
|
|
|
|
- 200
|
2024-12-01 13:57:55 +00:00
|
|
|
# digest: 4a0a0047304502201e0a892da991b3ebca33c9bd730d88eec3ba5cbeb6120a055af6a4304b5114fd022100c0bc9988b450825666a5000c7da1074a940c8ab6eadf6eef4ad03f526037723b:922c64590222798bb761d5b6d8e72950
|