SSRF Vulnerability through Connection test feature
An authenticated user with Connection edit privileges could abuse the connection test feature to make the server send requests to arbitrary destinations, including metadata endpoints, and to flood the server with requests causing a denial of service. The attacker could also see the plain response from the Slack API, making the SSRF non-blind.
Originally disclosed on HackerOne
- Triaged in 9 hours
- Fixed in 14 days
- Paid in 14 days
- Disclosed after 18 days
Summary by the program
Affected versions:
- Apache Airflow before 2.7.0
Description:
Apache Airflow, in versions prior to 2.7.0, contains a security vulnerability that can be exploited by an authenticated user possessing Connection edit privileges. This vulnerability allows the user to access connection information and exploit the test connection feature by sending many requests, leading to a denial of service (DoS) condition on the server. Furthermore, malicious actors can leverage this vulnerability to establish harmful connections with the server.
Users of Apache Airflow are strongly advised to upgrade to version 2.7.0 or newer to mitigate the risk associated with this vulnerability. Additionally, administrators are encouraged to review and adjust user permissions to restrict access to sensitive functionalities, reducing the attack surface.
The report
An SSRF (Server-Side Request Forgery) attack can potentially be executed through the connection test feature, specifically when interacting with the Slack API. This attack allows an attacker to see the plain response, providing them with information that can aid in exploiting the vulnerability, rather than relying solely on blind SSRF techniques.
Impact
This vulnerability allows the user to access connection information and exploit the test connection feature by sending many requests, leading to a denial of service (DoS) condition on the server. Furthermore, malicious actors can leverage this vulnerability to establish harmful connections with the server, hit on metadata endpoints.
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 connection test feature did not restrict which hosts or URLs could be contacted, allowing user-supplied connection details to direct server-side requests to arbitrary destinations.
Impact
An authenticated user with connection edit rights could access connection information, cause a denial of service by sending many requests, and make the server connect to harmful destinations such as metadata endpoints, with the Slack API case showing plain responses.
What the attacker needed
Authenticated user; Connection edit privileges
The fix
Upgrade to Apache Airflow 2.7.0 or newer, and restrict user permissions to sensitive functionalities.
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.
This is a server-side request forgery (SSRF) bug: the server can be tricked into making requests to places the attacker chooses, like internal services. Here, a logged-in user with permission to edit connections could use the 'test connection' button to send requests to internal addresses and see the responses, and also overload the server with many requests.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.