ukrapmusic.com | CWE-79 | XSS | Hoyt LLC Research

Loading

CWE-79, Cross Site Scripting, Vulnerability Crawler

Report generated by XSS.CX at Thu Dec 09 21:21:44 CST 2010.


Contents

1. Cross-site scripting (reflected)

2. Cleartext submission of password

2.1. http://www.ukrapmusic.com/

2.2. http://www.ukrapmusic.com/music/downloads

3. Password field with autocomplete enabled

3.1. http://www.ukrapmusic.com/

3.2. http://www.ukrapmusic.com/music/downloads

4. Cross-domain script include

5. Cookie without HttpOnly flag set

5.1. http://www.ukrapmusic.com/

5.2. http://www.ukrapmusic.com/music/downloads



1. Cross-site scripting (reflected)  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /music/downloads

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8d6f0%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e0f17a0eda8f was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 8d6f0\\\"><script>alert(1)</script>0f17a0eda8f 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.

Remediation detail

There is probably no need to perform a second URL-decode of the name of an arbitrarily supplied 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 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.

Request

GET /music/downloads?8d6f0%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e0f17a0eda8f=1 HTTP/1.1
Host: www.ukrapmusic.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 02:24:05 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=db9ff265e059cdc79c14b9fd06a0b70e; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:24:05 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:24:06 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 72380

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...
<link href="/music/downloads?8d6f0\\\"><script>alert(1)</script>0f17a0eda8f=1&amp;format=feed&amp;type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
...[SNIP]...

2. Cleartext submission of password  previous  next
There are 2 instances of this issue:

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


2.1. http://www.ukrapmusic.com/  next

Summary

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

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

Request

GET / HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=7a761c86a0d85eba1285ebc6935b2def; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:42 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:43 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 97814

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...
<div class="popup_col">
                   <form action="/component/user/?task=login" method="post" name="form-login" id="form-login" >
                       <fieldset class="input">
...[SNIP]...
<br />
                   <input type="password" name="passwd" id="passwd" class="inputbox" size="18" alt="password" />
               </label>
...[SNIP]...

2.2. http://www.ukrapmusic.com/music/downloads  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /music/downloads

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

Request

GET /music/downloads HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=b599ec7ad3c55445f331d0f3127b253a; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:43 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:44 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 71627

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...
<div class="popup_col">
                   <form action="/component/user/?task=login" method="post" name="form-login" id="form-login" >
                       <fieldset class="input">
...[SNIP]...
<br />
                   <input type="password" name="passwd" id="passwd" class="inputbox" size="18" alt="password" />
               </label>
...[SNIP]...

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


3.1. http://www.ukrapmusic.com/  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /

Issue detail

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

Request

GET / HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=7a761c86a0d85eba1285ebc6935b2def; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:42 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:43 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 97814

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...
<div class="popup_col">
                   <form action="/component/user/?task=login" method="post" name="form-login" id="form-login" >
                       <fieldset class="input">
...[SNIP]...
<br />
                   <input type="password" name="passwd" id="passwd" class="inputbox" size="18" alt="password" />
               </label>
...[SNIP]...

3.2. http://www.ukrapmusic.com/music/downloads  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /music/downloads

Issue detail

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

Request

GET /music/downloads HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=b599ec7ad3c55445f331d0f3127b253a; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:43 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:44 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 71627

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...
<div class="popup_col">
                   <form action="/component/user/?task=login" method="post" name="form-login" id="form-login" >
                       <fieldset class="input">
...[SNIP]...
<br />
                   <input type="password" name="passwd" id="passwd" class="inputbox" size="18" alt="password" />
               </label>
...[SNIP]...

4. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /

Issue detail

The response dynamically includes the following script from another domain:

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 / HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=7a761c86a0d85eba1285ebc6935b2def; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:42 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:43 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 97814

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...
<div class="moduletable_content">
                   <script src="http://widgets.twimg.com/j/2/widget.js"></script>
...[SNIP]...

5. Cookie without HttpOnly flag set  previous
There are 2 instances of this issue:

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.



5.1. http://www.ukrapmusic.com/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET / HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=7a761c86a0d85eba1285ebc6935b2def; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:42 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:43 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 97814

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...

5.2. http://www.ukrapmusic.com/music/downloads  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.ukrapmusic.com
Path:   /music/downloads

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /music/downloads HTTP/1.1
Host: www.ukrapmusic.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 02:23:42 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: d1e82936158014e00d4f43b35c19b7bf=b599ec7ad3c55445f331d0f3127b253a; path=/
Set-Cookie: gk_gamebox_tpl=gk_gamebox; expires=Wed, 30-Nov-2011 02:23:43 GMT; path=/
Last-Modified: Fri, 10 Dec 2010 02:23:44 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 71627

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang
...[SNIP]...

Report generated by XSS.CX at Thu Dec 09 21:21:44 CST 2010.