226 Star 996 Fork 433

欧福/ofcms

 / 详情

OFCMS has the vulnerability of unauthorized modification of arbitrary user password

待办的
创建于  
2023-03-09 09:40

[Suggested description]
Ofcms v.1.1.4 allows a remote attacker to to escalate privileges via the respwd method in SysUserController.

[Vulnerability Type]
Logical vulnerability

[Vendor of Product]
https://gitee.com/oufu/ofcms

[Affected Product Code Base]
v1.1.4

[Affected Component]
输入图片说明

[Attack Type]
Remote

[Impact Code execution]
true

[Vulnerability to prove]
First, log in to the database, check the initial password of the admin account, and the password is 'admin' after sha256 decryption.
输入图片说明

Log in with the normal account and click to change the password.
输入图片说明

Grab the request to change the password, and you can see that the user_id of the nomal account is 5.
输入图片说明

Through the request package, you can find the reword method. From the source code, you can see that the incoming user_id is directly stored here, and the consistency between the current user cookie and the user_id is not verified, resulting in unauthorized modification of any user's password.
输入图片说明

Here, change "user_id" to 1 and send the request, return 200 and display the processing success.
输入图片说明

Log in to the admin account successfully with the new password "test".
输入图片说明
输入图片说明

Log in to the database and you can see that the password has been changed to "test".
输入图片说明

评论 (0)

root 创建了任务
root 修改了描述
root 修改了描述
root 修改了描述
展开全部操作日志

登录 后才可以发表评论

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

搜索帮助

A270a887 8829481 3d7a4017 8829481