ZyVOP Logo
Content That Connects
SeriesAI NewsWhy ZyVOPJoin Discord
ZyVOP Logo
Content That Connects

Empowering developers and creators with cutting-edge insights, comprehensive tutorials, and innovative solutions for the digital future.

Content

  • Categories
  • Tags
  • Badges
  • Leaderboard
  • Write Article
  • Newsletter

Company

  • About Us
  • Why ZyVOP
  • API Documentation
  • Write for Us
  • Contact

Connect

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DMCA Policy
  • Code of Conduct

© 2026 ZyVOP. Crafted with care for the developer community.

Made with ❤️ by the ZyVOP team
All systems operational
HomeAWS: Leveraging Leaked Credentials for Pwnage

AWS: Leveraging Leaked Credentials for Pwnage

I0veD
I0veDcyber security researcher
August 12, 2026
1 min read
AWS: Leveraging Leaked Credentials for Pwnage
Article

Question to know the project‣There is a leak of .env file, which contains aksk and database keys.

Image


With this information:

We can have a way

1.aws sts get-caller-identity gets the account id

2. Check to see if the database credentials referencing the user are also valid AWS IAM credentials


Running the following command returns account ID 427648302155.

aws sts get-access-key-info --access-key-id AKIAWHEOTHRFVXYV44WP

The login URL for the IAM users in this account will behttps://427648302155.signin.aws.amazon.com/console。

Image

Attempt to log in as IAM user with password successful! Below we see . AWS Secrets Manager is a secret management service that helps secure access to applications, services, and other resources. The service allows easy rotation, management, and retrieval of database credentials, API keys, and other keys throughout their lifecycle.joseDevOps0001!Recently visitedSecrets Manager

Image

Clicking on the service we see two secrets related to the employee database. We are denied access to admin secret, let's check another one. We got all the details needed to connect to the RDS database.

Image

Running the following command in the terminal gives us access.

mysql -h employees.cwqkzlyzmm5z.us-east-1.rds.amazonaws.com -P 3306 -D employees -u reports -p

When executed, we see the following output.show databases;

Image

Issuing then returns the list of tables below.use employeesshow tables;

Image

Once run, we retrieve employee data including their full name, email address, phone number, and salary. The dependents table also lists the people who are dependent on them, which is very sensitive information.select * from employees;

Image


I0veD

I0veD

cyber security researcher

Cloud Native & AI Sec Researcher Red Team | BAS | K8s | Evasion 20+ CVEs | CNVD/CNNVD Contributor 🛡️ AI-Driven Blue Team 👇 Works

Comments (0)

Login to post a comment.