id: corebos-htaccess

info:
  name: CoreBos - .htaccess File Exposure
  author: arafatansari
  severity: info
  description: |
    CoreBos was discovered to have .htaccess file exposed to public which includes sensitive information.
  reference:
    - https://huntr.dev/bounties/5b0fe6e3-4ca1-44ae-8875-d7e6c065432e/
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"corebos"
    product: corebos
    vendor: corebos
    fofa-query: body="corebos"
  tags: exposure,corebos,huntr,misconfig

http:
  - method: GET
    path:
      - '{{BaseURL}}/htaccess.txt'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Options -Indexes'
          - '<FilesMatch'
        condition: and

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