Forum Discussion
Joel_41531
Nimbostratus
May 27, 2009Blocking insecure log-in page
We terminate https on the F5, and pass traffic to the web apps on port 80. Consequently, I have an interesting problem. I have a log-in page (/store/user/login.jhtml) that should only be accessed via https. On the ASM, both http and https flow through the same policy (I can't identify which is secure/non-secure), so a custom attack sig using the URI would fail (block both secure and non-secure, when I only need the non-secure blocked).
There is no way to navigate to the insecure log-in page, but a pen-tester found it, so now I've got to fix it. Apps has a problem fixing it (same reason I do -- they can't identify secure/non-secure), and we'd like to stay away from an iRule (CPU expensive).
I've defined the specific page as an object (we're on 9.4.5), but I don't know how to block that specific object.
Is there any way to write an attack sig that blocks a specific object? Or am I missing something basic?
Thanks!
Joel
- Benjamin_9036Historic F5 AccountHey Joel,
- Joel_41531
Nimbostratus
Ben, - Benjamin_9036Historic F5 AccountHey Joel,
- Joel_41531
Nimbostratus
Just to close this out, here's what I did. We have an iRule that injects a header tag to let the backend systems know if the connection is secure/insecure. It's really simple -- if arrived on port 80, is_secure=0, if arrived on port 443, is_secure=1. I utilized this, in a headercontent statement, in conjunction with the uri, and it worked. - tacobell_14395
Nimbostratus
care to share your IRule please - hoolio
Cirrostratus
Hi Tacobell,HTTP profile for the HTTP virtual server profile http http_profile_https_0 { defaults from http header insert "X-HTTPS: 0" header erase "X-HTTPS" } HTTP profile for the HTTPS virtual server profile http http_profile_https_1 { defaults from http header insert "X-HTTPS: 1" header erase "X-HTTPS" }
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