XSS in Thoughtbot Paperclip
CVE-2015-2963
The thoughtbot paperclip gem before 4.2.2 for Ruby does not consider the content-type value during media-type validation, which allows remote attackers to upload HTML documents and conduct cross-site scripting (XSS) attacks via a spoofed value, as demonstrated by image/jpeg.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 4.3 (Medium). Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.021, 82.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, innoq/security_report). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.securityfocus.com/bid/75304 (vdb-entry)
- robots.thoughtbot.com/paperclip-security-release (Vendor Advisory)
- github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57 (Exploit, Vendor Advisory)
- JVN#83881261 (third-party-advisory, Vendor Advisory)
- JVNDB-2015-000088 (third-party-advisory, Vendor Advisory)
- [oss-security] 20150618 Re: CVE request: Content type spoofing in ruby gem paperclip <4.2.2 (Vendor Advisory, mailing-list)