Non-Production API Endpoints for the Datazone Service Fail to Log to CloudTrail Resulting in Silent Permission Enumeration
The Datazone service exposes 44 non-production API endpoints that accept standard IAM credentials but do not write events to CloudTrail. An attacker holding stolen credentials could call these endpoints to work out which permissions the identity has without leaving the audit trail defenders rely on.
Originally disclosed on HackerOne
- Fixed in 13 days
- Disclosed after 19 days
Summary: Typically, when an adversary gains access to stolen AWS IAM credentials they will frequently test those credentials to see what access they have. They do this by performing API calls and seeing which succeed and which fail. There are even automated tools to make this process easier. For defenders and security professionals, this behavior serves as a golden opportunity for detection as it likely involves generating a large number of failed API call attempts. If an adversary could enumerate permissions without logging to CloudTrail, they could perform this activity invisibly.
There are many categories of CloudTrail bypass. The specific variant we will be focussed on in this report has been referred to as “non-production endpoint permission enumeration CloudTrail bypass”. If you would like to learn more about it, you can find more details here.
We have found 44 non-production endpoints for the Datazone service which can be used with standard IAM credentials, and do not log to CloudTrail. While it is good that they don’t appear to have access to customer partition data, they can still be used for permission enumeration without logging to CloudTrail.
AWS has previously stated that this type of vulnerability should be reported. Specifically, “For isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behavior, AWS considers the CloudTrail logging bypass of such endpoints also to be a security issue. If you find an API or APIs on an endpoint with these characteristics, please contact the AWS Security Team at ███████”.
As an aside, these endpoints appear to include AWS employee names or aliases in them. Presumably these are for test environments or something similar.
Description:
Steps To Reproduce:
To see an example of what should appear in CloudTrail when using normal production endpoints, perform the following AWS CLI operation with a sufficiently privileged IAM user or role:
aws datazone list-domains
Wait approximately 5-10 minutes and a log will appear in CloudTrail. Next, perform the following AWS CLI operation:
aws datazone list-domains --endpoint-url ██████
After waiting 5-10 minutes (or longer), notice that it does not generate a log in CloudTrail. An adversary can perform this operation and depending on the response of the API make a determination if an Identity they have compromised does, or does not have permission to perform the operation.
Supporting Material/References:
- Indicate the Amazon service or product that this vulnerability occurs on:
datazone
- What type of Amazon AWS account(s) is needed to verify or reproduce this vulnerability?:
Standard commercial partition account
- Estimated CVSS score and vector string:
4.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/CR:X/IR:X/AR:X
- Estimated CWEs (comma separated):
CWE-778: Insufficient Logging
- Have you already publicly disclosed any information on this issue? If so, when and where?:
This specific example? No. This general technique? Yes, a lot actually. I’ve blogged about it here and spoke about it at Black Hat USA █████ (██████) and fwd:cloudsec █████ (███████) [I have broken these links because HackerOne appeared to complain about them?]
Additionally, we have reported similar findings for different services:
- cloudwatch
- bedrock
- bedrock-agent
- ssm
The following is a list of endpoints we found that exhibited this behavior.
- ███████████████
- ███████████████████
- ██████████████
- █████████████
- ████████
- █████████████
- ███████████████
- █████████
- █████████████
- ███████████████
- ███████████████
- █████████
- ███████████████████
- ██████████
- ████████████
- ████████████████
- ████████████
- ████████████████
- ███████████████
- █████████████
- ████████████████
- ████████
- ██████████████
- █████████████
- █████████████
- ████████
- ███████
- ██████████████
- ████████
- ██████████████████
- ██████████████
- █████████
- ██████████████
- ███████████████
- ████████████
- ████████████████████
- ███████
- ██████████████
- █████████████
- ████████████
- ██████████
- ██████████████████
- ████████████
- ██████████
Impact
Summary:
An adversary can enumerate permissions of compromised credentials for the datazone service without logging to CloudTrail.
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 non-production Datazone endpoints were deployed without CloudTrail data-plane or management-event logging enabled, while still enforcing normal IAM authorisation.
Impact
An attacker with stolen IAM credentials could enumerate Datazone permissions without appearing in CloudTrail, though the endpoints do not appear to reach customer partition data.
What the attacker needed
Stolen or low-privilege IAM credentials; knowledge of a non-production endpoint address; AWS CLI or API access
The fix
The endpoints should either log calls made with normal credentials to CloudTrail or not be callable with standard IAM credentials.
How it was found
- Call the normal Datazone list-domains operation with a privileged identity and wait for the CloudTrail entry.
- Call the same operation again but point the CLI at one of the non-production endpoint addresses.
- Wait several minutes and observe that no CloudTrail entry is produced for the second call.
- Use the success or failure response to infer whether the identity holds the 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.
CloudTrail is AWS's record of who called which API, and defenders watch it for signs of stolen keys being tested. Some test-only endpoints of the Datazone service answer normal permission checks but never write that record. So someone with a stolen key could quietly probe what it is allowed to do and stay invisible in the logs.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.