gsd-2020-8162
Vulnerability from gsd
Modified
2020-05-18 00:00
Details
There is a vulnerability in ActiveStorage's S3 adapter that allows the Content-Length of a
direct file upload to be modified by an end user.
Versions Affected: rails < 5.2.4.2, rails < 6.0.3.1
Not affected: Applications that do not use the direct upload functionality of the ActiveStorage S3 adapter.
Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1
Impact
------
Utilizing this vulnerability, an attacker can control the Content-Length of an S3 direct upload URL without receiving a
new signature from the server. This could be used to bypass controls in place on the server to limit upload size.
Workarounds
-----------
This is a low-severity security issue. As such, no workaround is necessarily
until such time as the application can be upgraded.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2020-8162", "description": "A client side enforcement of server side security vulnerability exists in rails \u003c 5.2.4.2 and rails \u003c 6.0.3.1 ActiveStorage\u0027s S3 adapter that allows the Content-Length of a direct file upload to be modified by an end user bypassing upload limits.", "id": "GSD-2020-8162", "references": [ "https://www.suse.com/security/cve/CVE-2020-8162.html", "https://www.debian.org/security/2020/dsa-4766", "https://access.redhat.com/errata/RHSA-2021:1313" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "affected": [ { "package": { "ecosystem": "RubyGems", "name": "activestorage", "purl": "pkg:gem/activestorage" } } ], "aliases": [ "CVE-2020-8162", "GHSA-m42x-37p3-fv5w" ], "details": "There is a vulnerability in ActiveStorage\u0027s S3 adapter that allows the Content-Length of a\ndirect file upload to be modified by an end user.\n\nVersions Affected: rails \u003c 5.2.4.2, rails \u003c 6.0.3.1\nNot affected: Applications that do not use the direct upload functionality of the ActiveStorage S3 adapter.\nFixed Versions: rails \u003e= 5.2.4.3, rails \u003e= 6.0.3.1\n\nImpact\n------\n\nUtilizing this vulnerability, an attacker can control the Content-Length of an S3 direct upload URL without receiving a\nnew signature from the server. This could be used to bypass controls in place on the server to limit upload size.\n\nWorkarounds\n-----------\n\nThis is a low-severity security issue. As such, no workaround is necessarily\nuntil such time as the application can be upgraded.\n", "id": "GSD-2020-8162", "modified": "2020-05-18T00:00:00.000Z", "published": "2020-05-18T00:00:00.000Z", "references": [ { "type": "WEB", "url": "https://groups.google.com/forum/#!topic/rubyonrails-security/PjU3946mreQ" } ], "schema_version": "1.4.0", "severity": [ { "score": 7.5, "type": "CVSS_V3" } ], "summary": "Circumvention of file size limits in ActiveStorage" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "support@hackerone.com", "ID": "CVE-2020-8162", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "https://github.com/rails/rails", "version": { "version_data": [ { "version_value": "rails \u003e= 5.2.4.3, rails \u003e= 6.0.3.1" } ] } } ] }, "vendor_name": "n/a" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "A client side enforcement of server side security vulnerability exists in rails \u003c 5.2.4.2 and rails \u003c 6.0.3.1 ActiveStorage\u0027s S3 adapter that allows the Content-Length of a direct file upload to be modified by an end user bypassing upload limits." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "Client-Side Enforcement of Server-Side Security (CWE-602)" } ] } ] }, "references": { "reference_data": [ { "name": "https://hackerone.com/reports/789579", "refsource": "MISC", "url": "https://hackerone.com/reports/789579" }, { "name": "https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ", "refsource": "MISC", "url": "https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ" }, { "name": "DSA-4766", "refsource": "DEBIAN", "url": "https://www.debian.org/security/2020/dsa-4766" } ] } }, "github.com/rubysec/ruby-advisory-db": { "cve": "2020-8162", "cvss_v3": 7.5, "date": "2020-05-18", "description": "There is a vulnerability in ActiveStorage\u0027s S3 adapter that allows the Content-Length of a\ndirect file upload to be modified by an end user.\n\nVersions Affected: rails \u003c 5.2.4.2, rails \u003c 6.0.3.1\nNot affected: Applications that do not use the direct upload functionality of the ActiveStorage S3 adapter.\nFixed Versions: rails \u003e= 5.2.4.3, rails \u003e= 6.0.3.1\n\nImpact\n------\n\nUtilizing this vulnerability, an attacker can control the Content-Length of an S3 direct upload URL without receiving a\nnew signature from the server. This could be used to bypass controls in place on the server to limit upload size.\n\nWorkarounds\n-----------\n\nThis is a low-severity security issue. As such, no workaround is necessarily\nuntil such time as the application can be upgraded.\n", "framework": "rails", "gem": "activestorage", "ghsa": "m42x-37p3-fv5w", "patched_versions": [ "~\u003e 5.2.4, \u003e= 5.2.4.3", "\u003e= 6.0.3.1" ], "title": "Circumvention of file size limits in ActiveStorage", "url": "https://groups.google.com/forum/#!topic/rubyonrails-security/PjU3946mreQ" }, "gitlab.com": { "advisories": [ { "affected_range": "\u003c5.2.4.2||\u003e=6.0.0 \u003c6.0.3.1", "affected_versions": "All versions before 5.2.4.2, all versions starting from 6.0.0 before 6.0.3.1", "cvss_v2": "AV:N/AC:L/Au:N/C:N/I:P/A:N", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "cwe_ids": [ "CWE-1035", "CWE-434", "CWE-937" ], "date": "2020-09-25", "description": "A client side enforcement of server side security vulnerability exists in rails and rails ActiveStorage\u0027s S3 adapter that allows the Content-Length of a direct file upload to be modified by an end user bypassing upload limits.", "fixed_versions": [ "5.2.4.2", "6.0.3.1" ], "identifier": "CVE-2020-8162", "identifiers": [ "CVE-2020-8162" ], "not_impacted": "All versions starting from 5.2.4.2 before 6.0.0, all versions starting from 6.0.3.1", "package_slug": "gem/activestorage", "pubdate": "2020-06-19", "solution": "Upgrade to versions 5.2.4.2, 6.0.3.1 or above.", "title": "Unrestricted Upload of File with Dangerous Type", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2020-8162", "https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ", "https://hackerone.com/reports/789579", "https://www.debian.org/security/2020/dsa-4766" ], "uuid": "e50be25a-8dec-4bb8-958f-abea9bfeea8e" }, { "affected_range": "\u003c5.2.4.2||\u003e=6.0.0 \u003c6.0.3.1", "affected_versions": "All versions before 5.2.4.2, all versions starting from 6.0.0 before 6.0.3.1", "cvss_v2": "AV:N/AC:L/Au:N/C:N/I:P/A:N", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "cwe_ids": [ "CWE-1035", "CWE-434", "CWE-937" ], "date": "2020-09-25", "description": "A client side enforcement of server side security vulnerability exists in rails and rails ActiveStorage\u0027s S3 adapter that allows the `Content-Length` of a direct file upload to be modified by an end user bypassing upload limits.", "fixed_versions": [ "5.2.4.2", "6.0.3.1" ], "identifier": "CVE-2020-8162", "identifiers": [ "CVE-2020-8162" ], "not_impacted": "All versions starting from 5.2.4.2 before 6.0.0, all versions starting from 6.0.3.1", "package_slug": "gem/rails", "pubdate": "2020-06-19", "solution": "Upgrade to versions 5.2.4.2, 6.0.3.1 or above.", "title": "Unrestricted Upload of File with Dangerous Type", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2020-8162" ], "uuid": "fdcf116c-9a0a-401e-a7e5-fb3370e8d14d" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "6.0.3.1", "versionStartIncluding": "6.0.0", "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "5.2.4.2", "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "cve-assignments@hackerone.com", "ID": "CVE-2020-8162" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "A client side enforcement of server side security vulnerability exists in rails \u003c 5.2.4.2 and rails \u003c 6.0.3.1 ActiveStorage\u0027s S3 adapter that allows the Content-Length of a direct file upload to be modified by an end user bypassing upload limits." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-434" } ] } ] }, "references": { "reference_data": [ { "name": "https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ", "refsource": "MISC", "tags": [ "Mailing List", "Patch", "Third Party Advisory" ], "url": "https://groups.google.com/g/rubyonrails-security/c/PjU3946mreQ" }, { "name": "https://hackerone.com/reports/789579", "refsource": "MISC", "tags": [ "Exploit", "Third Party Advisory" ], "url": "https://hackerone.com/reports/789579" }, { "name": "DSA-4766", "refsource": "DEBIAN", "tags": [ "Third Party Advisory" ], "url": "https://www.debian.org/security/2020/dsa-4766" } ] } }, "impact": { "baseMetricV2": { "acInsufInfo": false, "cvssV2": { "accessComplexity": "LOW", "accessVector": "NETWORK", "authentication": "NONE", "availabilityImpact": "NONE", "baseScore": 5.0, "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:L/Au:N/C:N/I:P/A:N", "version": "2.0" }, "exploitabilityScore": 10.0, "impactScore": 2.9, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "MEDIUM", "userInteractionRequired": false }, "baseMetricV3": { "cvssV3": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "version": "3.1" }, "exploitabilityScore": 3.9, "impactScore": 3.6 } }, "lastModifiedDate": "2022-05-24T16:15Z", "publishedDate": "2020-06-19T17:15Z" } } }
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.