gsd-2015-2963
Vulnerability from gsd
Modified
2015-06-05 00:00
Details
There is an issue where if an HTML file is uploaded with a .html
extension, but the content type is listed as being `image/jpeg`, this
will bypass a validation checking for images. But it will also pass the
spoof check, because a file named .html and containing actual HTML
passes the spoof check.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2015-2963", "description": "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.", "id": "GSD-2015-2963" }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "affected": [ { "package": { "ecosystem": "RubyGems", "name": "paperclip", "purl": "pkg:gem/paperclip" } } ], "aliases": [ "CVE-2015-2963", "GHSA-6jvm-3j5h-79f6" ], "details": "There is an issue where if an HTML file is uploaded with a .html\nextension, but the content type is listed as being `image/jpeg`, this\nwill bypass a validation checking for images. But it will also pass the\nspoof check, because a file named .html and containing actual HTML\npasses the spoof check.\n", "id": "GSD-2015-2963", "modified": "2015-06-05T00:00:00.000Z", "published": "2015-06-05T00:00:00.000Z", "references": [ { "type": "WEB", "url": "https://robots.thoughtbot.com/paperclip-security-release" } ], "schema_version": "1.4.0", "severity": [ { "score": 4.3, "type": "CVSS_V2" } ], "summary": "Paperclip Gem for Ruby vulnerable to content type spoofing" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "vultures@jpcert.or.jp", "ID": "CVE-2015-2963", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "n/a", "version": { "version_data": [ { "version_value": "n/a" } ] } } ] }, "vendor_name": "n/a" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "n/a" } ] } ] }, "references": { "reference_data": [ { "name": "75304", "refsource": "BID", "url": "http://www.securityfocus.com/bid/75304" }, { "name": "https://robots.thoughtbot.com/paperclip-security-release", "refsource": "CONFIRM", "url": "https://robots.thoughtbot.com/paperclip-security-release" }, { "name": "https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57", "refsource": "CONFIRM", "url": "https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57" }, { "name": "JVN#83881261", "refsource": "JVN", "url": "http://jvn.jp/en/jp/JVN83881261/index.html" }, { "name": "JVNDB-2015-000088", "refsource": "JVNDB", "url": "http://jvndb.jvn.jp/jvndb/JVNDB-2015-000088" }, { "name": "[oss-security] 20150618 Re: CVE request: Content type spoofing in ruby gem paperclip \u003c4.2.2", "refsource": "MLIST", "url": "http://openwall.com/lists/oss-security/2015/06/19/3" } ] } }, "github.com/rubysec/ruby-advisory-db": { "cve": "2015-2963", "cvss_v2": 4.3, "date": "2015-06-05", "description": "There is an issue where if an HTML file is uploaded with a .html\nextension, but the content type is listed as being `image/jpeg`, this\nwill bypass a validation checking for images. But it will also pass the\nspoof check, because a file named .html and containing actual HTML\npasses the spoof check.\n", "gem": "paperclip", "ghsa": "6jvm-3j5h-79f6", "patched_versions": [ "\u003e= 4.2.2" ], "title": "Paperclip Gem for Ruby vulnerable to content type spoofing", "url": "https://robots.thoughtbot.com/paperclip-security-release" }, "gitlab.com": { "advisories": [ { "affected_range": "\u003c4.2.2", "affected_versions": "All versions before 4.2.2", "credit": "MORI Shingo of DeNA Co., Ltd.", "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "cwe_ids": [ "CWE-1035", "CWE-79", "CWE-937" ], "date": "2016-12-02", "description": "There is an issue where if an HTML file is uploaded with a `.html` extension, but the content type is listed as being `image/jpeg`, this will bypass a validation checking for images. But it will also pass the spoof check, because a file named `.html` and containing actual HTML passes the spoof check.", "fixed_versions": [ "4.2.2" ], "identifier": "CVE-2015-2963", "identifiers": [ "CVE-2015-2963" ], "not_impacted": "All versions starting from 4.2.2", "package_slug": "gem/paperclip", "pubdate": "2015-07-10", "solution": "Upgrade to version 4.2.2 or above.", "title": "Content type spoofing vulnerability", "urls": [ "https://robots.thoughtbot.com/paperclip-security-release" ], "uuid": "152d654f-3deb-4c38-8494-e855c89658d3" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:thoughtbot:paperclip:*:*:*:*:*:ruby:*:*", "cpe_name": [], "versionEndIncluding": "4.2.1", "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "vultures@jpcert.or.jp", "ID": "CVE-2015-2963" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-79" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57", "refsource": "CONFIRM", "tags": [ "Exploit", "Vendor Advisory" ], "url": "https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57" }, { "name": "[oss-security] 20150618 Re: CVE request: Content type spoofing in ruby gem paperclip \u003c4.2.2", "refsource": "MLIST", "tags": [ "Vendor Advisory" ], "url": "http://openwall.com/lists/oss-security/2015/06/19/3" }, { "name": "JVN#83881261", "refsource": "JVN", "tags": [ "Vendor Advisory" ], "url": "http://jvn.jp/en/jp/JVN83881261/index.html" }, { "name": "JVNDB-2015-000088", "refsource": "JVNDB", "tags": [ "Vendor Advisory" ], "url": "http://jvndb.jvn.jp/jvndb/JVNDB-2015-000088" }, { "name": "https://robots.thoughtbot.com/paperclip-security-release", "refsource": "CONFIRM", "tags": [ "Vendor Advisory" ], "url": "https://robots.thoughtbot.com/paperclip-security-release" }, { "name": "75304", "refsource": "BID", "tags": [], "url": "http://www.securityfocus.com/bid/75304" } ] } }, "impact": { "baseMetricV2": { "cvssV2": { "accessComplexity": "MEDIUM", "accessVector": "NETWORK", "authentication": "NONE", "availabilityImpact": "NONE", "baseScore": 4.3, "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0" }, "exploitabilityScore": 8.6, "impactScore": 2.9, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "MEDIUM", "userInteractionRequired": true } }, "lastModifiedDate": "2016-12-03T03:07Z", "publishedDate": "2015-07-10T17:59Z" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…