Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Added HTTP Request smuggling

six2dez586f7ea712a1
diff --git a/reconftw.cfg b/reconftw.cfg
index 841bb38..565f410 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -121,6 +121,7 @@ BROKENLINKS=true # Check for brokenlinks
SPRAY=true # Performs password spraying
COMM_INJ=true # Check for command injections with commix
PROTO_POLLUTION=true # Check for prototype pollution flaws
+SMUGGLING=true # Check for HTTP request smuggling flaws
# Extra features
NOTIFICATION=false # Notification for every function
diff --git a/reconftw.sh b/reconftw.sh
index 258b078..353ec19 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1835,6 +1835,28 @@ function prototype_pollution(){
fi
}
+function smuggling(){
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SMUGGLING" = true ] ; then
+ start_func ${FUNCNAME[0]} "HTTP Request Smuggling checks"
+ [ ! -s ".tmp/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q .tmp/webs_all.txt
+ if [ "$DEEP" = true ] || [[ $(cat .tmp/webs_all.txt | wc -l) -le $DEEP_LIMIT ]]; then
+ cd "$tools/smuggler" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
+ cat .tmp/webs_all.txt | python3 smuggler.py -q --no-color 2>/dev/null | anew -q $dir/.tmp/smuggling.txt
+ cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
+ [ -s ".tmp/smuggling.txt" ] && cat .tmp/smuggling.txt | anew -q vulns/smuggling.txt
+ end_func "Results are saved in vulns/smuggling.txt" ${FUNCNAME[0]}
+ else
+ end_func "Skipping Prototype Pollution: Too many webs to test, try with --deep flag" ${FUNCNAME[0]}
+ fi
+ else
+ if [ "$SMUGGLING" = false ]; then
+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
+ else
+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
+ fi
+}
+
###############################################################################################################
########################################## OPTIONS & MGMT #####################################################
###############################################################################################################
@@ -2299,6 +2321,7 @@ function vulns(){
xss
command_injection
prototype_pollution
+ smuggling
spraying
brokenLinks
test_ssl