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.

Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.

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
Find surface-level website security issues in under a minute
Free website security assessment
Experience the power of automated penetration testing & contextual reporting.