id: docker-cloud

info:
  name: Docker Cloud Yaml - File Disclosure
  author: DhiyaneshDK
  severity: medium
  description: Docker cloud internal yaml file is exposed.
  reference: https://www.exploit-db.com/ghdb/7959
  metadata:
    verified: true
    max-request: 1
    google-query: intitle:"index of" "docker-cloud.yml"
  tags: exposure,cloud,devops,docker,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/docker-cloud.yml"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '(?m)^  image:'
          - '(?m)^  ports:'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"
          - "text/html"
        negative: true
        condition: or

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