225 Star 968 Fork 424

欧福 / ofcms

 / 详情

Logical vulnerability

待办的
创建于  
2023-03-14 10:39

Affected version

V1.1.2

1、 Black box test
Logical vulnerability in system settings - role management - authorization location
Cancel user management role management in system settings - role management - authorization location
输入图片说明
User management - add - add user test
输入图片说明
Log in to the test user, who has no user management and role management permissions
输入图片说明
Access the admin user api, find that the user can be added, judge that the authorization location is invalid, and add the user successfully
输入图片说明
Finally, log in to the admin user again and find that the unauthorized user creation is successful.
输入图片说明

2、 Code analysis
Cancel user management role management in system settings - role management - authorization location
输入图片说明
It is found that delete is executed according to roleId
输入图片说明
Trace the database. It is found that the database is empty and there is a logical vulnerability in the location
输入图片说明
Execute the sql statement and find the prompt Duplicate entry '104' for key 'PRIMARY'. Therefore, the location is invalid and there is a logical vulnerability
输入图片说明

评论 (0)

helloworld 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/oufu/ofcms.git
git@gitee.com:oufu/ofcms.git
oufu
ofcms
ofcms

搜索帮助