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,vuln

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: 4a0a004730450220349648196fbaceea3637775795f546d8da38c825a33476bd16be2774419381bf022100889f12ed495c2fe60d69ade8515f7331343f15b6ee58a67c2937dc8be4d96447:922c64590222798bb761d5b6d8e72950