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

Report generated by XSS.CX at Thu Aug 18 16:04:23 GMT-06:00 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)

XSS in signup.clicksor.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

2. Cleartext submission of password

3. Flash cross-domain policy

4. Password field with autocomplete enabled

5. Cookie scoped to parent domain

6. Cross-domain Referer leakage

7. Cookie without HttpOnly flag set

8. TRACE method is enabled

9. Email addresses disclosed

10. Content type incorrectly stated



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /advertisers_account.php

Issue detail

The value of the aid request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4806e"><script>alert(1)</script>e79aaf372d3 was submitted in the aid parameter. This input was echoed as 4806e\"><script>alert(1)</script>e79aaf372d3 in the application's response.

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

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.

Request

GET /advertisers_account.php?service=1&aid=4806e"><script>alert(1)</script>e79aaf372d3&nid= HTTP/1.1
Host: signup.clicksor.com
Proxy-Connection: keep-alive
Referer: http://signup.clicksor.com/advertisers_choose.php
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Cookie: __utma=1.1062213131.1313703945.1313703945.1313703945.1; __utmb=1.1.10.1313703945; __utmc=1; __utmz=1.1313703945.1.1.utmcsr=clicksor.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmv=1.|5=vid=ea3d090d5f27dc2dd1c074ccb536f244=1

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:55:58 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 30393

<html>
<head>
<title>Open an advertiser account</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="pay per click advertising, contextua
...[SNIP]...
<input type="hidden" name="aid" value="4806e\"><script>alert(1)</script>e79aaf372d3">
...[SNIP]...

2. Cleartext submission of password  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /advertisers_account.php

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 fields:

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 defence 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 /advertisers_account.php?service=1&aid=&nid= HTTP/1.1
Host: signup.clicksor.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: txtlnk=fn2ff93lul0g8t62ua060t6ro0; __utma=127012239.1675465494.1313704166.1313704166.1313704166.1; __utmb=127012239.2.10.1313704166; __utmc=127012239; __utmz=127012239.1313704166.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName
Cache-Control: max-age=0

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:50:04 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 30322

<html>
<head>
<title>Open an advertiser account</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="pay per click advertising, contextua
...[SNIP]...
</script>

<FORM name = "form" id = "form" onsubmit="return submitCheck(this);" action = "advertisers_account.php?nid=100" METHOD = "POST">
<!--- for rpc tracking--->
...[SNIP]...
<td class="text_bold_green" height="30" nowrap>
                        <input type="password" name="password" id="password" title="checkPass" class="inputbox" maxlength="12" size="15">
                        <div id="passDiv" style="display:none;">
...[SNIP]...
<td class="text_bold_green" height="30" nowrap>
                            <input type="password" name="RePassword" id="RePassword" title="checkPass" class="inputbox" maxlength="12" size="15">
                            <div id="RepassDiv" style="display:none;">
...[SNIP]...

3. Flash cross-domain policy  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which uses a wildcard to specify allowed domains, and allows access from specific subdomains.

Using a wildcard to specify allowed domains means that any domain matching the wildcard expression can perform two-way interaction with this application. You should only use this policy if you fully trust every possible web site that may reside on a domain which matches the wildcard expression.

Allowing access from specific domains means that web sites on those domains can perform two-way interaction with this application. You should only use this policy if you fully trust the specific domains allowed by the policy.

Issue background

The Flash cross-domain policy controls whether Flash client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Flash cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /crossdomain.xml HTTP/1.0
Host: signup.clicksor.com

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:54:56 GMT
Server: Apache/2.2.17 (Fedora)
Last-Modified: Thu, 19 Nov 2009 15:44:32 GMT
ETag: "300330-13f-478bb3c41b800"
Accept-Ranges: bytes
Content-Length: 319
Connection: close
Content-Type: text/xml

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.clicksor.com" />
<allow-access-from domain="*.clicksor.net" />
<allow-access-from domain="clicksor.com" />
...[SNIP]...

4. Password field with autocomplete enabled  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /advertisers_account.php

Issue detail

