Forum Discussion
mikegray_198028
Cirrus
Dec 08, 2016uri hiding/encrypting
admin/App/frameset.jsp?name=Sessions url=..%2FApp%2FSessions%2FsessionsFrameSet.faces%3FappKind%3DCMC%26bttoken%3DMDAwRENRbzJQNmRKYUpXW2c7Z29XOlBNVEFYTF5d
Here you can see ".." present in the u...
Kai_Wilke
MVP
Dec 08, 2016Hi Mike,
if disabling of directory traversal attack signatures is not an option for you, then you may try to remove the directory traversal before passing the request to ASM and simply restore it right after.
when HTTP_REQUEST {
if { [HTTP::uri] contains ".." } then {
set dir_traversal [HTTP::uri]
HTTP::uri [string map { ".." "traversal" } [HTTP::uri]]
}
}
when HTTP_REQUEST_SEND {
if { [info exists dir_traversal] } then {
clientside {
HTTP::uri $dir_traversal
}
}
}
Cheers, Kai
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