id: portainer-init-deploy

info:
  name: Portainer - Init Deploy Discovery
  author: princechaddha
  severity: medium
  description: Portainer initialization deployment files were discovered.
  reference:
    - https://documentation.portainer.io/v2.0/deploy/initial/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Portainer"
  tags: portainer,exposure,docker,devops,disclosure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/users/admin/check"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "No administrator account found inside the database"

      - type: word
        words:
          - "application/json"
        part: header

      - type: status
        status:
          - 404
# digest: 4a0a00473045022100c1861845b620f6b3c90044d678ff140fcb848a20708392c888e479caba7b104a02204d29309f1452f18423b46b3dffb31cd7e94fbb76d1ff34abbdce65e16adbc291:922c64590222798bb761d5b6d8e72950