漏洞描述
目录浏览 列目录
当目录浏览功能开启时,攻击者可以通过访问目录路径来查看目录下的文件列表。
id: directory-listing
info:
name: 目录浏览 列目录
author: zan8in
severity: info
verified: true
description: |-
目录浏览 列目录
当目录浏览功能开启时,攻击者可以通过访问目录路径来查看目录下的文件列表。
tags: directory-listing,disclosure
created: 2023/10/29
rules:
r0:
request:
method: GET
path: /images
follow_redirects: true
expression: response.status == 200 && response.body.bcontains(b'<title>Index of /images</title>') && response.body.bcontains(b'<h1>Index of /images</h1>')
r1:
request:
method: GET
path: /js
follow_redirects: true
expression: response.status == 200 && response.body.bcontains(b'<title>Index of /js</title>') && response.body.bcontains(b'<h1>Index of /js</h1>')
r2:
request:
method: GET
path: /css
follow_redirects: true
expression: response.status == 200 && response.body.bcontains(b'<title>Index of /css</title>') && response.body.bcontains(b'<h1>Index of /css</h1>')
expression: r0() || r1() || r2()