How a badly configured DB allowed us to own an entire cloud of over 25K hosts (1/2)
An exposed PostgreSQL server with trivial credentials allowed the attackers to gain a shell and reach the cloud network, where they exploited insecure BMC/IPMI devices to take control of most of them.
medium.com
Published on medium.com
Link to part 2
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 weak credentials on an exposed PostgreSQL server and insecure BMC/IPMI configurations (cipher 0, default credentials, hash disclosure) allowed initial access and lateral movement.
Impact
The attackers gained full control of about 90% of the company's BMC devices, which could lead to control of the entire infrastructure.
What the attacker needed
Network access to the PostgreSQL server; weak database credentials; BMC devices with insecure configurations
How it was found
- Scan the network and find an exposed PostgreSQL server.
- Log in with trivial credentials (username Postgres, password admin).
- Use sqlmap to start a command shell on the database.
- Create and run a reverse shell payload to get a connection.
- Re-scan the network from the compromised host to discover BMC devices.
- Authenticate to BMC devices using cipher 0, default credentials, or hash disclosure and cracking.
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.
The attackers found a database server that was reachable from the network and protected by a very weak password. Once inside, they could reach the management interfaces of many physical servers, which were also poorly secured, and take them over.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.