Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .appsec-tests/vpatch-CVE-2021-23394/CVE-2021-23394.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## autogenerated on 2026-02-11 14:25:29
id: CVE-2021-23394
info:
name: CVE-2021-23394
author: crowdsec
severity: info
description: CVE-2021-23394 testing
tags: appsec-testing
http:
- raw:
- |
GET /elFinder/php/connector.minimal.php?cmd=mkfile&target=l1_Lw&name=test.phar HTTP/1.1
Host: {{Hostname}}
Accept: application/json
cookie-reuse: true
matchers:
- type: status
status:
- 403
5 changes: 5 additions & 0 deletions .appsec-tests/vpatch-CVE-2021-23394/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## autogenerated on 2026-02-11 14:25:29
appsec-rules:
- ./appsec-rules/crowdsecurity/base-config.yaml
- ./appsec-rules/crowdsecurity/vpatch-CVE-2021-23394.yaml
nuclei_template: CVE-2021-23394.yaml
43 changes: 43 additions & 0 deletions appsec-rules/crowdsecurity/vpatch-CVE-2021-23394.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## autogenerated on 2026-02-11 14:25:29
name: crowdsecurity/vpatch-CVE-2021-23394
description: 'Detects creation of .phar files via elFinder connector, which may lead to remote code execution if parsed as PHP.'
rules:
- and:
- zones:
- URI
transform:
- lowercase
match:
type: contains
value: /elfinder/php/connector.minimal.php
- zones:
- ARGS
variables:
- name
transform:
- lowercase
- urldecode
match:
type: endsWith
value: .phar
- zones:
- ARGS
variables:
- cmd
transform:
- lowercase
match:
type: equals
value: mkfile

labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: 'http:exploit'
label: 'ElFinder - RCE'
classification:
- cve.CVE-2021-23394
- attack.T1190
- cwe.CWE-434
1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2021-43798
- crowdsecurity/vpatch-CVE-2022-1388
- crowdsecurity/vpatch-CVE-2021-26294
- crowdsecurity/vpatch-CVE-2021-23394
- crowdsecurity/vpatch-CVE-2002-1131
- crowdsecurity/vpatch-CVE-2023-0297
- crowdsecurity/vpatch-CVE-2007-0885
Expand Down
Loading