2022-09-16 10:45:48 +00:00
|
|
|
id: cloud-metadata
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: GCP/AWS Metadata Disclosure
|
|
|
|
author: DhiyaneshDk
|
|
|
|
severity: low
|
|
|
|
reference: https://www.facebook.com/ExWareLabs/photos/pcb.5605494709514357/5605493856181109/
|
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2022-09-16 10:45:48 +00:00
|
|
|
verified: true
|
|
|
|
shodan-query: html:"instance_metadata"
|
2022-09-16 10:57:45 +00:00
|
|
|
tags: misconfig,exposure,devops,cloud,aws,gcp
|
2022-09-16 10:45:48 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-09-16 10:45:48 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"instance_metadata":'
|
|
|
|
- '"cloud":'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2022-09-16 10:57:45 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '"cloud":"([A-Z]+)",'
|