id: servicenow-panel

info:
  name: ServiceNow Login Panel - Detect
  author: righettod
  severity: info
  description: |
    ServiceNow Login Panel was detected.
  reference:
    - https://www.servicenow.com/
  classification:
    cpe: cpe:2.3:a:servicenow:servicenow:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: servicenow
    product: servicenow
    shodan-query:
      - http.favicon.hash:1701804003
      - http.title:"servicenow"
    fofa-query:
      - icon_hash=1701804003
      - title="servicenow"
    google-query: intitle:"servicenow"
  tags: panel,servicenow,login,detect,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/login.do'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'ServiceNow'
          - 'window.NOW.'
          - 'NOW.user.userID'
        condition: and
        case-insensitive: true

      - type: status
        status:
          - 200

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