Archive

Posts Tagged ‘Anti-XSS’

Web Application Security Vulnerabilities

Attackers can potentially use many different paths through your application to do harm to your business or organization. Each of these paths represents a risk that may, or may not, be serious enough to warrant attention.

Sometimes, these paths are trivial to find and exploit and sometimes they are extremely difficult. Similarly, the harm that is caused may range from nothing, all the way through putting you out of business. To determine the risk to your organization, you can evaluate the likelihood associated with each threat agent, attack vector, and security weakness and combine it with an estimate of the technical and business impact to your organization.

Together, these factors determine the overall risk.

The new OWASP Top Ten can be seen below:

Read more…

Advertisements

Preventing Cross-site scripting attacks using Microsoft Anti-Cross Site Scripting Library

February 16, 2011 Leave a comment

Cross site scripting is one of the biggest threats in web applications. I would like to cover how to prevent Cross-site scripting attacks using Microsoft Anti-Cross Site Scripting Library.

What is Cross-Site scripting(XSS)?

A website is said to be vulnerable for XSS if proper validation/encoding of input is not done before using/rendering the output. For example, you are taking input from a textbox and without validation/encoding you are embedding in response data(as below).

using System;
public partial class _Default : System.Web.UI.Page
{
protected void Button1_Click(object sender, EventArgs e)
{
String Input = TextBox1.Text;

//XSS
Response.Write(Input);
}
}

 

Read more…

%d bloggers like this: