SecurityContext

cloud-metadata: GCP/AWS Metadata Disclosure

Classification

  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, epss score, epss percentile, cpe

Metadata

  • Max-request: 1
  • Shodan-query: html:"instance_metadata"
  • Verified: yes

Labels

  • Name: GCP/AWS - Metadata Disclosure
  • Impact: Attackers can retrieve sensitive cloud metadata, potentially leading to credential theft and further compromise of cloud resources.
  • Remediation: Ensure cloud metadata endpoints are properly secured and restrict access to authorized services only; update to latest configuration best practices.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

id: cloud-metadata

info:

name: GCP/AWS Metadata Disclosure

author: DhiyaneshDk

severity: low

description: GCP/AWS Metadata is exposed.

reference:

- https://www.facebook.com/ExWareLabs/photos/pcb.5605494709514357/5605493856181109/

metadata:

verified: true

max-request: 1

shodan-query: html:"instance_metadata"

tags: misconfig,exposure,devops,cloud,aws,gcp,vuln

http:

- method: GET

path:

- "{{BaseURL}}"

matchers-condition: and

matchers:

- type: word

part: body

words:

- '"instance_metadata":'

- '"cloud":'

condition: and

- type: status

status:

- 200

extractors:

- type: regex

part: body

group: 1

regex:

- '"cloud":"([A-Z]+)",'

digest: 4a0a0047304502203de23208d11d97e5882564993fdcd515107eed8b61e5492265f758fec9a319330221009acb24bd412bc5a777274553da061df5bdc3dc1fc814459ef1dbe233229c563c:922c64590222798bb761d5b6d8e72950

```