Skip to content
Misconfiguration Write-up Intermediate

I Spied on Hackers So You Don’t Have To: How Dark Web Chatter Led to a $Cloud Misconfiguration Bug 🕵️‍♂️💸

An exposed OpenSearch cluster contained application logs with AWS credentials, and those credentials had full S3 access, allowing an attacker to read sensitive configuration files. The text claims the credentials were valid and provided access to buckets containing database passwords, API keys, and employee data.

iski Follow

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the OpenSearch cluster was misconfigured to allow public unauthenticated access, and application logs inadvertently contained AWS credentials that had overly broad permissions.

Impact

The exposed logs and credentials could allow an attacker to read sensitive configuration files, including database passwords, API keys, and employee data.

What the attacker needed

Access to dark web forum; no authentication on OpenSearch; credentials in logs

The fix

The text states that the security team revoked the credentials and secured the OpenSearch cluster.

How it was found

  1. Verify the S3 bucket is open using a curl command.
  2. Enumerate subdomains with subfinder, amass, and assetfinder, then resolve them with puredns.
  3. Fuzz resolved subdomains with ffuf to find internal hosts.
  4. Use cloud_enum to discover cloud resources, finding an exposed OpenSearch endpoint.
  5. Query the OpenSearch indices and search application logs for AWS credentials.
  6. Configure AWS CLI with extracted credentials and list S3 buckets, then download contents of a sensitive bucket.

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 write-up has not been written yet. The Original tab links to the source.

An OpenSearch cluster is a search and analytics engine often used to store logs. If it is left without authentication, anyone can read the logs. Those logs contained AWS access keys, which are like passwords for cloud services, and with them the attacker could access storage buckets holding sensitive files.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.