Skip to content
Leaked secrets Write-up Beginner

I Got ROOT Access to a Hosting Provider Without a Single Exploit

A hosting provider's root SSH credentials were found in an old stealer log archive after enumerating subdomains and mapping node IPs. The attacker used the leaked credentials to log in as root and access sensitive data including API tokens, SSH keys, and a database dump.

kkonann Follow

Published on kkonann.medium.com

Each pointed to a unique IP — likely backend nodes. I collected the full list of IPs and wondered:

KonaN, on kkonann.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 SSH credentials were stolen by malware on an administrator's device and never rotated, allowing anyone with the leaked log to log in.

Impact

An attacker with the leaked credentials could have ransomed hosted bots and servers, wiped client data, abused Discord bot tokens, and moved laterally across nodes undetected.

What the attacker needed

Access to breach data search engine; Leaked SSH credentials in stealer log; No MFA or IP restriction on SSH

The fix

The provider should rotate all SSH credentials and keys, enable MFA, restrict SSH access by IP, and monitor breach data for exposed credentials.

How it was found

  1. Enumerate subdomains to find node hostnames like node1.target.com.
  2. Resolve each node to its IP address.
  3. Search the IPs on intelx.io and find an old stealer log containing SSH credentials.
  4. Try each SSH credential against the nodes until one grants root access.
  5. After logging in, explore /var/lib/pterodactyl to find .env files, API tokens, SSH keys, and a database dump.

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.

A stealer log is a file created by malware that steals saved passwords and other data from an infected computer. The attacker found the hosting provider's root password in such a log and used it to log in to the server. This gave them full control over the server and all the data on it.

What is Leaked secrets?

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

More by kkonann

View all

1 more disclosed report, best first.

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.