The page contains a form with the following action URL:The form contains the following password fields 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 /advertisers_account.php?service=1&aid=&nid= HTTP/1.1
Host: signup.clicksor.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: txtlnk=fn2ff93lul0g8t62ua060t6ro0; __utma=127012239.1675465494.1313704166.1313704166.1313704166.1; __utmb=127012239.2.10.1313704166; __utmc=127012239; __utmz=127012239.1313704166.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName
Cache-Control: max-age=0

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:50:04 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 30322

<html>
<head>
<title>Open an advertiser account</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="pay per click advertising, contextua
...[SNIP]...
</script>

<FORM name = "form" id = "form" onsubmit="return submitCheck(this);" action = "advertisers_account.php?nid=100" METHOD = "POST">
<!--- for rpc tracking--->
...[SNIP]...
<td class="text_bold_green" height="30" nowrap>
                        <input type="password" name="password" id="password" title="checkPass" class="inputbox" maxlength="12" size="15">
                        <div id="passDiv" style="display:none;">
...[SNIP]...
<td class="text_bold_green" height="30" nowrap>
                            <input type="password" name="RePassword" id="RePassword" title="checkPass" class="inputbox" maxlength="12" size="15">
                            <div id="RepassDiv" style="display:none;">
...[SNIP]...

5. Cookie scoped to parent domain  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /imageverify.php

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its 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 /imageverify.php HTTP/1.1
Host: signup.clicksor.com
Proxy-Connection: keep-alive
Referer: http://signup.clicksor.com/advertisers_account.php?service=1&aid=&nid=
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
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
Cookie: __utma=1.1062213131.1313703945.1313703945.1313703945.1; __utmb=1.1.10.1313703945; __utmc=1; __utmz=1.1313703945.1.1.utmcsr=clicksor.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmv=1.|5=vid=ea3d090d5f27dc2dd1c074ccb536f244=1

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:45:37 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Set-Cookie: txtlnk=jhnoi2rsf81lc9hqtkhtuniuq0; path=/; domain=.clicksor.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 2397
Connection: close
Content-Type: image/jpeg

