Apache Airflow — 1 vulnerability check
noctis ships 1 vulnerability check for Apache Airflow, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Apache Airflow Experimental REST API Auth Bypass
| CVE | CVE-2020-13927 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/airflow/CVE-2020-13927.yaml |
Tests Apache Airflow (< 1.10.11) for unauthenticated access to the Experimental REST API. The default auth backend left /api/experimental/* reachable without credentials. Safe read-only probe of /api/experimental/latest_runs with a bogus-path control to rule out a blanket-200 responder.
How noctis detects it
- HTTP(S) request
GET /api/experimental/latest_runs - HTTP(S) request
GET /api/experimental/__noctis_does_not_exist__ - Checks
api_resp.bodyfor"items"\s*:\s*\[.*"dag_id".*"execution_date"→ finding QoD 75: Unauthenticated Experimental API returned real DAG JSON (HTTP …); bogus control path returned HTTP …: …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-13927
- https://lists.apache.org/thread.html/r7255b0d61 a2e71e7c0cb83d1a08a8b5f26a24486c8e34b14ad6c3f9d%40%3Cusers.airflow.apache.org%3E
Feed source — tests/vulnerabilities/airflow/CVE-2020-13927.yaml
# Apache Airflow Experimental REST API Authentication Bypass — CVE-2020-13927
#
# Apache Airflow < 1.10.11 shipped the Experimental REST API
# (/api/experimental/*) with the default auth backend
# (airflow.api.auth.backend.default), which performs NO authentication.
# Any unauthenticated client could therefore read DAG state and trigger
# actions against protected API endpoints.
#
# Detection (safe, read-only):
# A DIFFERENTIAL proves the server genuinely serves the Experimental API
# without auth, rather than being a blanket-200 responder:
# 1. GET /api/experimental/latest_runs (no auth) must return 200 with the
# real API JSON shape (items + dag_id + execution_date).
# 2. CONTROL: GET a bogus /api/experimental/<random> must NOT return 200
# (a real Airflow routes the API and 404s unknown subpaths).
# The finding fires only when the real endpoint serves authenticated-API
# JSON AND the bogus control path does not 200.
uid: 74cbb424-094a-4072-ac53-3fe935fc496f
name: "Apache Airflow Experimental REST API Auth Bypass (CVE-2020-13927)"
description: |
Tests Apache Airflow (< 1.10.11) for unauthenticated access to the
Experimental REST API. The default auth backend left /api/experimental/*
reachable without credentials. Safe read-only probe of
/api/experimental/latest_runs with a bogus-path control to rule out a
blanket-200 responder.
cves: [CVE-2020-13927]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [airflow, apache-airflow, auth-bypass, rest-api, experimental-api]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2020-13927"
- "https://lists.apache.org/thread.html/r7255b0d61 a2e71e7c0cb83d1a08a8b5f26a24486c8e34b14ad6c3f9d%40%3Cusers.airflow.apache.org%3E"
steps:
# ── Probe: unauthenticated access to a protected Experimental API endpoint ─
- id: api-probe
action: http_request
method: GET
path: "/api/experimental/latest_runs"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: api_resp
# ── Control: a bogus API subpath must NOT 200 on a real Airflow ───────────
- id: control-probe
action: http_request
method: GET
path: "/api/experimental/__noctis_does_not_exist__"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: control_resp
# ── Differential: real API JSON served without auth AND control not 200 ────
- id: authbypass-match
action: match
source: api_resp.body
# latest_runs returns {"items":[{"dag_id": "...","execution_date":"..."}]}
pattern: "\"items\"\\s*:\\s*\\[.*\"dag_id\".*\"execution_date\""
condition: "api_resp.status == 200 && control_resp.status != 200"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Unauthenticated Experimental API returned real DAG JSON (HTTP {{api_resp.status}}); bogus control path returned HTTP {{control_resp.status}}: {{api_resp.body}}"
stop: true