Results 1 to 2 of 2

Thread: Microsoft's AntiXSS Library

  1. #1
    Join Date
    Mar 2006
    Posts
    59
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Microsoft's AntiXSS Library

    Hi,

    Does anyone have experience with Microsoft's AntiXSS library (http://www.microsoft.com/downloads/details.aspx?familyid=efb9c819-53ff-4f82-bfaf-e11625130c25&displaylang=en)

    If I have an iframe what should I use to encode the src attribute.

    Should I use HtmlAttributeEncode(), or UrlEncode()? I suppose I could use HtmlAttributeEncode( UrlEncode( ) ) but the documentation cautions against using more the one encoding.

    Any insights greatly appreciated.

    Paul

  2. #2
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    URLEncode should be used to encode URLs (IFRAME SRC would be a URL).

    HTMLEncode should be used to encode HTML (so if a user set their "display name" as <script>alert('bad things');</script>, the symbols are encoded into HTML entities and thus the script doesn't run wherever the users display name is shown, only prints).
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. The Following User Says Thank You to Warren Ashcroft For This Useful Post:

    CookingFat (19th August 2008)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Microsoft Tech Drafted
    By Sol in forum Jokes and Stories
    Replies: 3
    Last Post: 11th May 2007, 02:11 PM
  2. MS Enterprise Library for .net 2
    By jordan in forum Technical Support
    Replies: 4
    Last Post: 20th June 2006, 02:05 PM
  3. Microsoft tech drafted
    By Sol in forum Jokes and Stories
    Replies: 0
    Last Post: 29th October 2005, 01:08 AM
  4. PHP with GD graphics library....
    By terraqueotenaz in forum PHP
    Replies: 1
    Last Post: 23rd February 2005, 01:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •