Jump to content
Welcome to our new Citrix community!

Mix character set ASCII & UTF_8


Samarjit Das

Recommended Posts

I've recently received a very complex requirement  to send a HTTP 404 while request hits VIP configured on Citrix netscaler gateway that match HTTP request with http method GET and URL contains receiver & upload keywords. The responder policy with an action to send 404 code written & bound to cs vserver on netscaler works fine when request has only ASCII character but not able to write a correct rule to be executed for request mixed of both character set ASCII & UTF-8. Any help would be appreciated.

 

Rule: HTTP.REQ.method.eq(put).not && HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS("receiver") && HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS("upload")

 

A sample request with both character sets:

GET https://x.com/receiver////Upload/test.php?bla=cat /etc/passwd HTTP/1.1

 

image.png

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...