Input validation error in httparty - CVE-2024-22049
Published: January 5, 2024
httparty
John Nunemaker
Description
The vulnerability allows a remote attacker to overwrite files on the system.
The vulnerability exists due to insufficient validation of user-supplied input when processing filenames. A remote attacker can provide a crafted filename parameter during multipart/form-data uploads, which could result in attacker controlled filenames being written to the system.
Remediation
External links
- https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
- https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e
- https://github.com/jnunemaker/httparty/blob/4416141d37fd71bdba4f37589ec265f55aa446ce/lib/httparty/request/body.rb#L43
- https://github.com/advisories/GHSA-5pq7-52mg-hr42
- https://vulncheck.com/advisories/vc-advisory-GHSA-5pq7-52mg-hr42