Skip to content
Info disclosure Disclosed report Intermediate

Non-Production API Endpoints for the Route 53 Service Fail to Log to CloudTrail Resulting in Silent Permission Enumeration

Two non-production API endpoints for Amazon Route 53 do not log to CloudTrail when called with standard IAM credentials. An attacker with stolen credentials could use these endpoints to test permissions without generating CloudTrail logs, making the activity harder to detect.

nick_frichette_dd Follow

Originally disclosed on HackerOne

  • Triaged in 11 days
  • Fixed in 24 days
  • Disclosed after 43 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 2 non-production endpoints for the Amazon Route 53 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 [email protected]”.

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 route53domains list-domains

Wait approximately 5-10 minutes and a log will appear in CloudTrail. Next, perform the following AWS CLI operation:

aws route53domains 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:

route53domains

  • 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 2023 (███) and fwd:cloudsec 2023 (█████████) [I have broken these links because HackerOne appeared to complain about them?]

Additionally, we have reported similar findings for different services:

  • redshift-data
  • neptune-graph
  • lakeformation and m2
  • health
  • glue
  • globalaccelerator
  • forecast
  • events
  • elasticache
  • datazone part 2
  • docdb-elastic
  • devicefarm
  • datazone
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The following is the list of endpoints we found that exhibited this behavior.:

  • ███
  • ████████

Please note: We follow an industry standard 90-day vulnerability disclosure policy. You can read more about our policy here.

Impact

Summary:

An adversary can enumerate permissions of compromised credentials for the redshift-data 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Amazon Route 53 is AWS's DNS and domain registration service. The route53domains API is the part of it that deals with domain registration operations, and list-domains is the call that returns the domains in an account. Like most AWS APIs, calls to it are expected to appear in CloudTrail, AWS's audit log, so that defenders can see who called what and when.

This report is about a class of CloudTrail bypass that the researcher calls "non-production endpoint permission enumeration CloudTrail bypass". The idea is that some AWS endpoints are not the production ones, are still callable with ordinary IAM credentials, behave normally with respect to IAM permissions, but do not write events to CloudTrail. An attacker holding stolen IAM credentials can call them to learn what those credentials are allowed to do, and no audit trail is produced.

The researcher found two such endpoints for the Amazon Route 53 service. They do not appear to give access to customer partition data, but they can still be used for permission enumeration without logging.

Setup

To reproduce, you need:

  • A standard commercial partition AWS account.
  • A sufficiently privileged IAM user or role for the first, control step.
  • The AWS CLI, since the reproduction is done with aws commands.
  • Patience: CloudTrail events for these calls take roughly 5 to 10 minutes to appear.

The researcher notes that AWS has previously stated this type of issue should be reported. The quoted position is that for isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behaviour, AWS considers the CloudTrail logging bypass to be a security issue, and asks to be contacted at [redacted]

Finding it

The starting observation is about attacker behaviour. When an adversary gets hold of stolen AWS IAM credentials, they commonly test them to see what access they have, by making API calls and watching which succeed and which fail. Automated tools exist to make this easier. For defenders this is a detection opportunity, because the activity tends to produce a large number of failed API call attempts in the logs. If an adversary can enumerate permissions without anything reaching CloudTrail, that opportunity disappears and the activity is invisible.

The researcher's specific variant is the non-production endpoint one: find an endpoint that answers to normal credentials, enforces IAM permissions as usual, and simply does not log. The Route 53 finding is two endpoints of that kind.

Exploitation

Step 1: confirm the production endpoint logs

With a sufficiently privileged IAM user or role, run the normal call:

Bash
aws route53domains list-domains

Wait approximately 5 to 10 minutes. A log entry appears in CloudTrail. This establishes the baseline: the operation is auditable when it goes to the production endpoint.

Step 2: repeat the same call against the non-production endpoint

Bash
aws route53domains list-domains --endpoint-url ███████

The only change is --endpoint-url, which redirects the CLI from the production endpoint to one of the two non-production endpoints the researcher identified. The credentials and the operation are the same as in step 1.

Step 3: observe the absence of a log

Wait 5 to 10 minutes, or longer. No log entry appears in CloudTrail for the call made in step 2.

