Skip to content
Subdomain takeover Disclosed report Beginner

unuse domain still in using at wechat by Starbucks East China

A Starbucks East China WeChat official account page still loads a script from a domain that is listed for sale. If an attacker bought it, they could serve their own script to users, enabling phishing.

k3mlol Follow

Originally disclosed on HackerOne

Critical 9.7 View original
  • Triaged in 13 days
  • Fixed in 18 days
  • Paid in 18 days
  • Disclosed after 31 days
**Summary:** 
spcc.mobi is still using at wechat offical account by Starbucks East China. but this domain is **on sale**.

**Description:**
I had reported this at report_id=433843,bu your gays had ignored, because they said the domain is unused.

In fact, spcc.mobi still having an interface using at wechat offical account by Starbucks East China

wechat offical account name is **星巴�
�江浙沪**

endponit request below:

``` html
GET /v5/bind.html HTTP/1.1
Host: coupon.ec-starbucks.cn
User-Agent: Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MOB31E; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/044405 Mobile Safari/537.36 MMWEBID/157 MicroMessenger/6.7.3.1360(0x260703EC) NetType/WIFI Language/zh_CN Process/tools
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,image/wxpic,image/sharpp,image/apng,image/tpg,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,en-US;q=0.8
Cookie: PHPSESSID=ip1f71qqak3kvakksu28bensjlapsh9a; Hm_lvt_b7c2e12efc764f8179148ddbece8211f=1545489448; Hm_lpvt_b7c2e12efc764f8179148ddbece8211f=1545489448
Connection: close

```

reponse is below:

``` html
....
<script>
	$(function(){
		$.get('http://weixin.spcc.mobi/oauth/_jssdk.html',{url:location.href.split('#')[0]},function(data){
			 wx.config($.extend({
			    debug: false,
			    jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','hideMenuItems','showMenuItems','hideOptionMenu','showOptionMenu',]
			},data));
		},'jsonp');
	})
	
	wx.ready(function () {	
		wx.hideOptionMenu();
	});

</script>
....
```

**Platform(s) Affected:**
- coupon.ec-starbucks.cn(Starbucks East China in using)

## Steps To Reproduce:

#### plan A(easy)
1. request the endpoint I offer
2. you will find the reponse contain "weixin.spcc.mobi"
3. visit the **weixin.spcc.mobi** you will find that this domain is on sale

#### plan B(complicated)
1. register a wechat account(download the app(name is wechat) from app store or play store)
2. search wechat offical account **星巴�

�江浙沪** then follow
3. click my card
4. you can find the requests as the I had mention.

## Recommendations for fix
remove the the unused **weixin.spcc.mobi** endpoint

## Impact

the domain is on sale, if attacker buy  this domain, can full control this domain for(Phishing Attack and etc.)

## Attachments


{{media:0}}



{{media:1}}



{{media:2}}



{{media:3}}



{{media:4}}

The original report as published on HackerOne, by k3mlol. 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 leftover reference to a third-party domain that the organisation no longer controls, which is now available for registration.

Impact

Because the domain is for sale, an attacker who buys it could fully control it and use it for phishing and similar attacks against users of the official account.

What the attacker needed

Attacker buys the for-sale domain; victim uses the WeChat official account

How it was found

  1. Request the bind page on the Starbucks East China host.
  2. Observe that the response references the weixin.spcc.mobi domain.
  3. Visit that domain and see that it is listed for sale.
  4. Alternatively, follow the official account in WeChat and open the card to trigger the same request.

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 web page can load code from another site named in its HTML. Here the page points at a domain that is on sale. Whoever buys it controls what code runs in the page, so they could phish users.

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 k3mlol

View all

4 more disclosed reports, 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.

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.