External Control of Assumed-Immutable Web Parameter Affecting httparty package, versions <0.21.0
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.14% (51st
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RUBY-HTTPARTY-3188560
- published 4 Jan 2023
- disclosed 3 Jan 2023
- credit motoyasu-saburi
Introduced: 3 Jan 2023
CVE-2024-22049 Open this link in a new tabHow to fix?
Upgrade httparty
to version 0.21.0 or higher.
Overview
Affected versions of this package are vulnerable to External Control of Assumed-Immutable Web Parameter due to improper escape of the "
character in the generate_multipart
function, which allows injecting malicious content to the filename
parameter via the Content-Disposition
header.
PoC
Content-Disposition: form-data; name="avatar"; filename="overwrite_name_field_and_extension.sh"; name="foo"; dummy=".txt"
References
CVSS Scores
version 3.1