id: photoprism-panel

info:
  name: PhotoPrism Panel - Detect
  author: rxerium,ritikchaddha
  severity: info
  description: |
    PhotoPrism is an AI-powered photos app for the decentralized web. This template detects the presence of PhotoPrism login panel.
  reference:
    - https://docs.photoprism.app/getting-started/
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"PhotoPrism"
    fofa-query: title="PhotoPrism"
  tags: photoprism,panel,login,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/library/login"

    matchers:

      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "PhotoPrism", "login")'
        condition: and
# digest: 4b0a00483046022100db124261ab4281ce7ffe573d0149db1a635d03e43b96fe43e6b4fb1a4ef13c2c022100afe37b335facb3acd4eaec10222b9baa30cdc601f9c7f585f2122027f3c94043:922c64590222798bb761d5b6d8e72950