id: portainer-panel

info:
  name: Portainer Login Panel - Detect
  author: ritikchaddha
  severity: info
  reference:
    - https://github.com/portainer/portainer
  classification:
    cpe: cpe:2.3:a:portainer:portainer:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    product: portainer
    shodan-query: title:"Portainer"
    vendor: portainer
    verified: true
  tags: panel,portainer,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/#!/auth"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>Portainer'
          - 'ng-app="portainer'
          - 'content="Portainer'
          - 'alt="Portainer'
          - 'portainer.auth'
        condition: or

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