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,discovery

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: 4a0a00473045022100f0917ec5b7b07ddddc26871463054a3b79cb65f40cd26595c54d4da035d3c29c02206cd0ba7e87339773a21d9d8250979c278c03b240752c1b1510b88ecf34ee0078:922c64590222798bb761d5b6d8e72950