Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHSA Sync: 1 brand new advisory #732

Merged
merged 2 commits into from
Jan 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions gems/httparty/CVE-2024-22049.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
gem: httparty
cve: 2024-22049
ghsa: 5pq7-52mg-hr42
url: https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
title: httparty has multipart/form-data request tampering vulnerability
date: 2023-01-03
description: |
HTTP multipart/form-data request tampering vulnerability in httparty < 0.20.0,
due to lack of proper escaping of double quotes within the filename attribute
of the Content-Disposition header. If the Content-Disposition header is set to
"form-data" and contains the "filename" attribute, and the "filename"
attribute contains a double quote followed by additional attributes, then
those attributes will be parsed as Content-Disposition attributes and will
override the Content-Disposition header's previous attributes.

Content-Disposition: form-data; name="avatar"; filename="overwrite_name_field_and_extension.sh"; name="foo"; dummy=".txt"

cvss_v3: 6.5
patched_versions:
- ">= 0.21.0"
related:
url:
- https://nvd.nist.gov/vuln/detail/CVE-2024-22049
- 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