Tuesday, July 2, 2024

Session Takeover Bug in AWS Apache Airflow Reveals Bigger Cloud Threat

A vulnerability in Amazon Net Companies’ (AWS) Managed Workflows for Apache Airflow (MWAA) may have allowed hackers to entry customers’ periods, carry out distant code execution (RCE), transfer laterally inside enterprise cloud environments, and extra. However all that’s only a manifestation of a a lot deeper-rooted misconfiguration risk researchers recognized throughout AWS, Microsoft Azure, and Google Cloud.

The problem probably uncovered a large swath of companies. Apache Airflow, invented at Airbnb in 2014, is an open supply workflow administration platform with round 12 million downloads per thirty days in line with most estimates. Greater than half of Airflow’s customers are information engineers — the remaining embody architects, builders, DevOps specialists, and information engineers — and two-thirds work at firms with not less than 200 staff.

In a press release to Darkish Studying, Patrick Neighorn, an AWS spokesperson, emphasised that “AWS deployed a repair for these findings in September 2023, so prospects working the present model of Amazon Managed Workflows for Apache Airflow (MWAA) usually are not impacted. We knowledgeable affected prospects final 12 months and inspired them to replace their environments by way of the AWS Console, API, or the AWS Command Line Interface. Earlier than we resolved the matter, benefiting from the findings was a fancy course of that will have required social engineering.”

The problem in MWAA started with its single sign-on (SSO) function, which did not refresh session cookies upon authentication, permitting any attacker waltzing by to intercept the session with out authenticating.

Totally different providers provided by main cloud suppliers typically share a site. In AWS, for instance, the Easy Storage Service (S3), API Gateway, and extra share the identical guardian. The issue is that some property permit for client-side code execution.

“For instance, the attacker’s area is ‘attacker.shared.com’ and the sufferer’s area is ‘sufferer.shared.com,'” explains Liv Matan, senior safety researcher at Tenable and creator of the report. “Each web sites are hosted below a shared guardian area named ‘shared’. With that in thoughts, an attacker that clearly controls their very own web site can run JavaScript code and lure victims to that harmful web site. The sufferer will go to the attacker’s web site, and the JavaScript code will set a cookie which is scoped to the shared guardian area, ‘shared.com.’ The cookie will then be accessible for each of the domains.”

Scoping the cookie to the shared guardian area is named “cookie tossing.” Right here, it allows our hypothetical attacker to entry a sufferer’s Airflow Net panel and, amongst different issues, probably execute code on the underlying occasion. That is particularly regarding, Matan notes, since “Apache Airflow is commonly used to orchestrate information pipelines that course of delicate company information. Inputs to those pipelines could embody buyer info, monetary information, or proprietary enterprise information. Likewise, the outputs of information pipelines could include processed information that’s delicate or confidential.”

This newest discovery is not nearly MWAA, although. Such an attacker may use this cookie-tossing exploit to pivot to parallel cloud providers within the sufferer’s surroundings, resulting in additional information breaches and abuse of company sources. So at a extra basic degree, this could possibly be a difficulty throughout Amazon, Google, and Microsoft’s cloud platforms.

Amazon has since addressed its vulnerability, and it and Microsoft have carried out a structural repair for the underlying shared area situation. Google has not, nevertheless. Darkish Studying is awaiting additional remark from Google’s cloud group.

Initially created by Mozilla to assist safety and privateness in Firefox, the Public Suffix Checklist (PSL) has rapidly developed right into a ubiquitous, community-managed record of guidelines for all of the area identify suffixes with which one can register a web site. This consists of the overall .com, but in addition .co.uk, .information, and so forth, plus non-public suffixes like github.io. A duplicate of the record is built-in into all trendy browsers.

Cloud service suppliers can thus clear up their guardian area situation with some area structure restructuring, or they’ll simply add domains of cloud providers that share a website and contain totally different prospects to the PSL. After that, browsers are capable of acknowledge them as a public suffix and account for cookie tossing.

AWS and Azure have just lately executed simply that, although as talked about, Google Cloud has not. In line with Tenable, Google stated that “it doesn’t contemplate the problem ‘extreme sufficient’ to trace it as a safety bug.”

Matan laments, “Cloud prospects are on the mercy of their cloud supplier to behave on this preventive method. On the similar time, cloud prospects have the accountability of securing their Net functions within the cloud to reduce dangers.”

Additional, “test if the service area you might be utilizing is current within the PSL,” he advises. “If not, for AppSec engineers: Observe the dangers talked about and take care by assuming each same-site request is untrustworthy.”



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles