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

/media/download?file= 允许下载其他目录的文件 #21

Open
onehumanbeing opened this issue Feb 21, 2019 · 0 comments
Open

/media/download?file= 允许下载其他目录的文件 #21

onehumanbeing opened this issue Feb 21, 2019 · 0 comments

Comments

@onehumanbeing
Copy link

在默认的 'disk' => 'public'下:
测试案例: /admin/media/download?file=../../../../../../../etc/passwd
效果:会下载passwd的配置文件
/admin/media/download?file=../../../.env
效果:会下载env文件
虽然可以允许只有超管访问当前目录,但是感觉有点危险

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant