CVE-2020-17952: Code injection in topthink/think
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.83803%
CWE
Published
8/9/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
topthink/think | composer | <= 6.0.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The POC demonstrates exploitation via the 's=index/\think\app/invokefunction' parameter chain. The routeCheck method handles routing based on user-controlled path input, enabling access to invokefunction. The invokefunction method directly uses unvalidated 'function' and 'vars' parameters in call_user_func_array, which executes arbitrary code. Both functions are critical to the attack flow: routeCheck enables the malicious routing, and invokefunction performs the unsafe execution.