id: frappe-helpdesk-panel

info:
  name: Frappe Helpdesk Login Panel - Detect
  author: righettod
  severity: info
  description: |
    Frappe Helpdesk products was detected.
  reference:
    - https://frappe.io/helpdesk
    - https://github.com/frappe/helpdesk
  metadata:
    max-request: 1
    verified: true
    shodan-query: http.html:"window.frappe_version"
  tags: panel,frappe,login

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(to_lower(body), "/helpdesk/", "frappe")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)helpdesk_version\s*=\s*"([0-9.]+)"'
# digest: 4a0a00473045022100d5b6614cf0990424647dcf20ee1ad7acb7506d0be9e15e54c05d80e70eb937b90220556c5863eec84f9dd4c2ffa2032f522893ae73d07f7af61519c41aa5b0c1796e:922c64590222798bb761d5b6d8e72950