account.ubnt.com CSRF
The Django REST API behind account.ubnt.com lacked CSRF protection, so an attacker could host a page that, when visited by a logged-in victim, changed the victim's password and other account details, risking account takeover.
Originally disclosed on HackerOne
- Fixed in 11 months
- Paid in 11 months
- Disclosed after 12 months
Good Evening Sir, I want to inform you that i have successfully discovered a problem on the API (django Restfull API) you used to manage the security of https://account.ubnt.com The vulnerability type : CSRF Vulnerability description : An attacker create a web page with the code attached to this report : "hacking_code.html" then transfer the link of the file to the victim (note victim need to be logged in to his account) once the victim visit the link , his password will be changed immediatly to the password set by the hacker Note: an attacker can also change user information (name , email , etc...). You can watch this video as proof of concept : Link : https://mega.nz/#!JZ1DxYyb and to make this video private you may need to be asked for decryption key : the key is : !██████
Impact : Critical as the account.ubnt.com is the site that manage all acounts on the ubnt.com (ex: community.ubnt.com , store.ubnt.com) , i see this require a quick fix and i am ready to help
How to fix this : 1st you need to enable the csrf_token of Django ; 2nd when change user information you may ask the user for his current password.
PS: if you need any help coding a solution i am ready to do this for you , I have a great knowledge on DJango Development and i am ready to this for you for free :p
if you need any thing urgent feel free to call me +█████████ , or mail me ! ███████
Thank you for your time Best Regards , Ben khlifa Fahmi CO-Founder & Pentester at Tunisian Whitehats Security
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Django REST API did not enforce CSRF tokens on state-changing requests, allowing cross-origin form submissions to be accepted.
Impact
An attacker could change the victim's password and account information, risking account takeover affecting Ubiquiti services.
What the attacker needed
Victim is logged in; victim visits attacker's link
The fix
The API should enforce Django's CSRF token on state-changing requests and require the current password when changing sensitive information.
How it was found
- Attacker creates a web page with malicious code.
- Attacker sends the link to the victim, who must be logged in.
- Victim visits the link, and their password is changed immediately.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
CSRF (Cross-Site Request Forgery) is when a malicious website makes a logged-in user's browser send a request to another site without the user's knowledge. Here, the attacker's page automatically submitted a form to the account settings API, and because the API did not check for a secret token, the change went through. The victim only had to be logged in and visit the attacker's link.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.