Skip to content
Info disclosure Disclosed report Intermediate

Amazon Kendra Intelligent Ranking Service Reporting "AWS Internal" for CloudTrail Events Generated from FIPS Endpoints

Four Kendra Intelligent Ranking API endpoints, all FIPS endpoints, logged CloudTrail events with the user-agent and network information shown as 'AWS Internal' instead of the caller's real details. An attacker calling these endpoints could hide their source IP address and operating system information from defenders reviewing CloudTrail.

nick_frichette_dd Follow

Originally disclosed on HackerOne

Medium 5.0 View original
  • Triaged in 6 days
  • Fixed in 57 days
  • Disclosed after 2 months

Description: When performing calls to the AWS API, AWS CloudTrail is responsible for logging that API activity for customers. These CloudTrail event logs contain information about the API call, when it was performed, by whom, etc.

We have found 4 API endpoints for the Kendra Intelligent Ranking service that incorrectly report the user-agent and network information as "AWS Internal". As a result of this, an adversary can perform API calls using these endpoints and evade the logging of their IP address/operating system information.

As a coincidence, these 4 API endpoints are all FIPS endpoints. This is similar to a previous bug we submitted for the Comprehend Medical Service leading me to believe this may be a wider issue across a small number of services.

Steps To Reproduce:

First, as a base line, perform the following AWS CLI command:

aws kendra-ranking list-rescore-execution-████ans

Wait 5-10 minutes for this event to appear in CloudTrail. From here, inspect the CloudTrail log and see that the UserAgent field is populated, as well as the source IP address.

Next, run the following command:

aws kendra-ranking list-rescore-execution-███ans --endpoint-url ████████

Wait 5-10 minutes for this event to appear in CloudTrail. From here, inspect the CloudTrail log and see that the UserAgent field and network information is "AWS Internal". Because of this endpoint we used, we cannot see the request information which may degrade a defenders ability to track down an adversary.

List of endpoints exhibiting this behavior

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

███████: An adversary can use these endpoints to avoid disclosing their source IP address or user agent information to the victim.

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.

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 something about these FIPS endpoints causes the original client user-agent and network details to be replaced with 'AWS Internal' before CloudTrail records them.

Impact

An adversary could use these endpoints to avoid disclosing their source IP address or user agent, degrading a defender's ability to trace them; the issue is limited to logging fidelity, not to unauthorised access.

What the attacker needed

AWS account with API access; Use of the FIPS endpoint URLs

How it was found

  1. Run a normal Kendra Intelligent Ranking CLI call as a baseline.
  2. Wait for the event to appear in CloudTrail and confirm the user-agent and source IP are populated.
  3. Repeat the same call but point it at one of the FIPS endpoint URLs.
  4. Wait for the new event and observe that the user-agent and network information now read 'AWS Internal'.

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 activity log: it records who called which API, from where, and with what software. Normally it shows the caller's IP address and user-agent (the string identifying the client software). Here, calls made through certain special endpoints produced log entries that just said 'AWS Internal', so anyone investigating an incident would lose the clue about where the request came from.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should 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.