CVE-2024-41937: Apache Airflow: Stored XSS Vulnerability on provider link
A malicious provider developer could store a cross-site scripting payload in a provider documentation link, which executes when a user clicks that link. This could allow the attacker to steal user credentials.
Originally disclosed on HackerOne
- Triaged in 26 hours
- Fixed in 28 hours
- Paid in 28 hours
- Disclosed after 16 days
Summary by the program
CVE-2024-41937: Apache Airflow: Stored XSS Vulnerability on provider link
Severity: low
Affected versions:
- Apache Airflow before 2.10.0
Description:
Apache Airflow, versions before 2.10.0, have a vulnerability that allows the developer of a malicious provider to execute a cross-site scripting attack when clicking on a provider documentation link. This would require the provider to be installed on the web server and the user to click the provider link. Users should upgrade to 2.10.0 or later, which fixes this vulnerability.
Credit:
sw0rd1ight (https://github.com/sw0rd1ight) (finder) Amogh Desai (remediation developer)
Full Security Advisory: https://lists.apache.org/thread/lwlmgg6hqfmkpvw5py4w53hxyl37jl6d
The report
Apache Airflow, versions before 2.10.0, have a vulnerability that allows the developer of a malicious provider to execute a cross-site scripting attack when clicking on a provider documentation link. This would require the provider to be installed on the web server and the user to click the provider link. Users should upgrade to 2.10.0 or later, which fixes this vulnerability.
I reported this vulnerability through the official Apache Airflow security email on July 21, 2024, and received a fix along with a CVE number on August 21, 2024. this is screenshot of email and ASF response email I submitted ███ █████ ███████
Impact
Stored xss vulnerability can execute arbitrary xss and steal user credentials
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 provider documentation link was not properly sanitised before being rendered, allowing stored script injection.
What the attacker needed
Malicious provider installed on server; user clicks provider documentation link
The fix
The vulnerability was fixed in Apache Airflow 2.10.0 and later.
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.
A provider is an add-on for Apache Airflow, a tool for scheduling data workflows. The vulnerability meant that someone who made a malicious add-on could put harmful code in a documentation link, and when a user clicked that link, the code would run in their browser. This could let the attacker steal the user's login details.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.