#VU16655 Code Injection in ThinkPHP5 Framework


Published: 2018-12-22

Vulnerability identifier: #VU16655

Vulnerability risk: High

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

CVE-ID: N/A

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
ThinkPHP5 Framework
Web applications / CMS

Vendor: ThinkPHP

Description

The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.

The vulnerability exists due to improper input validation in "/index.php" script when processing data passed via the "vars[1][]" HTTP GET parameter. A remote attacker can send a specially crafted request to the vulnerable application and execute arbitrary PHP code on the target system.

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

Note: this vulnerability is being actively exploited in the wild in December 2018.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

ThinkPHP5 Framework: 5.0.0 - 5.1.30


External links
http://www.exploit-db.com/exploits/45978


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?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability