id: wordpress-directory-listing

info:
  name: Wordpress directory listing
  author: Manas_Harsh
  severity: info
  description: Directory listing enabled in wordpress.
  metadata:
    max-request: 4
  tags: wordpress

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/uploads/"
      - "{{BaseURL}}/wp-content/themes/"
      - "{{BaseURL}}/wp-content/plugins/"
      - "{{BaseURL}}/wp-includes/"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "Index of /"
# digest: 4a0a00473045022018bddb15479fc7f81582196fc58fdc5156ad92897da4ab02393422428495b79e022100cb86040b668e55c636869250c36bafda625004c82d22996c8c482c97f6847283:922c64590222798bb761d5b6d8e72950