id: jorani-panel

info:
  name: Jorani Login Panel - Detect
  author: DhiyaneshDK
  severity: info
  description: Jorani login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:jorani:jorani:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"Login - Jorani"
    product: jorani
    vendor: jorani
  tags: panel,jorani,login,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/index.php/session/login'

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Login - Jorani"
          - "name=\"csrf_test_jorani"
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '&nbsp;v([0-9.]+)'
# digest: 4a0a004730450220567e1d47d2dd7ed6126f60541ade0fd19ca3f11a1deb917311b9c9ab9f1fa5c9022100841ed3be5534cd03c6b85b726688c2c0deea9b564588ab81a44094df763175aa:922c64590222798bb761d5b6d8e72950