Forum Discussion
Sinistrad_29710
Nimbostratus
Oct 25, 2017iRule disable ASM - Check
Hi F5 exeprts,
Could you please help me writing URL for disabling ASM for a specific URL: test.com/Modules/CommentsandChanges/MyHoldManagement.aspx
Below the iRule I want to use:
when HTTP_...
Kai_Wilke
MVP
Oct 25, 2017Hi Sinistrad,
your iRule looks fine for me. The only thing I would strongly recommend to change is:
After disabling ASM for a given Request-URI, you should make sure that ASM gets re-enabled for subsequent HTTP-Request send over the same TCP-Connection. If you don't re-enable ASM a skilled attacker may get notice of this bypass, request the bypassed URI and rigth after send abritary exploit code to other URIs over the same TCP connection without having the inspection of ASM in place...
when HTTP_REQUEST {
if { ( [HTTP::host] equals "test.com" )
and ( [HTTP::path] equals "/Modules/CommentsandChanges/MyHoldManagement.aspx" ) } then {
ASM::disable
} else {
ASM::enable "/Common/MyPolicy"
}
}Cheers, Kai
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