The consequence is that an adversary can make this call and, from the response of the API, determine whether a compromised identity does or does not have permission to perform the operation. The permission check still happens; only the record of it is missing.

Root cause

The report does not describe the implementation behind the endpoints. What it establishes is the behaviour: two non-production Route 53 endpoints accept standard IAM credentials, apply normal IAM permission behaviour, and do not emit CloudTrail events, while the production endpoint for the same operation does. The logging gap is in the non-production endpoints themselves, not in the caller's configuration: the same CLI, the same credentials and the same operation produce an event against one endpoint and nothing against the other.

Existing defences do not help here because CloudTrail is the defence. Detection of permission enumeration depends on seeing the failed and successful calls; if the endpoint does not write them, there is nothing for a detection rule to match. The researcher also notes that the endpoints do not appear to expose customer partition data, which limits what can be done with them beyond enumeration.

Impact

An adversary with compromised IAM credentials can enumerate the permissions attached to those credentials against the Route 53 service without generating CloudTrail events. The information gained is the same kind that ordinary enumeration yields, success or failure per operation, but the activity leaves no audit record, so the detection opportunity that failed-call bursts normally provide is lost.

The researcher's own CVSS 3.1 estimate is 4.3, with the vector:

Text
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

The weakness is classified as CWE-778: Insufficient Logging. The impact is bounded by the fact that the endpoints do not appear to reach customer partition data; the issue is the silent enumeration, not data access.

Fix

The report does not state what AWS changed in response.

Variants to test

The researcher reports the same pattern for a long list of other AWS services, which is the clearest indication of where to look next:

  • redshift-data
  • neptune-graph
  • lakeformation and m2
  • health
  • glue
  • globalaccelerator
  • forecast
  • events
  • elasticache
  • datazone (reported twice, the second as "part 2")
  • docdb-elastic
  • devicefarm
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The report lists these services as having similar findings, without describing how each was tested. A positive result is a call that succeeds or fails according to IAM permissions as normal, with no corresponding CloudTrail event after a wait well beyond the normal delay.

Hunting notes

The confirmation is always comparative: the same CLI operation, same credentials, two endpoints, one logged and one not. Because CloudTrail delivery is not instant, the control call in step 1 matters; without it, an absent event proves nothing.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Amazon Web Services (AWS) is a cloud provider: companies rent computers, storage and services from it instead of running their own. Every customer of AWS has an account, and inside that account there are users and roles. A user or role is a kind of digital identity, and each one is given permissions: a list of what it is allowed to do and what it is not allowed to do.

When someone steals the keys to such an identity (the credentials, which work like a username and password for programs), the first thing they usually want to know is: what can I do with this? They find out by trying things. They ask AWS to perform an action and watch whether the answer is "yes, done" or "no, not allowed". This is called permission enumeration: going through a list of actions one by one to map out what the stolen identity can reach.

AWS keeps an audit log called CloudTrail. Every time someone asks AWS to do something, CloudTrail is supposed to write down who asked, what they asked for, and when. Defenders (the people protecting the account) read CloudTrail to spot suspicious behaviour. A burst of failed attempts in CloudTrail is a classic warning sign that someone is testing stolen credentials.

The researcher found that two alternative addresses (endpoints) for the Route 53 service accept the same credentials, check permissions in the normal way, but never write anything to CloudTrail. So an attacker can test what a stolen identity is allowed to do, and the defenders see nothing at all. The report calls this a "non-production endpoint permission enumeration CloudTrail bypass".

The service involved

Amazon Route 53 is AWS's service for two related things: running DNS (the system that turns a name like example.com into the address of a server) and registering domain names. The part of it used here is route53domains, which handles domain registration operations. The specific operation is list-domains, which returns the list of domains held in an account.

Like most AWS operations, list-domains is expected to show up in CloudTrail. That expectation is the whole point of the report: if the same operation can be performed somewhere that does not log, the audit trail has a hole.

What an API and an endpoint are

An API (Application Programming Interface) is the set of requests a service accepts. A simple comparison: a restaurant menu. You do not walk into the kitchen; you order from the menu, and the kitchen either serves the dish or says they are out of it. An API is the menu of things you can ask a computer service to do.

