Skip to content
Misconfiguration Disclosed report Beginner

out of date disqus shortname usage in the web app source code

The Starbucks blog pages still embedded a Disqus comment widget using an old, unclaimed Disqus shortname. The reporter was able to register that shortname as a regular Disqus user, gaining administrative control over the comment board shown on Starbucks' site.

hiorws Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Fixed in 8 days
  • Paid in 8 days
  • Disclosed after 10 months

Short definition of bug: Misusage of an third-party web service in http://www.starbucks.com/

Hi Starbucks Bug Bounty Team,
I found a vulnerability on your global website. I think you migrate your blog from http://www.starbucks.com/blog/archive/starbucks to https://1912pike.com/ and the blog path is also active and in-service still. Also the old blog posts are listed from the search in the main page of your website.

If we inspect the page source of any blog post page under the path
http://www.starbucks.com/blog/ , we will see the disqus embedding codes still active.



i.e. checkout the page source of this page: http://www.starbucks.com/blog/starbucks-digital-network-content-highlights/612

HTML
<script>
		
	var	disqus_params = {	shortname :'████', 
							developerMode : false, 
							hash :'██████████', 
							publicKey :'█████',
							identifier : 'TEST/blog/starbucks-digital-network-content-highlights/612',
							url :'http://www.starbucks.com/blog/starbucks-digital-network-content-highlights/612',
							ssoName : 'Starbucks',
							signinUrl : '/account/signin?skin=sdn&returnURL=/Disqus/CloseWindow',
							mobileSignInURL : '/account/signin?skin=sdn&returnURL=http://www.starbucks.com/blog/starbucks-digital-network-content-highlights/612',
							signoutURL : '/account/signout?skin=sdn&returnURL=/blog/starbucks-digital-network-content-highlights/612',
							signInButton : 'http://www.starbucks.com/static/images/signin.png', 
							signInIcon :'http://www.starbucks.com/static/images/sb-logo-16.gif'
						};
						
			
						/*TODO: Temp Hack*/

if( navigator.userAgent.match(/Android/i)
 || navigator.userAgent.match(/webOS/i)
 || navigator.userAgent.match(/iPhone/i)
 || navigator.userAgent.match(/iPad/i)
 || navigator.userAgent.match(/iPod/i)
 ){
	disqus_params.signinUrl="/account/signin?skin=sdn&returnURL=" + window.location.href;
}
	
</script>

and also at the end of source code

HTML
<script src="/static/resource/disqus_js/1315595364_en-US"></script>

http://www.starbucks.com/static/resource/disqus_js/1315595364_en-US
 the js code is still in the server and in-service.

as you see in the page source code, the disqus shortname is ████ which is deprecated. I wonder and check from the disqus the “████████” shortname is not under usage. And i take that shortname as a regular user of disqus.



Consequently whole the administration of “█████████” discussion board belongs to me. This is the best case. For a company -which is focused on customer pleasure and has total stores: 22,519* (as of June 28, 2015)- this fault can cause lots of impression such as;

  • unconfirmed comments on your website
  • unpleasant images as a default avatar in comments section
  • undesired comments imported with older date can be shown as by name Starbucks etc.

I recommendation to solve this issue immediately;

remove the js code in blog post template code let me know the time to transfer the ownership of “██████” disqus shortname

I am very pleased to report this issue instantly.

Have a nice work and thank you so much.

The original report as published on HackerOne, by hiorws. 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 blog template kept referencing a Disqus shortname that Starbucks no longer controlled, and the shortname was available for anyone to register.

Impact

The reporter could control the comment board shown on Starbucks blog pages, potentially allowing unconfirmed comments, unpleasant default avatars, and comments imported with older dates shown under the Starbucks name.

What the attacker needed

A free Disqus account; the old shortname is unclaimed

The fix

Remove the old Disqus embed from the blog template and transfer the shortname ownership to Starbucks.

How it was found

  1. Open the source of any blog post page under the blog path.
  2. Find the Disqus embedding code and note the shortname.
  3. Check on Disqus that the shortname is not in use.
  4. Register that shortname as a regular Disqus user.

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 website can show comments by loading a third-party service called Disqus. Each Disqus board is identified by a short name, and whoever registers that name controls the board. Here the old name was no longer owned by Starbucks, so anyone could claim it and post or moderate comments on the company's blog.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by hiorws

View all

1 more disclosed report, best first.

More from Starbucks

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.