id: pega-web-panel

info:
  name: Pega Infinity Login Panel - Detect
  author: powerexploit,righettod
  severity: info
  description: |
    Pega Infinity login panel was detected.
  reference:
    - https://www.pega.com/infinity
  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:pega:platform:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: pega
    product: platform
    shodan-query:
      - title:"Pega Platform"
      - http.title:"pega platform"
    google-query:
      - inurl:"/prweb/PRAuth/app/default"
      - intitle:"pega platform"
      - inurl:"/prweb/prauth/app/default"
    fofa-query: title="pega platform"
  tags: panel,pega

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/prweb/PRAuth/app/default/"

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'alt="Pega Infinity'
          - 'alt="Pega Logo'
          - 'id = "pegaLogin'
          - 'Pega Platform'
        condition: or

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ed93196ecbc590e925a57931313ed231592fd87e7af677b4e7d1044f3f8df321022100b24b46f8b77bd2063a984ed2eef271f4f0b1051353cf7266a6ec72da13ce68e4:922c64590222798bb761d5b6d8e72950