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:
    verified: true
    max-request: 2
    vendor: portainer
    product: portainer
    shodan-query:
      - title:"Portainer"
      - http.title:"portainer"
    fofa-query: title="portainer"
    google-query: intitle:"portainer"
  tags: panel,portainer,detect,discovery

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