ThinkPHP 5.0.23 RCE

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.

Prathap
Written by
Co-founder, Director

Prathap has around 20 years of experience and has worked on various projects in leading companies like Hitachi, Toshiba, Schneider Electric, ABB, Panasonic, and MicroFuzzy. His expertise lies in architecting, designing, and developing secure projects covering various aspects of software development, processes, and methodology.

Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 14 days
4.8 on G2 • ISO 27001 certified
See How Beagle Security Works
No credit card • No setup required
Launch interactive demo