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

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: 490a00463044022053b12594dbb02f8b2cc189050076a1b779c33c6a082c8e795516a8f8b0537fc402202eba4ebdee77f0a05fe93bf9a792c1c06057f1a1614afb80bd0b421139089893:922c64590222798bb761d5b6d8e72950