How i found 22 LFI in the same program using automation tricks
The author found a local file inclusion (LFI) vulnerability in a parameter whose value was a PHP filename, and by searching for other URLs with the same parameter value pattern across subdomains, discovered 22 instances of the same bug. An attacker could include local files, potentially leading to code execution, though escalation attempts failed.
Assalamualaikum, everyone! i will not introduce myself this one cuz it’s os poring when i read others writeups
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 passed a user-supplied parameter value directly to a file inclusion function without validating or restricting the path.
Impact
An attacker could read local files on the server, and the author attempted but failed to escalate to remote code execution; the program later marked most reports as duplicates.
What the attacker needed
Access to the web application; knowledge of the vulnerable parameter
How it was found
- Collect subdomains and URLs using passive tools and a crawler.
- Filter URLs for parameters whose value ends with .php.
- Test a parameter by changing its value to a random string and observing an error.
- Supply a file inclusion payload and confirm the file is included.
- Search for the same parameter value pattern across other subdomains to find more instances.
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.
Local file inclusion (LFI) is a bug where a website lets you ask it to load a file from its own server by changing part of the web address. Here, a parameter that took a filename was not checked, so the author could make the site show files it should not. They then searched for other places using the same kind of filename value and found many more.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.