Skip to content
Open redirect Write-up Beginner

How i found Host Header Injection on SpaceX

A SpaceX-owned IP address redirected visitors to a subdomain, and changing the Host header to another site caused a redirect to that site. An attacker could use this to send users to an arbitrary external website.

gitlime71 Follow

Published on medium.com

During the reconnaissance and information gathering, I found an IP address on Shodan that belongs to SpaceX ( Let’s Say It’s {x.x.x.x} ) . This IP redirects the visitors to a subdomain for SpaceX ( sub.spacex.com ).

Raccoon, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application used the untrusted Host header value to build its redirect target instead of a fixed, allow-listed hostname.

Impact

An attacker could redirect visitors from the SpaceX IP to an arbitrary external site, which may aid phishing; the report does not show any further impact.

What the attacker needed

Ability to send a crafted Host header

How it was found

  1. Visit the login page on the SpaceX IP address.
  2. Intercept the request.
  3. Change the Host header to another site.
  4. Forward the request and observe the redirect to that site.

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 write-up has not been written yet. The Original tab links to the source.

When you visit a website, your browser sends a 'Host' header telling the server which site name you asked for. This server trusted that header and used it to decide where to redirect you, so anyone could put a different site name in and be sent there instead. That lets an attacker craft links that look like they go to SpaceX but end up on a site they control.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by gitlime71

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.