.PNG
.
...IHDR...d.........U9,...    $IDATh..Z[L.g.>s..c......%...@..!.i...m....%..iUi..[.>T.>Dj.Z...}.>t....J..D!.R..Vb...VB..v...2.....$...O.............9.9...9{...Lx.^.....SQ.%.n.....lc....h....K6.
...[SNIP]...

6. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /advertisers_account.php

Issue detail

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

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.

Request

GET /advertisers_account.php?service=1&aid=&nid= HTTP/1.1
Host: signup.clicksor.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: txtlnk=fn2ff93lul0g8t62ua060t6ro0; __utma=127012239.1675465494.1313704166.1313704166.1313704166.1; __utmb=127012239.2.10.1313704166; __utmc=127012239; __utmz=127012239.1313704166.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName
Cache-Control: max-age=0

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:50:04 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Length: 30322

<html>
<head>
<title>Open an advertiser account</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="pay per click advertising, contextua
...[SNIP]...
<td class="no" width="410" nowrap align="center"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=xpt/general/SolutionGraphics-outside#" target="_blank"><img src="images/paypal_logos.gif" width="348" height="34" alt="Paypal" border="0">
...[SNIP]...

7. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /imageverify.php

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its 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 /imageverify.php HTTP/1.1
Host: signup.clicksor.com
Proxy-Connection: keep-alive
Referer: http://signup.clicksor.com/advertisers_account.php?service=1&aid=&nid=
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
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
Cookie: __utma=1.1062213131.1313703945.1313703945.1313703945.1; __utmb=1.1.10.1313703945; __utmc=1; __utmz=1.1313703945.1.1.utmcsr=clicksor.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmv=1.|5=vid=ea3d090d5f27dc2dd1c074ccb536f244=1

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:45:37 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Set-Cookie: txtlnk=jhnoi2rsf81lc9hqtkhtuniuq0; path=/; domain=.clicksor.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 2397
Connection: close
Content-Type: image/jpeg

.PNG
.
...IHDR...d.........U9,...    $IDATh..Z[L.g.>s..c......%...@..!.i...m....%..iUi..[.>T.>Dj.Z...}.>t....J..D!.R..Vb...VB..v...2.....$...O.............9.9...9{...Lx.^.....SQ.%.n.....lc....h....K6.
...[SNIP]...

8. TRACE method is enabled  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /

Issue description

The TRACE method is designed for diagnostic purposes. If enabled, the web server will respond to requests which use the TRACE method by echoing in its response the exact request which was received.

Although this behaviour is apparently harmless in itself, it can sometimes be leveraged to support attacks against other application users. If an attacker can find a way of causing a user to make a TRACE request, and can retrieve the response to that request, then the attacker will be able to capture any sensitive data which is included in the request by the user's browser, for example session cookies or credentials for platform-level authentication. This may exacerbate the impact of other vulnerabilities, such as cross-site scripting.

Issue remediation

The TRACE method should be disabled on the web server.

Request

TRACE / HTTP/1.0
Host: signup.clicksor.com
Cookie: e554e98fa5f8a0a0

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:54:56 GMT
Server: Apache/2.2.17 (Fedora)
Connection: close
Content-Type: message/http

TRACE / HTTP/1.0
Host: signup.clicksor.com
Cookie: e554e98fa5f8a0a0; click_visit=ban; __utmv=1.|5=vid=ea3d090d5f27dc2dd1c074ccb536f244=1; __utmc=127012239; __utma=127012239.1675465494.1313704166.1313704166.1313704166.1; __utmz=127012239.1313704166.1.1.utmcsr=fakerefer
...[SNIP]...

9. Email addresses disclosed  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://signup.clicksor.com
Path:   /include/emailchecker.js

Issue detail

The following email address was disclosed in the response:

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

Request

GET /include/emailchecker.js HTTP/1.1
Host: signup.clicksor.com
Proxy-Connection: keep-alive
Referer: http://signup.clicksor.com/advertisers_account.php?service=1&aid=&nid=
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
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
Cookie: __utma=1.1062213131.1313703945.1313703945.1313703945.1; __utmb=1.1.10.1313703945; __utmc=1; __utmz=1.1313703945.1.1.utmcsr=clicksor.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmv=1.|5=vid=ea3d090d5f27dc2dd1c074ccb536f244=1

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:45:37 GMT
Server: Apache/2.2.17 (Fedora)
Last-Modified: Thu, 19 Nov 2009 15:40:21 GMT
ETag: "320d6c-1c06-478bb2d4bc340"
Accept-Ranges: bytes
Content-Length: 7174
Connection: close
Content-Type: text/javascript


var EMAIL1_CHECK_BOX = "cross.gif";
var EMAIL2_CHECK_BOX = "cross.gif";

function emailCheck (emailStr) {

/* The following variable tells the rest of the function whether or not

...[SNIP]...
ents an atom (basically a series of non-special characters.) */

var atom=validChars + '+';

/* The following string represents one word in the typical username.
For example, in john.doe@somewhere.com, john and doe are words.
Basically, a word is either an atom or quoted string. */

var word="(" + atom + "|" + quotedUser + ")";

// The following pattern describes the structur
...[SNIP]...

10. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://signup.clicksor.com
Path:   /imageverify.php

Issue detail

The response contains the following Content-type statement:The response states that it contains a JPEG image. However, it actually appears to contain a PNG image.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement 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 a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /imageverify.php HTTP/1.1
Host: signup.clicksor.com
Proxy-Connection: keep-alive
Referer: http://signup.clicksor.com/advertisers_account.php?service=1&aid=&nid=
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
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
Cookie: __utma=1.1062213131.1313703945.1313703945.1313703945.1; __utmb=1.1.10.1313703945; __utmc=1; __utmz=1.1313703945.1.1.utmcsr=clicksor.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmv=1.|5=vid=ea3d090d5f27dc2dd1c074ccb536f244=1

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 21:45:37 GMT
Server: Apache/2.2.17 (Fedora)
X-Powered-By: PHP/5.3.6
Set-Cookie: txtlnk=jhnoi2rsf81lc9hqtkhtuniuq0; path=/; domain=.clicksor.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 2397
Connection: close
Content-Type: image/jpeg

.PNG
.
...IHDR...d.........U9,...    $IDATh..Z[L.g.>s..c......%...@..!.i...m....%..iUi..[.>T.>Dj.Z...}.>t....J..D!.R..Vb...VB..v...2.....$...O.............9.9...9{...Lx.^.....SQ.%.n.....lc....h....K6.
...[SNIP]...

Report generated by XSS.CX at Thu Aug 18 16:04:23 GMT-06:00 2011.