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

seacms任意用户密码修改漏洞 #2

Open
wxdigo8 opened this issue Jan 6, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@wxdigo8
Copy link

commented Jan 6, 2019

0x01 analysis
Navigate to line 307~328 of the /mermber.php file:

0x02 recurrent
First we register two users: User A, User B
This is my registered user A and user B. Let's see how to try any user password modification.
Url:http://localhost:8081/member.php?mod=repsw4
POST:repswname=shate&repswcode=y&repswnew1=shate&repswnew2=shate
This shows that the password reset is successful and the password of User B is completely changed.

0x03 repair
The first thing we want to consider is the value of the repswcode inserted at the time of registration, and the value when the password was successfully changed:
1, this value can not be a number
2, this value can not be less than 10 characters
3, this value can be an encrypted value to prevent blasting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.