cloud-metadata: GCP/AWS Metadata Disclosure
- Template: cloud-metadata
- Name: GCP/AWS Metadata Disclosure
- Description: GCP/AWS Metadata is exposed.
- Severity: low
- Authors: DhiyaneshDk
- Tags: misconfig, exposure, devops, cloud, aws, gcp, vuln
- References: https://www.facebook.com/ExWareLabs/photos/pcb.5605494709514357/5605493856181109/
- Verified: yes
- Max requests: 1
- Directory: http/misconfiguration
- Path: http/misconfiguration/cloud-metadata.yaml
- Digest: 4a0a0047304502203de23208d11d97e5882564993fdcd515107eed8b61e5492265f758fec9a319330221009acb24bd412bc5a777274553da061df5bdc3dc1fc814459ef1dbe233229c563c
- Created at: 2022-09-16T11:01:27Z
- Updated at: 2025-10-31T05:32:05Z
- Age in days: 1529
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/misconfiguration/cloud-metadata.yaml
- Checked, none or zero: cves, products
- Not known: impact, remediation
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
```