id: log4-properties

info:
  name: Log4j Properties - File Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Log4j Properties file is exposed.
  reference:
    - https://docs.oracle.com/cd/E29578_01/webhelp/cas_webcrawler/src/cwcg_config_log4j_file.html
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"log4j.properties"
  tags: exposure,files,log4j,oracle

http:
  - method: GET
    path:
      - '{{BaseURL}}/log4j.properties'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'log4j.rootLogger='
          - 'log4j.logger'
        condition: and
        case-insensitive: true

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100dec54cf6fef253eaf377adb20cf967352a409915c7cc8f5eaec3b4648d4c0c4402200a7fb5417ef54708d0a12930a97f0d0ceeac87f9302ba3fbcc82d001c8bc1832:922c64590222798bb761d5b6d8e72950