Skip to content
Path traversal Write-up Beginner

POC — CVE-2024–4956 -Unauthenticated Path Traversal

Nexus Repository Manager 3 is vulnerable to an unauthenticated path traversal that lets an attacker read arbitrary files on the server. The author demonstrates reading the system password and shadow files, which could then be cracked offline.

verylazytech Follow

Published on medium.com

Potentially allowing an attacker to read certain information on Check Point Security Gateways once connected to the internet and enabled with Remote Access VPN or Mobile Access Software Blades. A security fix that mitigates this vulnerability is available.

Very Lazy Tech 👾, 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 application failed to normalise or restrict the requested file path, allowing encoded directory traversal sequences to escape the intended directory.

Impact

An unauthenticated attacker could read sensitive files such as the system password and shadow files, and then crack the password hashes offline to recover credentials.

What the attacker needed

Target runs vulnerable Nexus Repository Manager 3; Target is reachable over the internet; No authentication required

The fix

A security fix that mitigates this vulnerability is available.

How it was found

  1. Find targets running Nexus Repository Manager 3 using a search engine dork.
  2. Clone or copy the proof-of-concept script.
  3. Add target URLs or IP addresses to a list file.
  4. Run the script against the list to request the password and shadow files.
  5. Merge the retrieved password and shadow files with unshadow.
  6. Crack the resulting hashes with John the Ripper and a wordlist.

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 path traversal bug lets someone trick a web server into reading files outside the folder it is supposed to serve. Here, the Nexus Repository Manager software did not properly clean up the file path in a request, so an unauthenticated attacker could ask for sensitive system files like the list of user accounts and their password hashes. Those hashes could then be cracked to recover passwords.

What is Path traversal?

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

More by verylazytech

View all

3 more disclosed reports, best first.

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.