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