id: frappe-framework-detect

info:
  name: Frappe Framework - Detect
  author: righettod
  severity: info
  description: |
    Frappe Framework products was detected.
  reference:
    - https://frappe.io/framework
    - https://docs.frappe.io/framework/user/en/introduction
    - https://github.com/frappe/frappe
  metadata:
    max-request: 1
    verified: true
    shodan-query: http.html:"window.frappe"
  tags: panel,frappe,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/about"

    host-redirects: true
    max-redirects: 2
    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "frappe.csrf_token", "frappe.boot", "frappe-web.bundle")'
        condition: and
# digest: 4a0a00473045022100bd594ead28e87bb20add114e8d2fe4a1196e816ad727f36ed5c48778abf16b9102204b538b73f4868b5df1e129768f71391bf9f6ffbf2508a33020fe45ffbc1d1e4e:922c64590222798bb761d5b6d8e72950