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}}
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
- Query OpenStack to find a blacklisted server that was down.
- Log in to the BMC with previously cracked credentials.
- Access the KVM interface and edit GRUB to boot into a root shell.
- List network interfaces and analyse the server.
- Find NovaDB credentials in bash_history.
- 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.