Skip to content
Misconfiguration Write-up Advanced

How a badly configured DB allowed us to own an entire cloud of over 25K hosts (part 2/2)

The attackers used previously obtained BMC credentials to access a server's KVM console, boot into a root shell, and find NovaDB credentials in bash history. With these credentials they accessed the main OpenStack database and its backups, allowing them to corrupt the entire cloud and shut down operations.

medium.com

Published on medium.com

{{media:0}}

Security Shenanigans, on medium.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 root cause was a chain of weaknesses: reused and trivial credentials, missing network segmentation, and insecure backup storage, which together allowed full cloud compromise.

Impact

The attackers could corrupt the NovaDB database to stop the entire cloud environment and also compromise backups, making recovery difficult; the company later restricted BMC access to a monitored IP whitelist.

What the attacker needed

BMC credentials from part 1; Access to BMC network; A blacklisted server that is down

The fix

The company placed BMC-enabled servers on a different network segment with a restricted and monitored access IP whitelist.

How it was found

  1. Query OpenStack to find a blacklisted server that was down.
  2. Log in to the BMC with previously cracked credentials.
  3. Access the KVM interface and edit GRUB to boot into a root shell.
  4. List network interfaces and analyse the server.
  5. Find NovaDB credentials in bash_history.
  6. Log in to NovaDB and verify administrator access.

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.

This is part two of a story. The attackers already had passwords for the management chips (BMC) that control servers. They used one chip to pretend to sit at the server's keyboard, restarted it into a special mode that gives full control, and then found the password for the main cloud database in a log file. With that password they could break the whole cloud.

What is Misconfiguration?

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

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.