id: joomla-file-listing

info:
  name: Joomla! Database File List
  author: iampritam
  severity: medium
  description: A Joomla! database directory /libraries/joomla/database/ was found exposed and has directory indexing enabled.
  remediation: Disable directory indexing on the /libraries/joomla/database/ directory or remove the content from the web root. If the databases can be download, rotate any credentials contained in the databases.
  reference:
    - https://www.exploit-db.com/ghdb/6377
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-548
  metadata:
    max-request: 1
  tags: exposure,joomla,listing,database,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/libraries/joomla/database/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /libraries/joomla/database"
          - "Parent Directory"
        condition: and

      - type: status
        status:
          - 200

# digest: 4b0a004830460221008880d6f2b5735398a9eee15b0345c3ccca53f8fff756e5887db5c155c025ce1b022100d0b2bebb8272580ab09b85d3474511b565cc4e77535a2a259edef437c5b2bc05:922c64590222798bb761d5b6d8e72950
