Finding the CVE
The example DAG in Apache Airflow 1.10.10 allowed remote code execution when triggered with a crafted configuration, and the Experimental API was unauthenticated by default, so an attacker could run arbitrary commands without logging in.
infosecwriteups.com
Published on infosecwriteups.com
I recently published a simple POC of CVE-2020-11978 which, when combined with CVE-2020–13927, is an unauthenticated RCE for Apache Airflow 1.10.10. (Exploit DB link)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the example DAG passed user-supplied configuration directly into a shell command, and the Experimental API had no authentication by default.
Impact
An unauthenticated attacker could execute arbitrary commands on the Airflow server.
What the attacker needed
Airflow 1.10.10 with default config; load_examples enabled; Experimental API reachable
The fix
The example DAG was patched in version 1.10.11, and the insecure default authentication setting was also addressed.
How it was found
- Enable the example_trigger_target_dag
- Create a DAG run with the config above
- Wait
- Validate the /tmp/test_rce was created
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Apache Airflow is a tool for scheduling tasks. In version 1.10.10, one of its built-in example tasks could be made to run any command on the server, and the web interface that lets you start tasks did not require a password by default. So anyone who could reach that interface could run commands on the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.