Black Hat 2021: How isolated is your AWS cloud environment?
AWS services such as CloudTrail, AWS Config, and Serverless Repository could be manipulated to perform actions on an attacker's behalf, allowing unauthorised read or write access to other customers' resources. An attacker could exfiltrate data from highly-secured environments without leaving a trace.
Published on wiz.io
Over the past year, Wiz’s research team has discovered a range of new attack surfaces in the cloud. This week, we’re presenting two of them at Blackhat’s annual conference in Las Vegas.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the default resource policies allowed AWS services to access resources without restricting which customer's account was using the service, so the service could be tricked into acting on an attacker's behalf.
Impact
An attacker could read or write into other AWS customers' accounts, potentially exfiltrating data from highly-secured environments without leaving a trace; however, exploitation would be complex in the real world.
What the attacker needed
AWS account; Ability to configure services like CloudTrail; Target bucket trusts the service
The fix
AWS added conditions to the underlying resource policies to restrict access, but customers must update their own resource policies to fully remediate.
How it was found
- The attacker configures CloudTrail on their account to write logs into a target bucket in another customer's account.
- CloudTrail collects the logs and writes them into the customer's bucket, acting on the attacker's behalf.
- The bucket allows access because CloudTrail is trusted by the bucket.
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 write-up has not been written yet. The Original tab links to the source.
Cloud providers like AWS let customers give services permission to access their resources. The problem was that these permissions were too broad, so an attacker could trick a trusted service into accessing another customer's data. This means one customer could potentially read or write another customer's files, even though they should be isolated.
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.