Skip to content
SSRF Disclosed report Intermediate CVE-2022-29188

Bypass global deny-lists by wrapping domains using "[]" in https://github.com/stripe/smokescreen

Smokescreen's deny-list feature could be bypassed by wrapping a hostname in square brackets, optionally with a port, so a blocked destination was still reachable. An attacker able to influence outbound requests could therefore reach URLs the deny list was meant to block.

haxatron1 Follow

Originally disclosed on HackerOne

  • Triaged in 14 days
  • Fixed in 38 days
  • Paid in 39 days
  • Disclosed after 47 days

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 surrounding the hostname with square brackets, with an optional port appended (e.g. http://[example.com]:80). This issue was fixed in Smokescreen v0.0.4.

The original report as published on HackerOne, by haxatron1. 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 check parsed or compared the hostname without normalising bracketed host syntax, so the bracketed form did not match the blocked entry.

Impact

A destination on the deny list could still be reached by using the bracketed hostname form, weakening the SSRF protection Smokescreen provides.

What the attacker needed

Ability to influence outbound URLs; deny list configured

The fix

The issue was fixed in Smokescreen v0.0.4.

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 gatekeeper that checks where internal services are allowed to connect. It keeps a list of blocked destinations, but if the address was written with square brackets around the name, the gatekeeper did not recognise it and let the connection through. That means a blocked site could still be reached by writing its address in a slightly different way.

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 haxatron1

View all

30 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.