Skip to content
Info disclosure Disclosed report Intermediate

(Part 2) Non-Production API Endpoints for the Datazone Service Fail to Log to CloudTrail Resulting in Silent Permission Enumeration

Non-production API endpoints for the AWS Datazone service do not log API calls to CloudTrail, allowing an attacker with compromised credentials to enumerate permissions silently. The report demonstrates that calls to these endpoints return different error messages depending on whether the caller has permission, without generating CloudTrail logs.

nick_frichette_dd Follow

Originally disclosed on HackerOne

Medium 5.0 View original
  • Triaged in 12 days
  • Fixed in 36 days
  • Disclosed after 41 days

This is a continuation of a previous report which is now locked.

Hey friends, I'm terribly sorry to do this to you, but just minutes ago I found 3 more endpoints which exhibit the vulnerable behavior. They just came down through my certificate transparency monitoring so I think they were created in the past 24 hours. It is otherwise identical to that previous report.

  • ██████████
  • ████
  • █████
█████████ ~ % export AWS_PROFILE=admin
█████ ~ % aws datazone list-domains --endpoint-url ███

An error occurred (AccessDeniedException) when calling the ListDomains operation: Invalid endpoint or operation type
██████████ ~ % export AWS_PROFILE=noperm
██████████ ~ % aws datazone list-domains --endpoint-url ██████

