原始 OSV JSON{
"id": "GHSA-8727-m6gj-mc37",
"aliases": [
"CVE-2020-8164"
],
"details": "There is a strong parameters bypass vector in ActionPack.\n\nVersions Affected: rails <= 6.0.3\nNot affected: rails < 5.0.0\nFixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1\n\nImpact\n------\nIn some cases user supplied information can be inadvertently leaked from\nStrong Parameters. Specifically the return value of `each`, or `each_value`,\nor `each_pair` will return the underlying \"untrusted\" hash of data that was\nread from the parameters. Applications that use this return value may be\ninadvertently use untrusted user input.\n\nImpacted code will look something like this:\n\n```\ndef update\n # Attacker has included the parameter: `{ is_admin: true }`\n User.update(clean_up_params)\nend\n\ndef clean_up_params\n params.each { |k, v| SomeModel.check(v) if k == :name }\nend\n```\n\nNote the mistaken use of `each` in the `clean_up_params` method in the above\nexample.\n\nWorkarounds\n-----------\nDo not use the return values of `each`, `each_value`, or `each_pair` in your\napplication.",
"summary": "Possible Strong Parameters Bypass in ActionPack",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.2.4.3"
}
]
}
],
"package": {
"name": "actionpack",
"ecosystem": "RubyGems"
},
"database_specific": {
"last_known_affected_version_range": "<= 5.2.4.2"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.0.3.1"
}
]
}
],
"package": {
"name": "actionpack",
"ecosystem": "RubyGems"
},
"database_specific": {
"last_known_affected_version_range": "<= 6.0.3"
}
}
],
"modified": "2023-09-25T16:55:14Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"published": "2020-05-26T15:09:16Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-8164",
"type": "ADVISORY"
},
{
"url": "https://hackerone.com/reports/292797",
"type": "WEB"
},
{
"url": "https://github.com/rails/rails",
"type": "PACKAGE"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2020-8164.yml",
"type": "WEB"
},
{
"url": "https://groups.google.com/forum/#!topic/rubyonrails-security/f6ioe4sdpbY",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/rubyonrails-security/c/f6ioe4sdpbY",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2020/06/msg00022.html",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2020/dsa-4766",
"type": "WEB"
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00089.html",
"type": "WEB"
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00093.html",
"type": "WEB"
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00107.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-502"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2020-06-19T17:15:00Z",
"github_reviewed_at": "2020-05-26T15:06:53Z"
}
}