Skip to content
Account takeover Write-up Intermediate

¶Understanding the Apache Airflow Vulnerabilities

Apache Airflow used a hardcoded secret key for signing session cookies, allowing an attacker to forge a valid session cookie for any user, including the administrator. This gave unauthorised access to the Airflow web interface and the credentials and systems it connects to.

securitytrails.com

Published on securitytrails.com

Apache Airflow is an open-source workflow management platform that started at Airbnb in 2014 as a solution to manage complex workflows. It allows organizations to programmatically author, schedule and monitor their workflows over their web-based interfaces that are connected to internet databases and many other…

The author, on securitytrails.com

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

The session signing key was hardcoded to a public value instead of being randomly generated per installation.

Impact

An attacker could log in as an administrator and access credentials for services such as AWS, Stripe, Braintree, and Datadog, and on older versions could run arbitrary queries against connected data sources.

What the attacker needed

Airflow version before 1.10.15; Network access to the Airflow web interface

The fix

The secret key was changed from a hardcoded value to a random value in a later version.

How it was found

  1. Find an Airflow instance exposed to the internet.
  2. Obtain a session cookie from the Airflow homepage via a simple GET request.
  3. Use flask-unsign with the known secret key to sign a modified session cookie containing user_id set to 1.
  4. Send the forged cookie to the Airflow instance to be authenticated as the administrator.

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.

Airflow is a tool for scheduling and running data workflows. It kept a secret password (the 'secret key') that it used to sign login cookies, but that password was the same for every installation and was publicly known. Because of this, anyone could create a fake login cookie that Airflow would trust, letting them log in as an administrator without knowing any real password.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.