CVE-2022-24825: Github.com/stripe/smokescreen Smokescreen SSRF Vulnerability
MODERATECVE-2022-24825 is a MODERATE (CVSS 5.8) smokescreen ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/stripe/smokescreen libraries in the Go ecosystem. The issue involves smokescreen ssrf via deny list bypass. Remediation is available by upgrading affected packages to version 0.0.3.
CVE-2022-24825 at a Glance
Security Impact
CVSS: 5.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N).
How to Fix CVE-2022-24825
To remediate this vulnerability, upgrade all affected Github.com/stripe/smokescreen dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/stripe/smokescreen to 0.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/stripe/smokescreen
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-24825, inspect your project dependencies for Github.com/stripe/smokescreen:
inspect dependencies for github.com/stripe/smokescreen
Analyze the terminal output to locate any version of Github.com/stripe/smokescreen in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Github.com/stripe/smokescreen, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-24825 Affected Github.com/stripe/smokescreen Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/stripe/smokescreen
|
Go |
< 0.0.3
|
0.0.3
|
References
Frequently Asked Questions
What is CVE-2022-24825?
Which Github.com/stripe/smokescreen versions are affected?
What version fixes CVE-2022-24825?
Is github.com/stripe/smokescreen affected?
What is the CVSS score of CVE-2022-24825?
What CWE is associated with CVE-2022-24825?
How can I check Go dependencies for CVE-2022-24825?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gcj7-j438-hjj2",
"modified" : "2022-04-07T22:10:22Z",
"published" : "2022-04-07T22:10:22Z",
"aliases" : [ "CVE-2022-24825" ],
"summary" : "Smokescreen SSRF via deny list bypass",
"details" : "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.\n\nSmokescreen 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.\n\n### Recommendation\nUpgrade Smokescreen to version 0.0.3 or later.\n\n### Acknowledgements\nThanks to [Grzegorz Niedziela](https://twitter.com/gregxsunday) for reporting the issue.\n\n### For more information\nEmail us at security@stripe.com",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/stripe/smokescreen"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/stripe/smokescreen/security/advisories/GHSA-gcj7-j438-hjj2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24825"
}, {
"type" : "WEB",
"url" : "https://github.com/stripe/smokescreen/commit/fafb6ae48c6c40aa011d87b61306abc48db8797b"
}, {
"type" : "PACKAGE",
"url" : "github.com/stripe/smokescreen"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-07T22:10:22Z",
"nvd_published_at" : "2022-04-19T20:15:00Z"
}
}