SOC170 — Passwd Found in Requested URL — Possible LFI Attack
A web server received a request that tried to read the system passwd file, a sign of local file inclusion probing. The attempt failed with an internal server error, and the server was running Windows, which has no such file.
Published on systemweakness.com
To kick start the month of April, I decided to get back on Letsdefend.io since my 5 free alerts per month have been reset.
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 an automated scanner sent a path-traversal style request for the passwd file to a web server that did not serve it, producing an error.
Impact
The attempt failed: the server returned an internal server error and, being Windows, had no passwd file to disclose, so no data was exposed.
What the attacker needed
Internet-reachable web server
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 pages take a file name from the address bar and load that file. If the site does not check the name, an attacker can ask for a sensitive file on the server instead, such as the passwd file that lists user accounts on Linux. Here the request was blocked by an error and the server was Windows, so nothing was read.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.