ThinkPHP 5.0.23 RCE

By
Prathap
Published on
16 Jun 2021
Vulnerability

ThinkPHP is a popular Chinese PHP development framework. ThinkPHP5 framework does not strictly filter the controller name, allowing an attacker to call sensitive functions inside the ThinkPHP framework through the URL which results in getshell vulnerability.In version 5.0.23, the framework incorrectly processes the request method, allowing an attacker to call any method of the Request class, resulting in an RCE vulnerability via a specific exploit chain.

Mitigation / Precaution

  • We recommend you to use forced routing mode, but not recommended to enable this mode directly in the online environment.

  • We suggest that you update to the latest versions in order to fix this vulnerability.


Written by
Prathap
Prathap
Co-founder, Director
Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 10 days