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.
- 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
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
- Craft a login URL with a 'next' parameter containing a backslash followed by an external domain.
- Send the crafted URL to a victim.
- The victim logs in successfully.
- 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.