Skip to content

LS-DB-001: Database URL

Severity MEDIUM
Blast radius Database or message broker compromise
Rotate at https://vasishta03.github.io/leakscan/rules/

If this leaks

Contains a username and password for a database, message broker, or search cluster, granting whatever access that account has, often full read/write.

What to do

  1. Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?i)(?:mongodb|postgres|mysql|redis|amqp|elasticsearch)://[^\s'\"]+:[^\s'\"@]+@

Suppress

On one line: # leakscan:ignore LS-DB-001. For the whole project:

disable_rules: [LS-DB-001]