id: joomla-htaccess-file

info:
  name: Joomla! htaccess file disclosure
  author: oppsec
  severity: info
  description: Joomla!  has an htaccess file to store configurations about HTTP config, directory listing, etc.
  metadata:
    max-request: 1
  tags: miscellaneous,misc,joomla

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Joomla"
          - "Open Source Matters. All rights reserved"
        condition: and

      - type: word
        part: header
        words:
          - "text/plain"

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