Skip to content

Commit b17adbf

Browse files
crowdsec-automationactions-userbuixor
authored
Add vpatch-CVE-2019-18952 rule and test (#1534)
* Add vpatch-CVE-2019-18952 rule * Add vpatch-CVE-2019-18952 test config * Add CVE-2019-18952.yaml test * Add vpatch-CVE-2019-18952 rule to vpatch collection * Update taxonomy * up * Update taxonomy --------- Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Thibault Koechlin <[email protected]> Co-authored-by: Thibault "bui" Koechlin <[email protected]>
1 parent d87fb9e commit b17adbf

File tree

5 files changed

+1036
-1227
lines changed

5 files changed

+1036
-1227
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## autogenerated on 2025-10-15 14:08:28
2+
id: CVE-2019-18952
3+
info:
4+
name: CVE-2019-18952
5+
author: crowdsec
6+
severity: info
7+
description: CVE-2019-18952 testing
8+
tags: appsec-testing
9+
http:
10+
- raw:
11+
- |
12+
POST /cgi-bin/up.cgi HTTP/1.1
13+
Host: {{Hostname}}
14+
X-Requested-With: XMLHttpRequest
15+
Content-Type: multipart/form-data; boundary=---------------------------5825462663702204104870787337
16+
17+
-----------------------------5825462663702204104870787337
18+
Content-Disposition: form-data; name="sid"
19+
20+
testpath
21+
-----------------------------5825462663702204104870787337
22+
Content-Disposition: form-data; name="file"; filename="testfile.php"
23+
Content-Type: application/php
24+
25+
<?php
26+
echo md5('999999999');
27+
unlink(__FILE__);
28+
?>
29+
-----------------------------5825462663702204104870787337--
30+
cookie-reuse: true
31+
matchers:
32+
- type: status
33+
status:
34+
- 403
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## autogenerated on 2025-10-15 14:08:28
2+
appsec-rules:
3+
- ./appsec-rules/crowdsecurity/base-config.yaml
4+
- ./appsec-rules/crowdsecurity/vpatch-CVE-2019-18952.yaml
5+
nuclei_template: CVE-2019-18952.yaml
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## autogenerated on 2025-10-15 14:08:28
2+
name: crowdsecurity/vpatch-CVE-2019-18952
3+
description: 'Detects arbitrary file upload attempts to Xfilesharing up.cgi endpoint (CVE-2019-18952)'
4+
rules:
5+
- and:
6+
- zones:
7+
- URI
8+
transform:
9+
- lowercase
10+
match:
11+
type: contains
12+
value: /cgi-bin/up.cgi
13+
- zones:
14+
- FILENAMES
15+
transform:
16+
- lowercase
17+
match:
18+
type: endsWith
19+
value: .php
20+
21+
labels:
22+
type: exploit
23+
service: http
24+
confidence: 3
25+
spoofable: 0
26+
behavior: 'http:exploit'
27+
label: 'Xfilesharing - File Upload'
28+
classification:
29+
- cve.CVE-2019-18952
30+
- attack.T1190
31+
- cwe.CWE-434

collections/crowdsecurity/appsec-virtual-patching.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ appsec-rules:
122122
- crowdsecurity/vpatch-CVE-2022-38627
123123
- crowdsecurity/vpatch-CVE-2025-36604
124124
- crowdsecurity/vpatch-CVE-2025-61882
125+
- crowdsecurity/vpatch-CVE-2019-18952
125126
- crowdsecurity/vpatch-CVE-2025-54249
126127
- crowdsecurity/vpatch-CVE-2020-13640
127128
- crowdsecurity/vpatch-CVE-2018-11511

0 commit comments

Comments
 (0)