Forum Discussion
Erlend_123973
Nimbostratus
Sep 16, 2014How to securely present user supplied data in HTTP::respond NNN content
When i write iRules, I often use something like
HTTP::respond 403 content "Error: variable $somevar not in datagroup"
My concern here is,
$somevar is userdefined data - often a part of HTTP::pa...
Kevin_Stewart
Employee
Sep 16, 2014I'd perhaps suggest two things:
-
Set the HTTPOnly flag on all cookies. It's of course not a 100% solution, but it would prevent most script-based access to cookies.
-
As WLB suggests, simply URI::encode the output value:
HTTP::respond 403 content "Error: variable [URI::encode $somevar] not in datagroup"
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
