Forum Discussion
Hussein_Ghazy
Nimbostratus
Nov 11, 2014Bypassing ASM measures to allow a vulnerability Scanners
Hi All,
The Websites are protected with ASM policies and we planning to start doing frequent PenTesting.
I will add the IP Address of the PenTester to the IP Address Exception under each AS...
David_Stout
Nimbostratus
Nov 11, 2014You might find this iRule handy 🙂
when HTTP_CLASS_SELECTED {
Disable ASM if client is on a specific network address range
if { [IP::addr [IP::client_addr]/32 equals x.x.x.x] } {
ASM::disable
} elseif { [IP::addr [IP::client_addr]/26 equals x.x.x.x] } {
ASM::disable
} else {
ASM::enable
}
Save a copy of the URI in lowercase for multiple tests
set test_uri [string tolower [HTTP::uri]]
Disable ASM for specific URI
if { $test_uri contains "/upload" } {
ASM::disable
} elseif { $test_uri contains "/test" } {
ASM::disable
} elseif { $test_uri contains "/microsoft" } {
ASM::disable
} else {
ASM::enable
}
Verify method is POST bypass ASM
if { ([HTTP::method] eq "POST")}{
ASM::disable
}
}
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