An error occurred (AccessDeniedException) when calling the ListDomains operation: User: arn:aws:sts::█████████:assumed-role/noperm/noperm is not authorized to perform: datazone:ListDomains on resource: arn:aws:datazone:us-east-1:████:domain/*


██████████ ~ % export AWS_PROFILE=admin
███████ ~ % aws datazone list-domains --endpoint-url ████

An error occurred (AccessDeniedException) when calling the ListDomains operation:
███ ~ % export AWS_PROFILE=noperm
████ ~ % aws datazone list-domains --endpoint-url ███

An error occurred (AccessDeniedException) when calling the ListDomains operation: User: arn:aws:sts::███████:assumed-role/noperm/noperm is not authorized to perform: datazone:ListDomains on resource: arn:aws:datazone:us-east-1:███████:domain/*


██████ ~ % export AWS_PROFILE=admin
█████ ~ % aws datazone list-domains --endpoint-url ████

An error occurred (AccessDeniedException) when calling the ListDomains operation:
█████████ ~ % export AWS_PROFILE=noperm
██████ ~ % aws datazone list-domains --endpoint-url ████

An error occurred (AccessDeniedException) when calling the ListDomains operation: User: arn:aws:sts::█████:assumed-role/noperm/noperm is not authorized to perform: datazone:ListDomains on resource: arn:aws:datazone:us-east-1:████:domain/*

Impact

Summary: An adversary can enumerate permissions of compromised credentials for the datazone service without logging to CloudTrail.

The original report as published on HackerOne, by nick_frichette_dd. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

This is a follow-up to an earlier report on the AWS VDP, which the researcher notes is now locked. The subject is the Datazone service and the API endpoints that the AWS CLI calls when it talks to that service. The weakness is insufficient logging: certain non-production endpoints answer authorisation errors but do not write those calls to CloudTrail.

The researcher says that three more endpoints showing the same behaviour had appeared minutes before writing, picked up through certificate transparency monitoring, and that they were probably created within the past 24 hours. The report lists the three endpoints, but their hostnames are redacted in the disclosed text. It states that the behaviour is otherwise identical to the earlier report.

The test is a comparison between two profiles. admin is a profile with broad permissions; noperm is a profile whose role is not authorised to call datazone:ListDomains. The same CLI call is made against each endpoint with both profiles, using --endpoint-url to point the CLI at the candidate host.

Bash
export AWS_PROFILE=admin
aws datazone list-domains --endpoint-url [redacted]

With the admin profile, the endpoint returns an error whose message is Invalid endpoint or operation type, wrapped in an AccessDeniedException:

Text
An error occurred (AccessDeniedException) when calling the ListDomains operation: Invalid endpoint or operation type

With the noperm profile against the same endpoint, the error is different. It names the caller and the missing permission:

Text
An error occurred (AccessDeniedException) when calling the ListDomains operation: User: arn:aws:sts::[redacted]:assumed-role/noperm/noperm is not authorized to perform: datazone:ListDomains on resource: arn:aws:datazone:us-east-1:[redacted]:domain/*

The researcher repeats the pair of calls for each of the three endpoints. In the second and third pairs, the admin call returns the AccessDeniedException with no message text after the colon, while the noperm call again returns the full authorisation error naming the role and the missing action. The pattern is the same each time: the privileged profile gets a generic rejection, the unprivileged profile gets a specific one.

The report does not record a bounty, a fix or a response from the program. The platform records the severity as medium with a CVSS score of 5.0, and the report was disclosed on 8 April 2025.

Root cause

A possible cause is that these endpoints sit outside the normal request path that emits CloudTrail events. They still evaluate IAM policy and return the standard authorisation error, but the evaluation is not recorded. Because the error text differs depending on whether the caller holds the permission, the endpoint becomes an oracle: a caller can learn whether a given action is allowed without leaving an audit trail.

Impact

As the report puts it, an adversary can enumerate the permissions of compromised credentials for the Datazone service without the calls being logged to CloudTrail. The practical consequence is that the enumeration is silent: the account owner has no record to review, and the activity does not appear alongside the attacker's other API calls. The report does not describe any further exploitation beyond the enumeration itself.

How this kind of bug works

Cloud providers decide whether a request is allowed by evaluating policy, and they usually record the decision as an audit event. Two things can go wrong. First, some endpoints, often newer, internal or non-production ones, are deployed without the logging pipeline attached, so the decision happens but the event is never emitted. Second, the error returned to the caller can differ between "you are not allowed to do this" and "this endpoint or operation does not exist", which leaks the authorisation decision even when the call is denied.

Put together, an attacker holding low-privilege or stolen credentials can probe actions one by one. A specific authorisation error means the action exists and the caller lacks it; a generic or different error means something else. Either way the attacker learns the shape of the permissions, and if the endpoint does not log, the probing is invisible. The bug class is a logging gap combined with a response that is more informative than it needs to be.

How to test for it

  1. Identify candidate endpoints. Certificate transparency monitoring, DNS records and client configuration files often reveal hosts that are not in the public documentation. Newly issued certificates are a useful signal that an endpoint has just been deployed.
  2. Prepare two identities: one with broad permissions on the service, one without the specific action you want to test. Keep the rest of the configuration identical.
  3. Send the same API call to the candidate endpoint from both identities, overriding the endpoint URL so the SDK or CLI targets the host directly.
  4. Compare the responses. A positive result is a difference that reveals the authorisation decision, for example a message naming the missing action or resource for the unprivileged identity and a different error for the privileged one.
  5. Check the audit trail. After the calls, look in CloudTrail (or the equivalent audit log) for events corresponding to the requests. If the calls are absent while equivalent calls to the normal endpoint are recorded, you have the logging gap.

Common false positives: the endpoint may be a front end that rejects everything before policy evaluation, so both identities get the same error; the difference may come from the identity rather than the endpoint; or the events may be logged with a delay or under a different event source, so check before concluding they are missing. Also confirm that the unprivileged identity genuinely lacks the permission and that the privileged one genuinely has it, otherwise the comparison proves nothing.

How it is fixed

Hunting notes

This bug class tends to hide on non-production, staging and newly deployed endpoints, and on services that are new enough that their logging integration lags behind. Recon signals include fresh certificates for hosts under the provider's domain, hostnames referenced in SDK models or CLI configuration but absent from documentation, and endpoints that answer with provider-style errors rather than generic web errors.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

This report is a follow-up to an earlier one on the AWS Vulnerability Disclosure Program, which the researcher says is now locked. It concerns Datazone, an AWS service, and the API endpoints that the AWS command-line tool (the AWS CLI) contacts when it talks to that service. The weakness is insufficient logging: certain non-production endpoints answer authorisation errors but do not record those calls in CloudTrail, AWS's audit log of API activity.

A quick word on the pieces. An API endpoint is the address a program sends a request to, like the counter you walk up to in a shop. The AWS CLI is a text-based tool for sending those requests without clicking through a web console. CloudTrail is the logbook where AWS normally writes down who called which API and when. Non-production means an environment that is not the live service customers use, such as a test or staging setup.

The researcher says three more endpoints showing the same behaviour had appeared minutes before writing, picked up through certificate transparency monitoring, and were probably created within the past 24 hours. Certificate transparency is a public record of certificates issued for websites; watching it is a way to spot new hosts as soon as they appear. The report lists the three endpoints, but their hostnames are redacted in the disclosed text. It states that the behaviour is otherwise identical to the earlier report.

What the report shows

The test compares two identities. admin is a profile with broad permissions; noperm is a profile whose role is not authorised to call datazone:ListDomains. A profile here is a saved set of credentials the CLI uses, and a role is a set of permissions an identity can assume. The same CLI call is made against each endpoint with both profiles, using --endpoint-url to point the CLI at the candidate host instead of the normal one.

Bash
export AWS_PROFILE=admin
aws datazone list-domains --endpoint-url [redacted]

Line by line: export AWS_PROFILE=admin tells the CLI to use the admin credentials for the next commands. aws datazone list-domains asks the Datazone service to list domains, and --endpoint-url [redacted] sends that request to the candidate host rather than the standard address. This matters because it lets the researcher aim the same request at a host that is not in the public documentation.

With the admin profile, the endpoint returns an error whose message is Invalid endpoint or operation type, wrapped in an AccessDeniedException:

Text
An error occurred (AccessDeniedException) when calling the ListDomains operation: Invalid endpoint or operation type

With the noperm profile against the same endpoint, the error is different. It names the caller and the missing permission:

Text
An error occurred (AccessDeniedException) when calling the ListDomains operation: User: arn:aws:sts::[redacted]:assumed-role/noperm/noperm is not authorized to perform: datazone:ListDomains on resource: arn:aws:datazone:us-east-1:[redacted]:domain/*

Here arn:aws:sts::... is an Amazon Resource Name, a unique identifier for the caller, and the text after is not authorized to perform names the exact action that was refused. The researcher repeats the pair of calls for each of the three endpoints. In the second and third pairs, the admin call returns the AccessDeniedException with no message text after the colon, while the noperm call again returns the full authorisation error naming the role and the missing action. The pattern is the same each time: the privileged profile gets a generic rejection, the unprivileged profile gets a specific one.

The report does not record a bounty, a fix or a response from the program. The platform records the severity as medium with a CVSS score of 5.0, and the report was disclosed on 8 April 2025.

Why it matters

A possible cause is that these endpoints sit outside the normal request path that emits CloudTrail events. They still check permissions and return the standard authorisation error, but the check is not recorded. Because the error text differs depending on whether the caller holds the permission, the endpoint becomes an oracle: a caller can learn whether a given action is allowed without leaving an audit trail. As the report puts it, an adversary can enumerate the permissions of compromised credentials for the Datazone service without the calls being logged to CloudTrail. The practical consequence is that the enumeration is silent: the account owner has no record to review. The report does not describe any further exploitation beyond the enumeration itself.

In general, how this kind of bug works

Cloud providers decide whether a request is allowed by evaluating policy, and they usually record the decision as an audit event. Two things can go wrong. First, some endpoints, often newer, internal or non-production ones, are deployed without the logging pipeline attached, so the decision happens but the event is never emitted. Second, the error returned to the caller can differ between "you are not allowed to do this" and "this endpoint or operation does not exist", which leaks the authorisation decision even when the call is denied.

Put together, an attacker holding low-privilege or stolen credentials can probe actions one by one. A specific authorisation error means the action exists and the caller lacks it; a generic or different error means something else. Either way the attacker learns the shape of the permissions, and if the endpoint does not log, the probing is invisible. The bug class is a logging gap combined with a response that is more informative than it needs to be.

In general, how to test for it

  1. Identify candidate endpoints. Certificate transparency monitoring, DNS records and client configuration files often reveal hosts that are not in the public documentation. Newly issued certificates are a useful signal that an endpoint has just been deployed.
  2. Prepare two identities: one with broad permissions on the service, one without the specific action you want to test. Keep the rest of the configuration identical.
  3. Send the same API call to the candidate endpoint from both identities, overriding the endpoint URL so the SDK or CLI targets the host directly.
  4. Compare the responses. A positive result is a difference that reveals the authorisation decision, for example a message naming the missing action or resource for the unprivileged identity and a different error for the privileged one.
  5. Check the audit trail. After the calls, look in CloudTrail (or the equivalent audit log) for events corresponding to the requests. If the calls are absent while equivalent calls to the normal endpoint are recorded, you have the logging gap.

Common false positives: the endpoint may be a front end that rejects everything before policy evaluation, so both identities get the same error; the difference may come from the identity rather than the endpoint; or the events may be logged with a delay or under a different event source, so check before concluding they are missing. Also confirm that the unprivileged identity genuinely lacks the permission and that the privileged one genuinely has it, otherwise the comparison proves nothing.

In general, how it is fixed

In general, where to look

This bug class tends to hide on non-production, staging and newly deployed endpoints, and on services that are new enough that their logging integration lags behind. Recon signals include fresh certificates for hosts under the provider's domain, hostnames referenced in SDK models or CLI configuration but absent from documentation, and endpoints that answer with provider-style errors rather than generic web errors.

Glossary

  • API: a defined way for one program to ask another program to do something, like a menu of requests a service accepts.
  • API endpoint: the address a request is sent to.
  • AWS: Amazon Web Services, the cloud provider whose services are discussed here.
  • AWS CLI: the command-line tool for sending requests to AWS services.
  • CloudTrail: AWS's audit log that records API activity.
  • Certificate transparency: a public record of certificates issued for websites, useful for spotting new hosts.
  • Datazone: the AWS service whose endpoints are tested in this report.
  • Profile: a saved set of credentials the AWS CLI uses for its requests.
  • Role: a set of permissions an identity can assume.
  • IAM: AWS's system for defining who may do what.
  • ARN (Amazon Resource Name): a unique identifier for an AWS resource or caller.
  • Authorisation: the decision about whether a caller is allowed to perform an action.
  • AccessDeniedException: the error AWS returns when a request is refused.
  • Non-production: an environment that is not the live customer-facing service, such as a test or staging setup.
  • Oracle: a response that reveals information the caller should not be able to learn, here whether a permission is held.
  • Enumeration: probing one item at a time to build a list, here of permissions.
  • Audit trail: the record of who did what and when.
  • Insufficient logging: a weakness where activity happens but is not recorded.
  • CVSS: a standard scoring system for the severity of a vulnerability.
  • False positive: a finding that looks real but is not.

More by nick_frichette_dd

View all

22 more disclosed reports, best first.

More from AWS VDP

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.