#VU24795 OS Command Injection in secure_headers


Published: 2020-01-31

Vulnerability identifier: #VU24795

Vulnerability 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

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
secure_headers
Universal components / Libraries / Libraries used by multiple products

Vendor: Twitter

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.


Latest bulletins with this vulnerability