Forum Discussion
totengraber_937
Nimbostratus
Dec 13, 2007Help Replacing characters in URI(URL?)
Okay, I've tried to do this on my own, but have gotten no where.
It has been discovered that our web application is vulnerable to Cross-Site Scripting based on tests from ScanAlert.
I have looked into ASM, but the company is reluctant to spend the money on new hardware since our current hardware won't run the ASM.
What I would like to do is replace <,>,(,) in the URI(URL)to their proper HTML equivalents. I have yet to get any iRule to even come close to doing this.
I would appreciate anyone's help if they have some pointers to help me on my way.
Thanks,
Todd
- What do you mean by "HTML equivalent"? Do you mean HTTP encoded, or HTML encoded. The two are different.
URL encoding: "<" -> "%3c"
when HTTP_REQUEST { HTTP::uri [URI::encode [HTTP::uri]] }
when HTTP_REQUEST { HTTP::uri [string map { "<" "<" ">" ">" } [HTTP::uri]] }
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