Remote command execution in RubyGem secure_headers



Published: 2020-01-31
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2020-5217
CWE-ID CWE-78
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
secure_headers
Universal components / Libraries / Libraries used by multiple products

Vendor Twitter

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) OS Command Injection

EUVDB-ID: #VU24795

Risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2020-5217

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to insufficient validation of user-supplied input in "append/override_content_security_policy_directives". A remote unauthenticated attacker can inject a semicolon, use it to override a script directive and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

secure_headers: 0.4.2 - 6.1.2

External links

http://github.com/twitter/secure_headers/commit/936a160e3e9659737a9f9eafce13eea36b5c9fa3
http://github.com/twitter/secure_headers/issues/418
http://github.com/twitter/secure_headers/pull/421
http://github.com/twitter/secure_headers/security/advisories/GHSA-xq52-rv6w-397c


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###