Skip to content
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

如果不开启签名,无需密码即可访问alist所有文件 #5561

Closed
4 tasks done
tmqxiujin opened this issue Nov 23, 2023 · 7 comments
Closed
4 tasks done

如果不开启签名,无需密码即可访问alist所有文件 #5561

tmqxiujin opened this issue Nov 23, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@tmqxiujin
Copy link

tmqxiujin commented Nov 23, 2023

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 or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.28

Driver used / 使用的存储驱动

本地

Describe the bug / 问题描述

使用以下python代码无需密码即可任意访问我alist中的文件,只需把链接添加进去即可
from urllib.request import urlopen
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
u = urlopen('file-address')
data = u.read().decode('utf-8')
print(data)
截图_选择区域_20231123224843

Reproduction / 复现链接

Config / 配置

Logs / 日志

No response

@tmqxiujin tmqxiujin added the bug Something isn't working label Nov 23, 2023
Copy link

welcome bot commented Nov 23, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@tmqxiujin
Copy link
Author

我测试的是代码和txt文件都可以直接输出里边的内容,其他的没测试,但应该都是一样的,到底咋回事,挺崩溃的,不行只能弃坑了

@tmqxiujin
Copy link
Author

而且我在三台电脑上测试都可以无密码访问alist内的代码文件,包括一台从来没登录过的。。。。

@tmqxiujin
Copy link
Author

有没有人解释一下。。。。。

@anwen-anyi
Copy link
Contributor

anwen-anyi commented Nov 23, 2023

你不添加密码 别人是可以正常访问的,你把全部签名开启 或者元信息加密 会携带 sign 参数就不能随意访问了

没开启签名前,可以访问的:https://alist.org/d/a/233.txt
在开启签名后,不能访问的:https://alist.org/d/a/233.txt?sign=dfG-H33acLBZ4jnW1HsT2d5uYTnmQKA66QFBFHENijY=:0

@ceozero
Copy link

ceozero commented Nov 23, 2023

噗,以后默认安装设置为全签名吧,不然容易造成人为重大bug。。。

@tmqxiujin
Copy link
Author

原来如此,抱歉。。

@tmqxiujin tmqxiujin changed the title 发现一个惊天漏洞!python无需密码即可访问alist所有文件 如果不开启签名,无需密码即可访问alist所有文件 Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants