Skip to content
SSRF Disclosed report Intermediate

Bypassing domain deny_list rule in Smokescreen via double brackets [[]] which leads to SSRF

The domain deny_list rule in Smokescreen could be bypassed by wrapping a denied domain in double brackets, because only one set of brackets was stripped before processing. An attacker could then make requests to domains that should have been blocked, leading to server-side request forgery.

sim4n6 Follow

Originally disclosed on HackerOne

  • Triaged in 20 days
  • Fixed in 51 days
  • Paid in 51 days
  • Disclosed after 5 months

Summary by the program

@sim4n6 discovered a bypass of the domain deny_list rule in github.com/stripe/smokescreen using double brackets. This could have led to a server-side request forgery (SSRF) vulnerability for users of smokescreen. The vulnerability was caused by only stripping one set of brackets before processing a domain and was resolved by stripping all sets of brackets.

The original report as published on HackerOne, by sim4n6. 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 normalised the domain by stripping only one pair of square brackets, so a domain wrapped in double brackets did not match the deny list.

Impact

This could have led to a server-side request forgery vulnerability for users of Smokescreen, allowing requests to domains that should have been denied.

What the attacker needed

Use of Smokescreen with a deny_list rule

The fix

The issue was resolved by stripping all sets of brackets before processing a domain.

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 tool that acts as a gatekeeper for outgoing web requests, blocking certain domains. The gatekeeper removed one pair of square brackets from a domain name before checking it, so if someone used two pairs, the check saw a different name and let the request through. That meant a request to a blocked domain could still be made, which is a server-side request forgery (SSRF) issue.

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 sim4n6

View all

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