Automating Subdomain Enumeration to Discover Critical Vulnerabili
The author used automated subdomain enumeration and custom Nuclei templates to find a Local File Inclusion (LFI) vulnerability on a target. By exploiting the LFI, sensitive server files could be accessed, leading to a $3000 bounty.
Published on shubhamrooter.medium.com
Hello, I’m Shubham Tiwari, commonly known as Rooter in the cybersecurity space. Today, I’m going to share how I identified a critical vulnerability using automated tools and earned a bounty of $3000 on a target, example.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 properly validate user-supplied file paths, allowing directory traversal to include arbitrary local files.
Impact
An attacker could access sensitive server files through the vulnerable endpoint, potentially leading to further compromise.
What the attacker needed
Target with subdomains; custom Nuclei templates
How it was found
- Enumerate subdomains using Subfinder and Amass.
- Probe live subdomains with HTTPX.
- Crawl URLs using Katana and waybackurls.
- Scan with Nuclei using custom templates to find LFI.
- Manually verify the LFI by accessing sensitive files.
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.
The author used tools to find all parts of a website (subdomains) and then scanned them for a common flaw called Local File Inclusion (LFI). LFI lets an attacker trick a website into showing files from the server that should be private, like configuration files. This can leak sensitive information.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.