XSS, deniseaustin.com, Cross Site Scripting, CWE-79, CAPEC-86

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Report generated by XSS.CX at Sat Mar 12 07:04:53 CST 2011.


XSS.CX Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

Loading

1. Cleartext submission of password

2. Password field with autocomplete enabled

3. Cross-domain script include

4. Cookie without HttpOnly flag set



1. Cleartext submission of password  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.deniseaustin.com
Path:   /exercises/triceps-chair-dip.aspx

Issue detail

The page contains a form with the following action URL, which is submitted over clear-text HTTP:The form contains the following password field:

Issue background

Passwords submitted over an unencrypted connection are vulnerable to capture by an attacker who is suitably positioned on the network. This includes any malicious party located on the user's own network, within their ISP, within the ISP used by the application, and within the application's hosting infrastructure. Even if switched networks are employed at some of these locations, techniques exist to circumvent this defense and monitor the traffic passing through switches.

Issue remediation

The application should use transport-level encryption (SSL or TLS) to protect all sensitive communications passing between the client and the server. Communications that should be protected include the login mechanism and related functionality, and any functions where sensitive data can be accessed or privileged actions can be performed. These areas of the application should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications. If HTTP cookies are used for transmitting session tokens, then the secure flag should be set to prevent transmission over clear-text HTTP.

Request

GET /exercises/triceps-chair-dip.aspx HTTP/1.1
Host: www.deniseaustin.com
Proxy-Connection: keep-alive
Referer: http://www.everydayhealth.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 31959
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
Server-ID: : USNJWWEB03
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: .ASPXANONYMOUS=AcwXPQmse*0zYWEwNTdmMS04MDlmLTRmZGYtYTRjYi00MDFjZDlmYWE0ZmI1; expires=Fri, 20-May-2011 22:27:00 GMT; path=/
Set-Cookie: ASP.NET_SessionId=ltfzun55f0v31ke5klo0egey; path=/; HttpOnly
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Date: Sat, 12 Mar 2011 12:47:00 GMT


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="head"><title>
   Denise Austin's Best Fitness Moves Fo
...[SNIP]...
<body id="htmBody">    
<form name="Form1" method="post" action="../publicsite/index.aspx?puid=096656CB-25E4-46BA-8CF3-BE0D59DC932B" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<div>
...[SNIP]...
<span id="quick_pass">Password: <input name="ctl00$uc_funneltop1$ctlFunnelLandingFormLogin$ctl00$txtPassword" type="password" id="ctl00_uc_funneltop1_ctlFunnelLandingFormLogin_ctl00_txtPassword" /></span>
...[SNIP]...

2. Password field with autocomplete enabled  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.deniseaustin.com
Path:   /exercises/triceps-chair-dip.aspx

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).

Request

GET /exercises/triceps-chair-dip.aspx HTTP/1.1
Host: www.deniseaustin.com
Proxy-Connection: keep-alive
Referer: http://www.everydayhealth.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 31959
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
Server-ID: : USNJWWEB03
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: .ASPXANONYMOUS=AcwXPQmse*0zYWEwNTdmMS04MDlmLTRmZGYtYTRjYi00MDFjZDlmYWE0ZmI1; expires=Fri, 20-May-2011 22:27:00 GMT; path=/
Set-Cookie: ASP.NET_SessionId=ltfzun55f0v31ke5klo0egey; path=/; HttpOnly
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Date: Sat, 12 Mar 2011 12:47:00 GMT


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="head"><title>
   Denise Austin's Best Fitness Moves Fo
...[SNIP]...
<body id="htmBody">    
<form name="Form1" method="post" action="../publicsite/index.aspx?puid=096656CB-25E4-46BA-8CF3-BE0D59DC932B" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<div>
...[SNIP]...
<span id="quick_pass">Password: <input name="ctl00$uc_funneltop1$ctlFunnelLandingFormLogin$ctl00$txtPassword" type="password" id="ctl00_uc_funneltop1_ctlFunnelLandingFormLogin_ctl00_txtPassword" /></span>
...[SNIP]...

3. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.deniseaustin.com
Path:   /exercises/triceps-chair-dip.aspx

Issue detail

The response dynamically includes the following scripts from other domains:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.

Request

GET /exercises/triceps-chair-dip.aspx HTTP/1.1
Host: www.deniseaustin.com
Proxy-Connection: keep-alive
Referer: http://www.everydayhealth.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 31959
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
Server-ID: : USNJWWEB03
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: .ASPXANONYMOUS=AcwXPQmse*0zYWEwNTdmMS04MDlmLTRmZGYtYTRjYi00MDFjZDlmYWE0ZmI1; expires=Fri, 20-May-2011 22:27:00 GMT; path=/
Set-Cookie: ASP.NET_SessionId=ltfzun55f0v31ke5klo0egey; path=/; HttpOnly
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Date: Sat, 12 Mar 2011 12:47:00 GMT


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="head"><title>
   Denise Austin's Best Fitness Moves Fo
...[SNIP]...
</script>
<script language="javascript" type="text/javascript" src="http://tracking.waterfrontmedia.com/GCScript.ashx?p=18"></script>
...[SNIP]...
</script>

<script src='https://ssl.google-analytics.com/urchin.js' type='text/javascript'></script>
...[SNIP]...

4. Cookie without HttpOnly flag set  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.deniseaustin.com
Path:   /exercises/triceps-chair-dip.aspx

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.

Request

GET /exercises/triceps-chair-dip.aspx HTTP/1.1
Host: www.deniseaustin.com
Proxy-Connection: keep-alive
Referer: http://www.everydayhealth.com/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 31959
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/6.0
Server-ID: : USNJWWEB03
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: .ASPXANONYMOUS=AcwXPQmse*0zYWEwNTdmMS04MDlmLTRmZGYtYTRjYi00MDFjZDlmYWE0ZmI1; expires=Fri, 20-May-2011 22:27:00 GMT; path=/
Set-Cookie: ASP.NET_SessionId=ltfzun55f0v31ke5klo0egey; path=/; HttpOnly
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Set-Cookie: FunnelCookie=0=442474125&2=F073D937-9572-433E-B08C-54034774E4BF; expires=Sat, 19-Mar-2011 11:47:00 GMT; path=/
Date: Sat, 12 Mar 2011 12:47:00 GMT


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="head"><title>
   Denise Austin's Best Fitness Moves Fo
...[SNIP]...

Report generated by XSS.CX at Sat Mar 12 07:04:53 CST 2011.