An endpoint is the address where those requests are sent. Staying with the restaurant: the menu is the API, and the address of the restaurant is the endpoint. Normally there is one official address. The finding here is that there are other addresses that answer the same menu, and those other addresses do not keep a record of who ordered what.

What the vulnerability class means

The class is called "insufficient logging": the system does the work correctly but fails to record that it did. The report classifies it as CWE-778, which is the standard catalogue entry for exactly that problem.

Why does missing logging matter if nothing bad is actually done? Because logging is how defenders notice that something bad is being attempted. If an attacker can quietly test a hundred actions, they learn exactly which ones to use later, and nobody gets a chance to react.

Why this is worth reporting

The researcher quotes AWS's own published position: for isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behaviour, AWS considers the CloudTrail logging bypass to be a security issue, and asks to be contacted at [redacted] In other words, AWS has said in advance that this kind of finding is in scope, which is why the report was filed.

What you need to reproduce it

  1. A standard commercial partition AWS account. AWS runs several separate installations (partitions) of its cloud; the commercial one is the ordinary public one most people use.
  2. A sufficiently privileged IAM user or role for the first step. "Privileged" means it has enough permissions to perform the operation being tested.
  3. The AWS CLI installed. The CLI (Command Line Interface) is a program you run in a terminal, where you type commands instead of clicking buttons. The reproduction is done entirely with aws commands.
  4. Patience. CloudTrail does not record events instantly; the report says entries take roughly 5 to 10 minutes to appear.

Step 1: confirm that the normal address logs

First, run the operation against the ordinary, production endpoint, using a privileged identity:

Bash
aws route53domains list-domains

Line by line:

  • aws is the name of the AWS CLI program. Everything after it is an instruction to that program.
  • route53domains is the service being addressed, the domain registration part of Route 53.
  • list-domains is the operation: return the domains in the account.

There is no address in this command, because the CLI already knows the official production address for route53domains and uses it by default. This step is the control: it proves that the operation is auditable when it goes to the normal place.

Then wait approximately 5 to 10 minutes. A log entry appears in CloudTrail. That entry is the baseline against which the next step is compared.

Step 2: repeat the same call against the other address

Now run the same operation, but tell the CLI to send it somewhere else:

Bash
aws route53domains list-domains --endpoint-url ███████

Line by line:

  • aws route53domains list-domains is exactly the same as in step 1: same program, same service, same operation.
  • --endpoint-url is an option that overrides the address the CLI would normally use. Instead of the official production address, the request goes to the address given after it.
  • ████████ stands for one of the two non-production endpoints the researcher identified. The actual address is redacted in the report.

Nothing else changes. The credentials are the same, the operation is the same, the permission check is the same. The only difference is where the request is delivered. That is deliberate: it isolates the address as the single variable, so any difference in logging can only be caused by the address.

Step 3: notice that nothing was logged

Wait 5 to 10 minutes, or longer. No log entry appears in CloudTrail for the call made in step 2.

This is the finding. The permission check still happened: the API answered, and the answer depended on whether the identity was allowed to perform the operation. But the record of the call is missing. An adversary can therefore make this call and, from the response, work out whether a compromised identity has permission to perform the operation, without leaving a trace in the audit log.

Why it happens

The report does not describe how the endpoints are implemented internally. What it establishes is the observable behaviour: two non-production Route 53 endpoints accept standard IAM credentials, apply normal IAM permission behaviour, and do not emit CloudTrail events, while the production endpoint for the same operation does.

The gap is in the endpoints themselves, not in the caller's setup. The same CLI, the same credentials and the same operation produce an event against one address and nothing against the other. That comparison is what makes the conclusion solid: if the caller's configuration were at fault, step 1 would have failed to log as well.

Why existing defences do not catch it

CloudTrail is the defence. Detecting permission enumeration means looking for patterns in the log: many failed calls in a short time, unusual operations, calls from unexpected places. If the endpoint never writes the calls, there is nothing for a detection rule to match. No amount of clever analysis of an empty log will reveal activity that was never recorded.

The researcher also notes that the endpoints do not appear to expose customer partition data. That limits what an attacker can do with them beyond enumeration: the issue is the silent mapping of permissions, not access to data.

