GCP/AWS Metadata Disclosure
ID: cloud-metadata
Severity: low
Author: DhiyaneshDk
Tags: misconfig,exposure,devops,cloud,aws,gcp
Description
Section titled “Description”GCP/AWS Metadata is exposed.
YAML Source
Section titled “YAML Source”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
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: 490a004630440220782a9c3b88aacf90082d3ba5310abd5233019c2885130e7971c144bfa8c9957802201ff7bded2d0bf7b4706b0a7092f041cbc38495ddf6308e8131e763c7fbea0136:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/misconfiguration/cloud-metadata.yaml"