The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Preventing XSS

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Watermasysk

Posts: 661
Nickname: scottwater
Registered: Aug, 2003

Scott Watermasysk is an ASP.NET developers. He wrote the .Text blog engine.
Preventing XSS Posted: Feb 7, 2005 3:39 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Scott Watermasysk.
Original Post: Preventing XSS
Feed Title: ScottW's ASP.NET WebLog
Feed URL: /error.aspx?aspxerrorpath=/blog/rss.aspx
Feed Description: ASP.NET and Blogging
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Scott Watermasysk
Latest Posts From ScottW's ASP.NET WebLog

Advertisement

One of the "Lessons Learned" in my VSLive talk this Wednesday is going to focus on XSS. In many applications, the simple answer is to encode the content before rendering (or saving it). However, for application like CS this is not possible.

Over the years we have tried many ways to prevent users from posting malicious markup. Mostly these involved using regular expressions to find and remove elements like a javascript element. However, there are too many potential combinations to do this safely. So we decided to go in a different direction.

CS by default, will only allow a pre-selected set of elements and attributes in any post. All others will either be stripped or encoded.  The whole process is completely configurable, so site administrators can easily add or remove new elements and attributes. For those already using CS, this wiki FAQ might be helpful.

Read: Preventing XSS

Topic: GMail is Scaling Up! Previous Topic   Next Topic Topic: February .NET Events in the Boston area

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use