id: exposed-docker-api

info:
  name: Exposed Docker API
  author: furkansenan,dwisiswant0
  severity: info
  metadata:
    max-request: 2
  tags: docker,unauth,devops,misconfig

http:
  - method: GET
    path:
      - "http://{{Hostname}}/version"
      - "http://{{Hostname}}/v1.24/version"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "application/json"
        part: header

      - type: word
        words:
          - "KernelVersion"
          - "BuildTime"
        condition: and
        part: body

      - type: status
        status:
          - 200

# digest: 490a0046304402203efb60ca5cd72b8e84389f1f375a834b8f2b7249a37ebb17fcf1fe352301abc402202547c7d3f2bcbd803a4dc349cb4d6d4a0b41f5915aa09c6b3216b504f6714566:922c64590222798bb761d5b6d8e72950
