CVE-2022-24825 Smokescreen SSRF via deny list bypass
Attackers can bypass the deny list in Smokescreen proxy by manipulating URL formatting, allowing unauthorized access to blocked resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24825?
CVE-2022-24825 is a medium-severity server-side request forgery vulnerability in stripe smokescreen, published on 19 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Smokescreen is a simple HTTP proxy that fogs over naughty URLs. The primary use case for Smokescreen is to prevent server-side request forgery (SSRF) attacks in which external attackers leverage the behavior of applications to connect to or scan internal infrastructure. Smokescreen also offers an option to deny access to additional (e.g., external) URLs by way of a deny list. There was an issue in Smokescreen that made it possible to bypass the deny list feature by appending a dot to the end of user-supplied URLs, or by providing input in a different letter case. Recommended to upgrade Smokescreen to version 0.0.3 or later.
Weakness: CWE-918
Which versions are affected by CVE-2022-24825?
3 open source packages ship an affected version, including github.com/stripe/smokescreen. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/stripe/smokescreen Go | All versions | 0.0.3 |
github.com/stripe/smokescreen Go | All versions | 0.0.3 |
github.com/stripe/smokescreen Go | All versions | 0.0.3 |
Products include Stripe Smokescreen.
How do I fix CVE-2022-24825?
Upgrade github.com/stripe/smokescreen to 0.0.3 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2022-24825 being exploited?
There is no known exploitation of CVE-2022-24825 in the wild and no public exploit code.
Other vulnerabilities in stripe smokescreen
Sources
Also known as GHSA-gcj7-j438-hjj2, GO-2022-0429.