Directory fuzzing

Theory

While Crawling allows testers to build the indexed architecture of website, this technique can't find directories and files that are not referenced. Directory fuzzing (a.k.a. directory bruteforcing) is a technique that can find some of those "hidden" paths. Dictionaries of common paths are used to request the web app for each path until exhaustion of the list. This technique relies on the attacker using a dictionnary/wordlist. A request is made for every line of the wordlist to differentiate pages that exist and pages that don't

Practice

Fuzzing tools

Tools like dirbarrow-up-right (C), dirbusterarrow-up-right (Java), gobusterarrow-up-right (Go), wfuzzarrow-up-right (Python), ffufarrow-up-right (Go) and feroxbusterarrow-up-right (Rust) can do directory fuzzing/bruteforcing. Burp Suite can do it too. Depending on the web application, one will be better suited than another and additional options will be needed.

gobuster dir --useragent "PENTEST" --wordlist "/path/to/wordlist.txt" --url $URL
wfuzz --hc 404,403 -H "User-Agent: PENTEST" -c -z file,"/path/to/wordlist.txt" $URL/FUZZ

ffufarrow-up-right (Go) and feroxbusterarrow-up-right (Rust) are two awesome alternatives that can do recursive fuzzing unlike gobusterarrow-up-right (Go) and wfuzzarrow-up-right (Python) mentioned above.

ffuf -H "User-Agent: PENTEST" -c -w "/path/to/wordlist.txt" -maxtime-job 60 -recursion -recursion-depth 2 -u $URL/FUZZ
feroxbuster -H "User-Agent: PENTEST" -w "/path/to/wordlist.txt" -u http://192.168.10.10/
circle-exclamation

Wordlists

In order to fuzz more accurately, there are many dictionaries adapted for many situations, most of which can be downloaded from SecLists. SecLists can be installed (apt install seclists or downloaded directly from the GitHub repoarrow-up-right).

The ultimate combo is ffufarrow-up-right + fzfarrow-up-right + seclistsarrow-up-right.

circle-check

Last updated

Was this helpful?