id: oracle-application-server-panel

info:
  name: Oracle Application Server Panel - Detect
  author: righettod
  severity: info
  description: |
    Oracle Application Server login panel was detected.
  reference:
    - https://www.oracle.com/middleware/technologies/internet-application-server.html
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Oracle Containers for J2EE"
  tags: panel,oracle,containers,login,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/em/console/ias/oc4j/home"
      - "{{BaseURL}}"

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "login to oracle application server control", "oracle enterprise manager")'
        condition: and

    extractors:
      - type: regex
        group: 1
        regex:
          - '(?i)Copyright\s+&copy;\s+([0-9,\s]+),\s+Oracle'
# digest: 4b0a00483046022100845f706fdead9f4de3c88b00040994fc6c1aac247ebf09863b41f00bd1c293d4022100965b1ab2a971c41848e6581f0d588318c4e2c606378d188eed8a12ad7bfcf921:922c64590222798bb761d5b6d8e72950