Loading HuntDB...

account takeover on 3.0.1 version

Critical
R
Rocket.Chat
Submitted None
Reported by elfiman

Vulnerability Details

Technical details and impact analysis

Insecure Direct Object Reference (IDOR)
I find user reset password hash info and other security info on "/api/v1/[users.info](http://users.info)" note : I login on rocketchat with ldap account (my role : user) note: in request "[https://target/api/v1/users.info?username=[x]](https://target/api/v1/users.info?username=%5Bx%5D)" you should change usrname to userId 1- please login with user ldap account (role user) 2- send a request to [https://target/api/v1/users.list](https://target/api/v1/users.list) and copy \_id value 3- send a request to [https://target/api/v1/users.info?userId=[userId]](https://target/api/v1/users.info?userId=%5BuserId%5D) and copy email value (in response you can see important security information ) 4- logout and click "forget your password" link on [https://target/home](https://target/home) and send an email to above email address that you copied 4- login with Your account and send a request to [https://target/api/v1/users.list](https://target/api/v1/users.list) and search the same email in response and copy \_id value 5- send a request to [https://target/api/v1/users.info?userId=[userId]](https://target/api/v1/users.info?userId=%5BuserId%5D) and copy reset hash value 6- logout your account and send a request to [https://target/reset-password/[reset\_hash]](https://target/reset-password/%5Breset_hash%5D) 7- set new password 8- login and enjoy ## Impact account takeover

Report Details

Additional information and metadata

State

Closed

Substate

Resolved

Submitted

Weakness

Insecure Direct Object Reference (IDOR)