Skip to content
Open redirect Disclosed report Beginner CVE-2022-45402

CVE-2022-45402: Apache Airflow: Open redirect during login

The login endpoint of Apache Airflow accepted a 'next' parameter that was used for redirection after successful login, and the existing open redirect protections could be bypassed using a backslash in the URL. An attacker could craft a link that redirects users to an arbitrary external site after they log in, enabling phishing attacks.

bugra Follow

Originally disclosed on HackerOne

  • Fixed in 4 days
  • Paid in 4 days
  • Disclosed after 8 days

Summary by the program

##Description:

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's /login endpoint.

##References:

https://github.com/apache/airflow/pull/27576

The report

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's /login endpoint.

my initial email to [email protected]:

Hi,

In Apache Airflow, there is a parameter "next" on the Login page. And after a successful login, we're redirected to this parameter's value. 
I see there are some preventions for the open redirect bug. However, I can bypass these preventions using "/\google.com"

It seems this parameter accepts anything after the slash "/" character. And, browsers parse "/\" as "http://" in the location header.

For reproducing, you can try to login on the http://127.0.0.1:8080/login/?next=/\google.com

I tested this bug in the last version (v2.4.2)

Regards,
Bugra Eskici

Here is the email thread: {█████████}

Impact

Unvalidated URL redirection during login, can be used for phishing, etc.

Regards, Bugra

The original report as published on HackerOne, by bugra. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application validated the redirect target insufficiently, allowing a backslash to be interpreted as a forward slash by browsers, bypassing the open redirect prevention.

Impact

An attacker could redirect users to an arbitrary external site after login, which could be used for phishing.

What the attacker needed

Victim clicks a crafted link; victim logs in

How it was found

  1. Craft a login URL with a 'next' parameter containing a backslash followed by an external domain.
  2. Send the crafted URL to a victim.
  3. The victim logs in successfully.
  4. The victim is redirected to the external domain.

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 report has not been written yet. The Original tab links to the source.

An open redirect is when a website lets you specify where to go next, and it does not check that the destination is safe. Here, after logging in, the site would send you to whatever address was in the 'next' parameter, even if it was an attacker's site. The attacker could use this to trick people into visiting a fake login page that looks like the real one.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by bugra

View all

21 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.