id: oracle-access-management

info:
  name: Oracle Access Management Login Panel - Detect
  author: righettod
  severity: info
  description: Oracle Access Management login panel was detected.
  reference:
    - https://www.oracle.com/security/identity-management/access-management/
  classification:
    cpe: cpe:2.3:a:oracle:access_manager:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: oracle
    product: access_manager
    shodan-query:
      - "http.title:\"Oracle Access Management\""
      - http.title:"oracle access management"
      - http.html:"/oam/pages/css/login_page.css"
    fofa-query:
      - "title=\"Oracle Access Management\""
      - title="oracle access management"
      - body="/oam/pages/css/login_page.css"
    google-query: intitle:"oracle access management"
  tags: panel,oracle,login,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/oam/pages/login.jsp"
      - "{{BaseURL}}"

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>Login - Oracle Access Management"
          - "/oam/pages/images"
          - "/oam/server/"
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)Login\s+-\s+Oracle\s+Access\s+Management\s+([a-z0-9]+)</title>'
# digest: 4a0a00473045022100b04309dafe7bd24f34297a7d4c5619af92713196543355fd3a316222f3e9dafa02201e5ff93aaa04deb7d451141ed0aa6c328415e644ceccc157438f3d0af65759c6:922c64590222798bb761d5b6d8e72950