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

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: 4b0a00483046022100cc4f5a017da430032e135de2833b364bdd0023fbae56581fe92087d400147559022100aa774b094f9139f5a58eeef5c12a2eefac686f3cab6b3ea2f98bc3b91dedbc3c:922c64590222798bb761d5b6d8e72950