id: tools4ever-ssrpm-panel

info:
  name: Tools4Ever Self-Service Reset Password Manager - Panel
  severity: info
  author: darses
  description: |
    Detects Tools4Ever Self-Service Reset Password Manager login panel.
  metadata:
    vendor: tools4ever
    product: self_service_reset_password_management
    shodan-query:
      - http.favicon.hash:-948009664
      - http.favicon.hash:-916902413
      - "Set-Cookie: .SSRPMFORMSAUTH=;"
    fofa-query:
      - icon_hash="-948009664"
      - icon_hash="-916902413"
      - "Set-Cookie: .SSRPMFORMSAUTH=;"
  reference:
    - https://www.tools4ever.com/ssrpm/
  tags: detect,panel,tools4ever,discovery

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

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - "ssrpmbody"
          - "/Scripts/CommonFunctions.js"
        condition: and

    extractors:
      - type: regex
        name: version
        group: 1
        regex:
          - '/Scripts/CommonFunctions\.js\?v=([\d]+)'
# digest: 4b0a00483046022100874f0e1452a96a7a2a0cd1bb4ce4dc77e410fe1f5adedbde0a2d698f95adef3a0221008c9578bd6d54b6a8057b5c2b84f3d86b56787811f70b43cced3d7d1f240b8052:922c64590222798bb761d5b6d8e72950