• Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Error 12302 with UTF-16 Characters

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Threat Management Gateway (TMG) 2010] >> General >> Error 12302 with UTF-16 Characters Page: [1]
Message << Older Topic   Newer Topic >>
Error 12302 with UTF-16 Characters - 21.Oct.2011 3:19:09 AM   


Posts: 8
Joined: 14.May2007
Status: offline
Hello TMG experts - I'm hoping someone will have seen this issue before and can help!
My example uses anonymised URLs, but the issue is real!
I have an internal site called https://website.internal.local that I wish to publish to external users using TMG 2010, so I set up a reverse proxy rule on TMG pointing “https://reversed.mydomain.com” at “https://website.internal.local”
The internal site https://website.intenal.local generates URLs that include UTF-16 encoded request URIs.
An easy test example is https://website.intenal.local/index.html?test=%u00e9 (%u00e9 corresponds to the “é” character.)
TMG blocks access to any URL with a UTF-16 encoded element in the URL – a log entry is below:
Denied Connection MY-TMG-SERVER 19/10/2011 09:15:35
Log type: Web Proxy (Reverse)
Status: 12302 The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. 
Request: GET
Filter information: Req ID: 19f644d1; Compression: client=No, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=no, valid=no, updated=no, logged off=no, client type=unknown, user activity=yes
Protocol: https
User: anonymous

By comparing this log with a different request where the “é” character is not encoded I gain some interesting insights:
Denied Connection MY-TMG-SERVER 19/10/2011 09:04:00
Log type: Web Proxy (Reverse)
Status: 12217 The request was rejected by the HTTP filter. Contact your Forefront TMG administrator. 
Source: External (
Destination: Local Host (
Request: GET
Filter information: Req ID: 19f64248; Compression: client=No, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=yes, valid=yes, updated=no, logged off=no, client type=public, user activity=yes ; Blocked by the HTTP Security filter: URL contains high-bit cha
Protocol: https
User: (SecurID)bloggsj 
STATUS: I notice that the error message is different between the two examples. In the UTF-16 version of the request, TMG server (at some type of top level) blocks the URL. When the “é” character is not encoded, it is the HTTP filter that blocks the “é” as a high bit character.

REQUEST: Additionally the GET request is quite different – in the UTF-16 example, the request has been blocked before any translation to an internal address has occurred, but in the non encoded version, the request has progressed through to the HTTP filter stage and is blocked by the “Block High Bit Characters” option within the rule’s HTTP properties. (If I uncheck the “block high bit character” option, the URL is valid and it works!)
USER: Finally – I notice that the UTF-16 encoded request has been blocked before any form of identity can be passed whereas in the un-encoded example identity has been established.
Summary and Question:
So – it looks like TMG 2010 has decided that a URL containing UTF-16 encoded characters is not valid and the URL is rejected. It’s not just a high bit characters issue; it seems to be about the encoding.
As I have no control over the internal site and can’t stop UTF-16 encoded characters from appearing in the content, is there any way to ask TMG server not to worry about these encoded characters in the URLs?

Post #: 1
RE: Error 12302 with UTF-16 Characters - 21.Oct.2011 3:28:26 PM   


Posts: 3472
Joined: 3.Jan.2008
From: Amazon, Brazil
Status: offline

check if Verify normalization option is disabled.


When Verify normalization is enabled, Forefront TMG decodes URL-encoded HTTP requests to determine that the decoded request is valid. (URL-encoded requests contain a percent sign (%) followed by a particular number in place of certain characters. For example, %20 corresponds to a space.) Normalization helps prevent attacks that rely on double-encoded requests. Web services such as Outlook Web Access may use double encoding for particular requests, but these requests are filtered by Forefront TMG by default. To allow these requests, you need to disable Verify normalization for the Web publishing rule. To modify an HTTP filter setting, see Modify HTTP Filtering for Web Traffic.

Source: http://technet.microsoft.com/en-us/library/cc940975(WS.10).aspx

Paulo Oliveira.


Microsoft Premier Field Engineer (PFE)
Blog: http://poliveirasilva.wordpress.com/
Twitter: https://twitter.com/poliveirasilva

(in reply to eviljames)
Post #: 2
RE: Error 12302 with UTF-16 Characters - 24.Oct.2011 3:37:48 AM   


Posts: 8
Joined: 14.May2007
Status: offline

check if Verify normalization option is disabled.

Hi Paulo -Thanks for your reply!

Normalization is currently disabled in the HTTP options.

To further test and eliminate a double-encoded issue I tried https://reversed.mydomain.com/index.html?test=%u 

Once again I get the same outcome!

I did find some similar posts on other boards from people who have the same issue - but the suggested fix is to alter the internal website rather than configure TMG 2010.

For instance - http://mcaf.ee/udc48 - in this case the internal site was sharepoint and the issue was resolved by changing the internal source website language config (installing language packs to eliminate the long encoded %u**** charaters)

Also the post here - http://mcaf.ee/8bvk4 - seems to suggest that the fix is best done on the internal website.

I really hope there is a way of fixing this issue at the TMG 2010 side as the site I'm trying to publish is owned and operated by a 3rd party and I havn't a hope of getting them to change it!

Thanks for your help so far!


(in reply to paulo.oliveira)
Post #: 3
RE: Error 12302 with UTF-16 Characters - 18.Nov.2011 7:30:23 AM   


Posts: 50
Joined: 9.Oct.2008
Status: offline
I replied with a fix for this in another thread: http://forums.isaserver.org/fb.aspx?m=2002110310

(in reply to eviljames)
Post #: 4

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Threat Management Gateway (TMG) 2010] >> General >> Error 12302 with UTF-16 Characters Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts