id: neocase-hrportal-panel

info:
  name: Neocase HR Portal Login Panel - Detect
  author: righettod
  severity: info
  description: |
    Neocase HR Portal login panel was detected.
  reference:
    - https://www.neocasesoftware.com/neocase-hr-solution/
    - https://www.neocasesoftware.com/self-service-portal-module/
  metadata:
    verified: true
    max-request: 1
  tags: panel,neocase,login,detect

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(to_lower(body), "neocase") && contains(to_lower(body), "hr portal") && contains(to_lower(body), "login")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'name="version"\s+content="([0-9\.]+)"'
# digest: 4b0a00483046022100934059d31ef9e37da59237f718323ab977b127aac40809624b05c8e8b9d7543f022100eeaeab6fc5f7f565c212aa407a2cdbc33171df1a7cff90cc63df06fae717ffc5:922c64590222798bb761d5b6d8e72950