CVE-2023-40611: Apache Airflow Dag Runs Broken Access Control Vulnerability
An authenticated user with only DAG-view permission could modify DAG run details such as configuration parameters and start date by tampering with the request when submitting notes. This allowed them to alter values they were not authorised to change.
- Triaged in 25 hours
- Fixed in 15 days
- Paid in 15 days
- Disclosed after 45 days
Summary by the program
CVE-2023-40611: Apache Airflow Dag Runs Broken Access Control Vulnerability Severity: low
Affected versions:
- Apache Airflow before 2.7.1
Description: Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated and DAG-view authorized Users to modify some DAG run detail values when submitting notes. This could have them alter details such as configuration parameters, start date, etc.
Users should upgrade to version 2.7.1 or later which has removed the vulnerability.
Credit: happyhacking (finder)
Full Security Advisory: https://lists.apache.org/thread/8y9xk1s3j4qr36yzqn8ogbn9fl7pxrn0
The report
##Description:
Apache Airflow, versions before 2.7.1, is affected by a vulnerability that allows authenticated and DAG-view authorized Users to modify some DAG run detail values when submitting notes. This could have them alter details such as configuration parameters, start date, etc.
Users should upgrade to version 2.7.1 or later which has removed the vulnerability.
##Vulnerability Exploitation:
1.Select Browse-->DAG Runs, we can see the Dag Run list.

2.Select a Dag, and edit it.

- We can see that the Conf parameter text box is gray and cannot be edited. The current user does not have permission to modify the Conf value.

4.Click Save to intercept the request message and modify the parameter value of Conf to "1111111111111".

5.Successfully modified beyond permission.

Impact
Broken Access Control
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 server-side endpoint that saves DAG run notes did not verify that the user had permission to modify the DAG run's configuration and other details, relying only on the client-side disabled form fields.
Impact
An authenticated user with only DAG-view permission could alter DAG run details such as configuration parameters and start date.
What the attacker needed
Authenticated user; DAG-view permission
The fix
The vulnerability was fixed in Apache Airflow version 2.7.1; users should upgrade to that version or later.
How it was found
- Go to Browse then DAG Runs to see the list of DAG runs.
- Select a DAG and edit it.
- Observe that the Conf parameter text box is greyed out because the current user lacks permission to modify it.
- Click Save, intercept the request, and change the Conf parameter value.
- The modification succeeds despite the lack of permission.
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.
Apache Airflow is a tool for scheduling data workflows. The website had a form where some fields were greyed out for users without permission, but the server did not check that permission when saving. So a user could change the hidden request and edit values they should not be able to.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.