Impact

An adversary holding compromised IAM credentials can enumerate the permissions attached to those credentials against the Route 53 service without generating CloudTrail events. The information gained is the same kind that ordinary enumeration yields, success or failure per operation, but the activity leaves no audit record, so the detection opportunity that bursts of failed calls normally provide is lost.

The researcher's own CVSS 3.1 estimate is 4.3. CVSS is a standard scoring system for vulnerabilities; 4.3 out of 10 sits in the medium band. The vector string is:

Text
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

Each part of that string is a shorthand answer to a question about the vulnerability:

  • AV:N means the attack can be carried out over the network, not only by someone sitting at the machine.
  • AC:L means the attack is easy: no special conditions are needed.
  • PR:L means the attacker needs some privileges, in this case the stolen credentials.
  • UI:N means no action by a real user is required.
  • S:U means the impact stays within the same security scope.
  • C:L means limited loss of confidentiality: the attacker learns about permissions.
  • I:N and A:N mean no loss of integrity and no loss of availability: nothing is changed or taken down.
  • The CR, IR and AR values are marked X, meaning not defined.

The weakness is classified as CWE-778: Insufficient Logging. The impact is bounded by the fact that the endpoints do not appear to reach customer partition data; the issue is the silent enumeration, not data access.

Fix

The report does not state what AWS changed in response.

Other services with the same pattern

The researcher reports the same pattern for a long list of other AWS services. This is the clearest indication of where to look next:

  • redshift-data
  • neptune-graph
  • lakeformation and m2
  • health
  • glue
  • globalaccelerator
  • forecast
  • events
  • elasticache
  • datazone (reported twice, the second as "part 2")
  • docdb-elastic
  • devicefarm
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The report lists these services as having similar findings, without describing how each was tested. A positive result is a call that succeeds or fails according to IAM permissions as normal, with no corresponding CloudTrail event after a wait well beyond the normal delay.

How to hunt for it

Recon here means the information-gathering phase, before any exploitation.

The confirmation is always comparative: the same CLI operation, same credentials, two endpoints, one logged and one not. Because CloudTrail delivery is not instant, the control call in step 1 matters. Without it, an absent event proves nothing: you would not know whether the endpoint failed to log or whether the log simply had not arrived yet.

Glossary

  • AWS: Amazon Web Services, a cloud provider that rents computing services to customers.
  • IAM: Identity and Access Management, the AWS system that defines users, roles and what each is allowed to do.
  • IAM user or role: a digital identity inside an AWS account, with its own credentials and permissions.
  • Credentials: the secret keys a program uses to prove which identity it is, roughly like a username and password for software.
  • Permission: an allowance to perform a particular action, such as listing domains.
  • Permission enumeration: trying actions one by one to discover which ones an identity is allowed to perform.
  • CloudTrail: the AWS audit log that records who called which operation and when.
  • Audit log: a record of activity kept so that it can be reviewed later.
  • Endpoint: the address to which a request is sent.
  • Non-production endpoint: an address that is not the official, documented one for a service but still answers requests.
  • API: the set of requests a service accepts, like a menu of available operations.
  • AWS CLI: the command line program used to send requests to AWS by typing commands.
  • --endpoint-url: a CLI option that overrides the address a request is sent to.
  • Route 53: the AWS service for DNS and domain registration.
  • route53domains: the part of Route 53 that handles domain registration operations.
  • list-domains: the operation that returns the domains held in an account.
  • DNS: the system that translates names like example.com into server addresses.
  • Partition: one of several separate installations of AWS's cloud; the commercial partition is the ordinary public one.
  • Control step: a baseline test whose known result lets you interpret a later test.
  • Bypass: a way of avoiding a protection, here the audit log.
  • Insufficient logging (CWE-778): a weakness where an action happens but is not recorded.
  • CVSS: a standard scoring system for rating the severity of vulnerabilities, from 0 to 10.
  • Vector string: the shorthand notation that records how a CVSS score was calculated.
  • Recon: the information-gathering phase before an attack.
  • Detection rule: a check that looks for a known suspicious pattern in logs.

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.