Full server takeover ssh leak (dell technologies) by (RECON)
A server exposed a path traversal flaw that let an attacker read arbitrary files, including a user's SSH private key. Using that key, the attacker logged in over SSH and took over the server.
Published on medium.com
In this write-up, I will explain how I achieved a full server takeover on a (Dell Technologies) asset through reconnaissance alone.
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 web server passed user-controlled path input to a file read without normalising or restricting it, allowing traversal outside the web root.
Impact
An attacker could read arbitrary files, obtain credentials and gain full control of the server, with potential access to internal infrastructure.
What the attacker needed
Internet-facing web server; no authentication needed for the endpoint
How it was found
- Collect the SSL certificate used by the target.
- Search Shodan for other hosts sharing the same certificate.
- Review the discovered hosts and their page titles for exposed panels.
- Fuzz directories and files to find accessible paths.
- Request a traversal path that returns the system password file.
- Retrieve an SSH private key from the user's home directory and log in over SSH.
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.
Some web servers build a file path from what you type in the address. If they do not clean up 'go up a folder' sequences, you can ask for files outside the intended folder. Here that let the researcher read a private key file, which is like a password for remote login, and then log in to the machine itself.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.