Skip to content
Path traversal Write-up Intermediate

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.

omar_ahmed496 Follow

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.

Omar kiwan, 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 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

  1. Collect the SSL certificate used by the target.
  2. Search Shodan for other hosts sharing the same certificate.
  3. Review the discovered hosts and their page titles for exposed panels.
  4. Fuzz directories and files to find accessible paths.
  5. Request a traversal path that returns the system password file.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.