Loading HuntDB...

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

Medium
A
AWS VDP
Submitted None

Vulnerability Details

Technical details and impact analysis

Insufficient Logging
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.

Report Details

Additional information and metadata

State

Closed

Substate

Resolved

Submitted

Weakness

Insufficient Logging