Skip to content
SSRF Disclosed report Intermediate

Bypassing domain deny_list rule in Smokescreen via trailing dot leads to SSRF

The Smokescreen proxy's deny list could be bypassed by appending a trailing dot to a user-supplied URL, so a URL that should have been blocked was still reachable. An attacker able to influence outbound URLs could therefore reach destinations the deny list was meant to exclude.

gregxsunday Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 46 days
  • Paid in 47 days
  • Disclosed after 4 months

Summary by the program

The Smokescreen proxy is an open source project written and maintained by Stripe to restrict the URLs that internal services can connect to. The primary use case for Smokescreen is to prevent server-side request forgery (SSRF) attacks in which external attackers leverage the behavior of our applications to connect to or scan Stripe's internal infrastructure. More information on Smokescreen can be found on its GitHub page at https://github.com/stripe/smokescreen.

Smokescreen also offers an option to deny access to additional (e.g. external) URLs by way of a deny list. This report identified an issue which made it possible to bypass the deny list feature by appending a dot to the end of user-supplied URLs.

While the deny list is not a primary security feature, we were excited to see research targeting Smokescreen since it is a critical piece of our internal security controls, and a piece of software that is used beyond Stripe. Improvements here have the potential for a broader positive impact.

The original report as published on HackerOne, by gregxsunday. 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 deny list matched hostnames as literal strings without normalising the trailing dot, which is a valid form of a fully qualified domain name, so the comparison failed to match.

Impact

A URL that the deny list was meant to block could still be reached, weakening the SSRF protection Smokescreen provides, though the deny list is described as not a primary security feature.

What the attacker needed

Ability to supply a URL to Smokescreen

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.

Smokescreen is a proxy: a gatekeeper that checks which web addresses internal services are allowed to contact. It has a deny list, a blocklist of addresses that should never be reached. The report found that adding a dot at the end of an address slipped past that blocklist, so a blocked destination could still be contacted.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by gregxsunday

View all

3 more disclosed reports, best first.

More from Stripe

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.