Remote command execution in RubyGem secure_headers



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
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

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

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

CPE2.3 External links

https://github.com/twitter/secure_headers/commit/936a160e3e9659737a9f9eafce13eea36b5c9fa3
https://github.com/twitter/secure_headers/issues/418
https://github.com/twitter/secure_headers/pull/421
https://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###