Skip to content
Account takeover Write-up Advanced

FlowFixation: AWS Apache Airflow Service Takeover Vulnerability and Why Neglecting Guardrails Puts Major CSPs at Risk

The AWS managed Apache Airflow web panel issued a session cookie before authentication and kept the same session identifier after login, so an attacker could obtain a victim's unverified session and force the victim to authenticate it. Because the Airflow and API Gateway domains were not on the Public Suffix List, the attacker could toss that known session cookie from their own AWS-hosted page and then reuse the now-authenticated session to take over the victim's management panel.

Liv Matan Follow

Published on tenable.com

Subscribe

Liv Matan (@terminatorLM), on tenable.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

Likely the web panel reused the same session identifier before and after authentication, and the shared parent domains were absent from the Public Suffix List, so cookies could be set across unrelated customers' subdomains.

Impact

An attacker could take over the victim's Airflow web panel and, under certain circumstances, achieve remote code execution on the underlying instance and move laterally to other services.

What the attacker needed

Victim visits attacker's AWS-hosted page; victim has an AWS console session; attacker can host code on a shared domain

The fix

AWS fixed the session handling and added the affected service domains to the Public Suffix List.

How it was found

  1. Obtain an unauthenticated session cookie from the victim's Airflow web panel.
  2. Host attacker code on another AWS service that shares the same parent domain.
  3. Use that code to set the known session cookie for the shared parent domain with a deeper path.
  4. Redirect the victim to the SSO login URL so the known session becomes authenticated.
  5. Reuse the authenticated session to access the victim's web management panel.

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.

When you log in to a website, the site gives your browser a session cookie, a short code that proves who you are. Here the site handed out that code before login and did not change it afterwards, so an attacker could get a code for a victim, make the victim log in with it, and then use the same code to act as the victim. The attacker could also plant that code in the victim's browser because several unrelated AWS services share one parent domain.

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.

More by Liv Matan

View all

4 more disclosed reports, best first.

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.