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

未授权用户访问漏洞 #250

Open
rufeng-h opened this issue Jun 27, 2024 · 1 comment
Open

未授权用户访问漏洞 #250

rufeng-h opened this issue Jun 27, 2024 · 1 comment

Comments

@rufeng-h
Copy link

无需登录,直接访问/index.php?mod=system&op=orgtree,出现组织部门信息

@xiaohu2002
Copy link
Contributor

xiaohu2002 commented Jun 27, 2024

可以在\dzz\system\config\config.php文件中加一个'allow_view'=>1,,表示仅允许登录用户使用
也可以在\dzz\system\orgtree.php文件中的if(!defined('IN_DZZ')) { exit('Access Denied'); }后添加Hook::listen('check_login');表示检测是否登录,未登录跳转登录

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

2 participants