Skip to content
Access control Disclosed report Intermediate

Bypass URL and IP Address Restrictions on analytics.starlink.com

The Matomo/Piwik analytics installation at analytics.starlink.com was protected by a WAF and IP allowlist, but a crafted URL path tricked the WAF into treating the request as the allowed piwik.js file while serving index.php, and a spoofed X-Forwarded-For header with a Starlink-owned IP bypassed the IP restriction. This let the attacker reach the login page and API endpoints that should only be accessible internally.

I4ENI Follow

Originally disclosed on Bugcrowd

  • Accepted in 24 hours
  • Fixed in 24 hours
  • Disclosed after 14 months

Summary by I4ENI

The Piwiki installation on https://analytics.starlink.com has WaF and IP address protections enabled to prevent an attacker from accessing and admin console URLs from the Internet. An attacker should only be able to see the /piwik.php /piwil.js /matomo.php pages. All other pages give an error about the gateway not being found.

I found a WaF bypass that allowed me to access the main interface for the Matomo Piwik installation using the following URL scheme. It tricks the WaF into thinking I'm accessing the allowed piwik.js file, but in reality it is the index.php page. https://analytics.starlink.com/index%2Ephp/piwik.js

There was also an IP address restriction so even if you bypassed the access to the URL using the above trick, you could not access the interface. By adding the following HTTP header with Starlink owned IP address specified, I could access the login page and other various API URLs used by the software application.

X-Forwarded-For: 192.31.242.112

The impact is that this application is now open to exploring for vulnerabilities in the open source software package that has had numerous CVEs in the past.

The original report as published on Bugcrowd, by I4ENI. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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 WAF matched on the raw URL path without normalising encoded characters, and the origin trusted the client-supplied X-Forwarded-For header for IP allowlisting.

Impact

The application became reachable from the internet, exposing the login page and API endpoints of an open-source package with a history of CVEs to further vulnerability research.

What the attacker needed

Network access to the target; ability to set request headers

How it was found

  1. Request the index page using an encoded dot and a trailing allowed filename so the WAF sees the allowed file.
  2. Observe that the WAF allows the request but the server serves the main interface.
  3. Add an X-Forwarded-For header containing a Starlink-owned IP address.
  4. Access the login page and various API URLs of the application.

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 application firewall (WAF) is a filter that inspects incoming requests and blocks ones that look disallowed. Here the filter only checked the URL path and trusted a header called X-Forwarded-For, which clients can set themselves. By disguising the request as a permitted file and claiming to come from an internal address, the attacker reached pages meant to be private.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from SpaceX/Starlink

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.