Skip to content

用户修改密码接口Bug #932

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

Closed
zhanjunfeng opened this issue Feb 19, 2020 · 1 comment
Closed

用户修改密码接口Bug #932

zhanjunfeng opened this issue Feb 19, 2020 · 1 comment

Comments

@zhanjunfeng
Copy link

zhanjunfeng commented Feb 19, 2020

版本号:

2.1.3

问题描述:

SysUserController.java里面的passwordChange用于找回用户密码,传的username和phone没有校验对应关系,也就是说我发一个验证码,就可以改所有人的密码了。
改着改着发现一个更夸张的错误,这个接口在校验了缓存里验证码为空和验证码不相等之后,啥都没做,就result里设了个值,没有return,接着直接根据username去改密码了。。。也就是说我要改任何人的密码,连验证码都不需要发,拿着用户名调这个接口就直接改了!!!!!!!!

截图&代码:

image
image

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

非常感谢,我们已经修改,下个版本尽快发布

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