id: openx-panel

info:
  name: OpenX/Revive Adserver Login Panel - Detect
  author: pikpikcu,righettod
  severity: info
  description: OpenX login panel was detected. Note that OpenX is now a Revive Adserver.
  reference:
    - https://www.revive-adserver.com/download/
  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:revive-adserver:revive_adserver:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: revive-adserver
    product: revive_adserver
    shodan-query:
      - title:"Revive Adserver"
      - http.title:"revive adserver"
      - http.favicon.hash:106844876
    fofa-query:
      - icon_hash=106844876
      - title="revive adserver"
    google-query: intitle:"revive adserver"
  tags: panel,openx,revive,adserver,login,revive-adserver

http:
  - method: GET
    path:
      - "{{BaseURL}}/www/admin/index.php"
      - "{{BaseURL}}/admin/index.php"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<title>OpenX</title>'
          - '<title>Revive Adserver</title>'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(.*)- http://www.openx.org'

      - type: regex
        part: body
        group: 1
        regex:
          - 'v=([0-9a-z.\-]+)'
# digest: 490a00463044022017f6de6e4edc51ad5e5ec65bf2806a69ed283548b17a2ea5d839e7e89bd17d5302207888ffd25556a6fad05b982dd84cdf24bc331550d5e6fc6d54aded3901e415f2:922c64590222798bb761d5b6d8e72950