Ravikanth's Blog

Happenings around Me

Disclaimer

India MVP Blogs

Mugh blogs

My

My Favorites

My Network Places

Microsoft releases Visual Studio plug-in to detect XSS in .NET code

XSSDetect is a static code analysis tool that helps identify Cross-Site Scripting security flaws found within Web applications. It is able to scan compiled managed assemblies (C#, Visual Basic .NET, J#) and analyze dataflow paths from sources of user-controlled input to vulnerable outputs. It also detects whether proper encoding or filtering has been applied to the data and will ignore such "sanitized" paths.
 
Posted: Oct 23 2007, 04:14 AM by dvravikanth | with 5 comment(s) |
Filed under:

Comments

rrobbins said:

I've been researching web application security and one of the vulnerabilities I've discovered in ASP.NET is the lack of the equivalent for PHP functions like mysql_real_escape_string() and addslashes() to sanitize user input when the web application is using MySQL as its database.

I would assume that ASP.NET web applications using MySQL aren't as secure as PHP web applications using MySQL. Do you know of any resources to address that security issue?

# October 23, 2007 8:20 AM

jayson knight said:

@rrobbins: So long as you use parameterized queries (if you must use dynamic SQL) in asp.net, you are safe from XSS. Those functions exist in PHP out of necessity; asp.net doesn't have them because they are not needed.

# October 23, 2007 8:42 AM

The Other Steve said:

rrobbins: PHP requires those because mySQL doesn't support parameterized queries.  Escaping inputs isn't as safe as using parameters.

# October 23, 2007 9:48 AM

Phil Scott said:

Any chance this addin can be made to work with VS2008? We've already moved our code base to 2008, but I'd still love to be able to run it through this app

# October 23, 2007 2:22 PM

RichardD said:

Sounds like a good idea. However, this add-in is completely broken. Clicking the button to start the analysis displays the error message "Licence missing or expired", and does nothing else.

# October 24, 2007 2:20 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)