Skip to content
Leaked secrets Disclosed report Beginner

Leaked Credentials MySQL and SMPT credentials exposed on GitHub

Plaintext SMTP and MySQL credentials were hardcoded in configuration and environment files and were accessible without authentication. An attacker could use them to access email and database services, potentially exposing, modifying or deleting data.

Sharat_Chandra Follow

Originally disclosed on Bugcrowd

  • Accepted in 16 hours
  • Fixed in 8 months
  • Disclosed after 12 months

Summary by Sharat_Chandra

Title: Hardcoded plaintext credentials exposed in application configuration

Summary: During security research, I discovered valid plaintext credentials for SMTP and MySQL services hardcoded in configuration and environment files. The credentials were accessible without authentication.

Impact: Exposed secrets can allow unauthorized access to email and database services, which could lead to data exposure, modification, or deletion, as well as reputational damage. Severity depends on the sensitivity of the data those services handle.

Root cause: Secrets were stored directly in configuration files rather than in a secrets manager or in environment-specific configuration excluded from version control.

Remediation: Rotate all exposed credentials, remove them from the affected files and any version history, and use secret-scanning tools or pre-commit hooks to prevent recurrence.

The original report as published on Bugcrowd, by Sharat_Chandra. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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

Secrets were stored directly in configuration files rather than in a secrets manager or in environment-specific configuration excluded from version control.

Impact

Exposed secrets could allow unauthorised access to email and database services, which could lead to data exposure, modification or deletion, and reputational damage.

What the attacker needed

None

The fix

Rotate all exposed credentials, remove them from the affected files and any version history, and use secret-scanning tools or pre-commit hooks to prevent recurrence.

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.

Configuration files often hold the passwords an application uses to talk to its database or email server. Here those passwords were written in plain text and could be read by anyone, without logging in. That means a stranger could connect to the same database or email service and read or change data.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.