Forum Discussion
Lokesh
Nimbostratus
Oct 14, 2019Linux (Kali) found our application hosted behind F5
We want to stop display of banner name of F5 to any WAF detection tools , as during VAPT it was seen that wafw00f (A WAF detection Tool) is able to find out our WAF name through our application.
...
JG
Cumulonimbus
Nov 23, 2019From the source code of the "wafw00f" package below, we can see how APM is defined and detected:
def is_waf(self):
detected = False
# the following based on nmap's http-waf-fingerprint.nse
if self.matchcookie('^LastMRH_Session') and self.matchcookie('^MRHSession'):
return True
elif self.matchheader(('server', 'BigIP|BIG-IP|BIGIP')) and self.matchcookie('^MRHSession'):
return True
if self.matchheader(('Location', '\/my.policy')) and self.matchheader(('server', 'BigIP|BIG-IP|BIGIP')):
return True
elif self.matchheader(('Location', '\/my\.logout\.php3')) and self.matchheader(('server', 'BigIP|BIG-IP|BIGIP')):
return True
elif self.matchheader(('Location', '.+\/f5\-w\-68747470.+')) and self.matchheader(('server', 'BigIP|BIG-IP|BIGIP')):
return True
elif self.matchheader(('server', 'BigIP|BIG-IP|BIGIP')):
return True
elif self.matchcookie('^F5_fullWT') or self.matchcookie('^F5_ST') or self.matchcookie('^F5_HT_shrinked'):
return True
elif self.matchcookie('^MRHSequence') or self.matchcookie('^MRHSHint') or self.matchcookie('^LastMRH_Session'):
return True
else:
return False.
The names of the session cookies just can't be masked, I am afraid.
There are other definition files separately for ASM, LTM, etc.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
