id: buildpath-file-disclosure

info:
  name: .buildpath - File Disclosure
  author: ritikchaddha
  severity: low
  description: |
    Publicly accessible /.buildpath configuration file was detected, which may expose project structure or sensitive information.
  tags: exposure,files,buildpath,config

http:
  - method: GET
    path:
      - "{{BaseURL}}/.buildpath"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</buildpath>"
          - "<?xml"
        condition: and

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