2020-04-05 16:19:21 +00:00
|
|
|
id: dir-listing
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Directory listing enabled
|
2023-01-09 08:52:31 +00:00
|
|
|
author: _harleo,pentest_swissky,hczdmr
|
2020-08-03 21:52:00 +00:00
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://portswigger.net/kb/issues/00600100_directory-listing
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: misc,generic
|
2020-04-05 16:19:21 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-04-05 16:19:21 +00:00
|
|
|
- method: GET
|
2020-05-25 08:02:27 +00:00
|
|
|
path:
|
2021-01-13 07:31:46 +00:00
|
|
|
- "{{BaseURL}}"
|
2022-01-28 10:24:49 +00:00
|
|
|
|
2020-04-05 16:19:21 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
2022-12-09 06:51:06 +00:00
|
|
|
part: body
|
2020-05-25 08:02:27 +00:00
|
|
|
words:
|
2022-12-09 06:51:06 +00:00
|
|
|
- "Directory listing for "
|
2020-04-09 12:44:55 +00:00
|
|
|
- "Index of /"
|
2020-04-15 08:00:08 +00:00
|
|
|
- "[To Parent Directory]"
|
2020-12-13 20:22:24 +00:00
|
|
|
- "Directory: /"
|
2022-12-09 06:51:06 +00:00
|
|
|
condition: or
|
2023-01-09 08:52:31 +00:00
|
|
|
case-insensitive: true
|
2022-12-09 06:51:06 +00:00
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
regex:
|
|
|
|
- '\d{1,2}\/\d{1,2}\/\d{4}\s+\d+:\d+\s+[\sAPM]+(<dir>|\d+)\s+<[Aa]\s+[hH][rR][eE][fF]="\/'
|
|
|
|
- '\s+-\s+\/<\/(title|h1)>'
|
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a004730450220694964aca1f99a8c8e11abbcace086f90ce7149fe37b79591889f8ec8ed1314f022100f16bf78eb9e11659dee636757e051924bf47ef324f494e4299ab21efee7c66c2:922c64590222798bb761d5b6d8e72950
|