id: cloud-config

info:
  name: Cloud Config File Exposure
  author: DhiyaneshDK,Hardik-Solanki
  severity: medium
  description: Cloud Config file is exposed.
  reference:
    - https://www.exploit-db.com/ghdb/7959
  metadata:
    verified: true
    max-request: 3
    shodan-query: html:"cloud-config.yml"
  tags: exposure,cloud,devops,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cloud-config.yml"
      - "{{BaseURL}}/core-cloud-config.yml"
      - '{{BaseURL}}/cloud-config.txt'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'ssh_authorized_keys'
          - '#cloud-config'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502200c56649f2661020be660e76170f69f68c92c77d19a95e49782212fafe655534e022100935eac20bb1491d8af073dd8197e3e0adff665414751f43610b1786fa40ac48b:922c64590222798bb761d5b6d8e72950