-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
解压功能鉴权无效 #7981
Comments
在问题被修复前,建议管理员通过 NGINX 或 WAF 封禁以下路径,避免造成服务器流量被恶意消耗: /ae/ |
我看 /d 和 /p 是没加鉴权的,如何理解呢 |
/d 和 /p 没加鉴权不影响,实际情况都是挂载网盘然后302跳转,不会造成服务器流量消耗,但解压功能的流量会走服务器中转,因此要对其进行鉴权或限制。 最主要的问题是用户设置里面即使禁用了解压功能也能解压。 |
/ad /ap 和 /d /p 的行为是一样的,那应该只有 /ae 需要鉴权 |
前端访问 |
Please make sure of the following things
I have read the documentation.
我已经阅读了文档。
I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。
I'm sure it's due to
AList
and not something else(such as Network ,Dependencies
orOperational
).我确定是
AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.42.0
Driver used / 使用的存储驱动
archive
Describe the bug / 问题描述
Alist v3.42.0版本的解压缩功能发现一个漏洞,所有用户均可以通过 #7817 的解压接口消耗服务器流量,在设置中关闭读取压缩文件、解压无效
Reproduction / 复现链接
下载解压配置中的上传的
app.zip
,将Alist主程序放入并使用alist server
运行,访问:http://127.0.0.1:5244/ae/mount/1GB.zip?inner=/1GB.bin&sign=oXVKHW6Xxe1OZXm0ahoPdW1hKfy86VR5StDneeJz4jc=:0
(如果签名过期的话请自行替换,或关闭签名)
这个 1GB.zip 中包含一个填充/dev/zero的 1GB.bin 文件
Config / 配置
配置文件:app.zip
读取压缩文件、解压都是关闭的:
如果挂载文件的路径不正确的话可以自行修改:
Logs / 日志
The text was updated successfully, but these errors were encountered: