Skip to content
Info disclosure Disclosed report Beginner

Invitation token leaks to https://bat.bing.com

The invitation page embedded iframes on external subdomains that loaded a Bing tracking script, which sent the full page URL including the invitation token to Bing.

zuriel Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 11 days
  • Paid in 5 days
  • Disclosed after 11 days

Summary

Invitation page contains iframes that points to https://b5s.hackerone-ext-content.com/#!/invitations/<invitation token> and https://a4l.hackerone-ext-content.com/#!/invitations/<invitation token>. A GET request to these endpoints executes a script that points to https://bat.bing.com/bat.js. The corresponding request to bing contains the invitation tokens.

Description

While checking the source code of an team invitation page (https://hackerone.com/invitations/8e44119f60be8670d1e3f99a01359cbc), I found two iframe links - https://b5s.hackerone-ext-content.com/#!/invitations/8e44119f60be8670d1e3f99a01359cbc and https://a4l.hackerone-ext-content.com/#!/invitations/8e44119f60be8670d1e3f99a01359cbc where 8e44119f60be8670d1e3f99a01359cbcis the invitation token.

bl1.PNG
bl1.PNG From the original on HackerOne

To find out more about these endpoints,i issued a simple GET requests to these urls. GET requests to these endpoints returned a page that contains a script that points to - https://bat.bing.com/bat.js.

The response of the GET request to https://b5s.hackerone-ext-content.com/#!/invitations/8e44119f60be8670d1e3f99a01359cbc looks as follows:

<!DOCTYPE html>
<html>
  <head></head>
  <body style="background-color: transparent">
    <script>
      (function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"5295042"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","https://bat.bing.com/bat.js","uetq");
    </script>
    <noscript>
      {{media:1}}
    </noscript>
  </body>
</html>

As we can see the page calls a script at https://bat.bing.com/bat.js and the script is executed.

The script fires a corresponding request to bat.bing.com that contains the invitation token. It looks as follows:

https://bat.bing.com/action/0?ti=5295042&Ver=2&mid=ab8e7bd3-541b-59ea-0551-7041b2ede6e3&evt=pageLoad&sid=bbebc657-0&lt=127&pi=1001431019&lg=en-US&sw=1366&sh=768&sc=24&p=https://b5s.hackerone-ext-content.com/#!/invitations/8e44119f60be8670d1e3f99a01359cbc&r=&msclkid=███

The p parameter contains the entire url along with the invitation token - p=https://b5s.hackerone-ext-content.com/#!/invitations/8e44119f60be8670d1e3f99a01359cbc where 8e44119f60be8670d1e3f99a01359cbcis the invitation token.

Thus the invitation token is sent to bat.bing.com as a part of the request.

Impact

  1. Leaking member invitation tokens can reveal pretty much everything about a program.
  2. Private programs could be adversely affected by leaking private invitation tokens.

The original report as published on HackerOne, by zuriel. 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 the invitation page included third-party iframes that loaded a tracking script, which automatically forwarded the full URL containing the token to an external domain.

Impact

Invitation tokens could be leaked to Bing, potentially revealing private program details.

What the attacker needed

Invitation page is loaded; Bing tracking script runs

How it was found

  1. Open a team invitation page and inspect its source code.
  2. Notice two iframe links pointing to external subdomains, each containing the invitation token.
  3. Send a GET request to one of those iframe URLs.
  4. Observe the returned page loads a script from bat.bing.com.
  5. See that the script sends a request to bat.bing.com with the full URL, including the token, in a parameter.

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 open a team invitation link, the page loads a script from Bing, a Microsoft advertising service. That script sends the full web address, including the secret invitation code, to Bing's servers.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by zuriel

View all

1 more disclosed report, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.