CVE-2020-5216
Secure Headers RubyGem Directive Injection
Description
In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.9.0, 5.2.0, and 6.3.0. If user-supplied input was passed into append/override_content_security_policy_directives, a newline could be injected leading to limited header injection. Upon seeing a newline in the header, rails will silently create a new Content-Security-Policy header with the remaining value of the original string. It will continue to create new headers for each newline. This has been fixed in 6.3.0, 5.2.0, and 3.9.0.
INFO
Published Date :
Jan. 23, 2020, 3:15 a.m.
Last Modified :
Feb. 18, 2020, 2:58 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
1.4
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2020-5216
.
URL | Resource |
---|---|
https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0 | Patch |
https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg | Exploit Mitigation Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2020-5216
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2020-5216
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Feb. 18, 2020
Action Type Old Value New Value Removed CVSS V2 NIST (AV:N/AC:L/Au:S/C:N/I:P/A:N) Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:P/A:N) Removed CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N -
Initial Analysis by [email protected]
Jan. 30, 2020
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0 No Types Assigned https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0 Patch Changed Reference Type https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg No Types Assigned https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg Exploit, Mitigation, Third Party Advisory Added CWE NIST CWE-74 Added CPE Configuration OR *cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* versions up to (excluding) 3.9.0 *cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* versions from (including) 5.0.0 up to (excluding) 5.2.0 *cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* versions from (including) 6.0.0 up to (excluding) 6.3.0
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2020-5216
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2020-5216
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.09 }} 0.00%
score
0.36625
percentile