TO UNSUBSCRIBE: email "unsubscribe issforum" in the body of your message to [EMAIL PROTECTED] Contact [EMAIL PROTECTED] for help with any problems! ---------------------------------------------------------------------------- Hi, Please could somebody explain to me how realsecure network sensor manages regular expressions because i'm getting confused - especially with unicode and how/when it translates %hh values. Excerpt from ISS mail: > - From the Sensor window: > 1. Right-click on the sensor and select 'Properties'. > 2. Choose a policy you want to use, and click 'Customize'. > 3. Select the 'User Defined Events' tab. > 4. Click 'Add' on the right hand side of the dialog box. > 5. Create a User Defined Event. > 6. Type in a name of the event, such as "IIS URL Decoding Vulnerability". > 7. In the 'Context' field for the event, select 'URL_Data'. In the 'String' > field, type the following string: > %5c|%2e|%2f > 9. Click 'Save', and then 'Close'. > 10. Click 'Apply to Sensor' or 'Apply to Engine', depending on the version of > RealSecure you are using. I've just done a test where I've generated a packet including: G E T / % 4 0 � % 5 c g i f 47 45 54 20 2f 25 34 30 20 ff 25 35 63 20 67 69 66 Then I set up a realsecure policy with the following url_data search-strings: (event name followed by string followed by comments) web-g g # tripped web-p40 %40 web-ep40 \%40 web-f f # tripped web-@ @ # tripped web-pff %ff web-exff \xff # tripped web-p5c %5c web-ex5c \x5c # tripped Of these the ones that tripped when I sent my GET are: web-@ web-exff web-ex5c web-g web-f This seems to imply that realsecure took my GET request, decoded the %40 to @ and the %5c to \, and THEN checked it against my URL_data search-string - if that's true then surely it wouldn't match the suggested search-strings of %5c, %2e etc (see excerpt above)? I'm confused, can anybody explain this to me? I know there was a previous ISS email to detect some unicode attacks, which was based on \.\.(\xhh|\xhh...) where hh are hex values i can't remember now but something like c0, c1, e0 etc (as per common leading UTF8 bytes i guess). I'm conscious that unicode vulnerabilities centre around sending one character as multiple bytes, and that hackers could send EACH of those contributing bytes as %hh format or as a pure byte (depending on what they use to generate their attack). If realsecure converts %hh to the raw byte before matching url_data then i can see the sense in pattern-matching for \xhh but not for %hh. Any clues? Thanks, Jason Jason.Renard at Mail.Com Warning - all views expressed are my own. I cannot guarantee the accuracy of everything I've said - use it at your own risk.
