Interesting. Did you already test this that if it isn’t a HTTP redirect but could be HTML or javascript redirect from the payload, ASM doesn’t block it?
I’m not sure if custom ASM signature can be built around this that might be checked with your account representative from F5. But this can be definitely blocked with custom iRule to scan the payload and allow only whitelisted redirect URL values.
There are so many ways to do this, I’m not sure it’s feasible but you could try. This is a good question for LLM, it came up with this simple stuff about “non-header” ways a web developer might get a browser to “go somewhere else”, which is sorta like a redirect.
JS redirection:
window.location.href: This method sets the URL of the current page. When you use this method, the browser will load the new page immediately.
window.location.assign(): This method is similar to window.location.href, but it does not load the new page immediately. Instead, it adds the new page to the browser’s history.
window.location.replace(): This method replaces the current page with the new page. This means that the user will not be able to go back to the previous page.
Form action:
To use the form action method, you need to set the action attribute of the form to the URL of the new page. When the form is submitted, the browser will be redirected to the new page.
Anchor tag:
To use the anchor tag method, you need to set the href attribute of the anchor tag to the URL of the new page. When the anchor tag is clicked, the browser will be redirected to the new page.
Meta tags:
HTML meta refresh: To use the HTML meta refresh method, you need to add a meta tag to the head section of your HTML document. The meta tag should have the following attributes: