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

Report generated by XSS.CX at Sun Jun 05 07:14:37 CDT 2011.

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

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

Loading

1. Cross-site scripting (reflected)

2. Cookie without HttpOnly flag set

2.1. http://www.servicemagic.com/ext/706046

2.2. http://www.servicemagic.com/ext/793795

2.3. http://www.servicemagic.com/ext/795020

2.4. http://www.servicemagic.com/ext/795021

2.5. http://www.servicemagic.com/ext/795022

2.6. http://www.servicemagic.com/ext/795214

2.7. http://www.servicemagic.com/ext/795216

2.8. http://www.servicemagic.com/ext/795217

2.9. http://www.servicemagic.com/ext/795218



1. Cross-site scripting (reflected)  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://www.servicemagic.com
Path:   /ext/706046

Issue detail

The value of the Referer HTTP header is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 823c1"><script>alert(1)</script>093b7e2c9a8 was submitted in the Referer HTTP header. 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.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Because the user data that is copied into the response is submitted within a request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

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.

Request

GET /ext/706046 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Referer: http://www.google.com/search?hl=en&q=823c1"><script>alert(1)</script>093b7e2c9a8

Response (redirected)

HTTP/1.0 200 OK
Set-Cookie: ServerID=1231; path=/
Date: Fri, 03 Jun 2011 01:41:09 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=18F72EF854CAC480077B9DD5BE659D6D.workerpr031-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:41:09 GMT; Path=/
Set-Cookie: csdcn=1307065269644; Expires=Mon, 02-Jun-2014 01:41:09 GMT; Path=/
Set-Cookie: originatingSessionID=1307065269644pwspr03118F72EF854CAC480077B9DD5BE659D6D.workerpr031-1; Expires=Mon, 02-Jun-2014 01:41:09 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:41:09 GMT; Path=/
Set-Cookie: csacn=746971; Expires=Mon, 02-Jun-2014 01:41:09 GMT; Path=/
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Vary: Accept-Encoding
Connection: close
Content-Type: text/html;charset=ISO-8859-1

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


<!-- /rfs/home/guestHome.jsp -->
<html xmlns="http://www.w3.org/1999/xhtml"
...[SNIP]...
<input type="hidden" name="referringUrl" value="/search?hl=en&q=823c1"><script>alert(1)</script>093b7e2c9a8"/>
...[SNIP]...

2. Cookie without HttpOnly flag set  previous
There are 9 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.



2.1. http://www.servicemagic.com/ext/706046  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/706046

Issue detail

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

Request

GET /ext/706046 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1230; path=/
Date: Fri, 03 Jun 2011 01:40:52 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=52C73CE3AE1D4607E513A590F3BDF41D.workerpr030-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csdcn=1307065252402; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: originatingSessionID=1307065252401pwspr03052C73CE3AE1D4607E513A590F3BDF41D.workerpr030-1; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csacn=3181196; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Location: /
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.2. http://www.servicemagic.com/ext/793795  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/793795

Issue detail

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

Request

GET /ext/793795 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1210; path=/
Date: Fri, 03 Jun 2011 01:40:53 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=43AF1C280309ADCFB310D164D4B9ABDA.workerpr10-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csdcn=1307065253998; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: originatingSessionID=1307065253998pwspr01043AF1C280309ADCFB310D164D4B9ABDA.workerpr10-1; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Location: /sem/category.Siding.10399.html?m=msnhouseandhome&entry_point_id=793795
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.3. http://www.servicemagic.com/ext/795020  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795020

Issue detail

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

Request

GET /ext/795020 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1211; path=/
Date: Fri, 03 Jun 2011 01:40:52 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=719AD7007AE2B0376C67F17917980282.workerpr011-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csdcn=1307065252531; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: originatingSessionID=1307065252528pwspr011719AD7007AE2B0376C67F17917980282.workerpr011-1; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Location: /sem/category.Landscape-Decks-Fences.10212.html?m=msnhouseandhome&entry_point_id=795020
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.4. http://www.servicemagic.com/ext/795021  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795021

Issue detail

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

Request

GET /ext/795021 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1227; path=/
Date: Fri, 03 Jun 2011 01:40:52 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=6EC4E034CE1DE0FAA3CD1138CB1CADF4.workerpr027-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csdcn=1307065252472; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: originatingSessionID=1307065252472pwspr0276EC4E034CE1DE0FAA3CD1138CB1CADF4.workerpr027-1; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Location: /sem/category.Landscape-Decks-Fences.10212.html?m=msnhouseandhome&entry_point_id=795021
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.5. http://www.servicemagic.com/ext/795022  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795022

Issue detail

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

Request

GET /ext/795022 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1212; path=/
Date: Fri, 03 Jun 2011 01:40:52 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=9E46A4A9304D6B1016CD3A67FC26B89F.workerpr012-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csdcn=1307065252815; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: originatingSessionID=1307065252814pwspr0129E46A4A9304D6B1016CD3A67FC26B89F.workerpr012-1; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:52 GMT; Path=/
Location: /sem/category.Landscape-Decks-Fences.10212.html?m=msnhouseandhome&entry_point_id=795022
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.6. http://www.servicemagic.com/ext/795214  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795214

Issue detail

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

Request

GET /ext/795214 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1211; path=/
Date: Fri, 03 Jun 2011 01:40:53 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=BB1979C6DC541521E0AD39FF0A14DA62.workerpr011-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csdcn=1307065253250; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: originatingSessionID=1307065253250pwspr011BB1979C6DC541521E0AD39FF0A14DA62.workerpr011-1; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Location: /sem/task.Sunroom-or-Patio-Enclosure-Build.40154.html?m=msnhouseandhome&entry_point_id=795214
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.7. http://www.servicemagic.com/ext/795216  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795216

Issue detail

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

Request

GET /ext/795216 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1210; path=/
Date: Fri, 03 Jun 2011 01:40:53 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=197C1203DD0623F61AB6E260706AF8D7.workerpr10-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csdcn=1307065253561; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: originatingSessionID=1307065253561pwspr010197C1203DD0623F61AB6E260706AF8D7.workerpr10-1; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Location: /sem/category.Additions-Remodels.10201.html?m=msnhouseandhome&entry_point_id=795216
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.8. http://www.servicemagic.com/ext/795217  previous  next

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795217

Issue detail

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

Request

GET /ext/795217 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1230; path=/
Date: Fri, 03 Jun 2011 01:40:53 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=1A4BC6D63454BBB400E1F35627F08698.workerpr030-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csdcn=1307065253659; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: originatingSessionID=1307065253659pwspr0301A4BC6D63454BBB400E1F35627F08698.workerpr030-1; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Location: /sem/category.Roofing-Siding-Gutters.10217.html?m=msnhouseandhome&entry_point_id=795217
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


2.9. http://www.servicemagic.com/ext/795218  previous

Summary

Severity:   Low
Confidence:   Firm
Host:   http://www.servicemagic.com
Path:   /ext/795218

Issue detail

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

Request

GET /ext/795218 HTTP/1.1
Host: www.servicemagic.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 301 Moved Permanently
Set-Cookie: ServerID=1212; path=/
Date: Fri, 03 Jun 2011 01:40:53 GMT
Server: Apache/2
Set-Cookie: JSESSIONID=CA1CCF3AFFE331A606FCB528E9157C30.workerpr012-1; Path=/
Set-Cookie: psacn=; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csdcn=1307065253711; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: originatingSessionID=1307065253711pwspr012CA1CCF3AFFE331A606FCB528E9157C30.workerpr012-1; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: psdcn=0; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Set-Cookie: csacn=8786438; Expires=Mon, 02-Jun-2014 01:40:53 GMT; Path=/
Location: /sem/category.Painting-Staining.10215.html?m=msnhouseandhome&entry_point_id=795218
Content-Length: 0
P3P: CP='CAO DSP COR CUR ADMa DEVa PSDa CONi TELi OUR BUS PHY ONL UNI COM NAV INT STA GOV'
Connection: close
Content-Type: text/plain; charset=ISO-8859-1


Report generated by XSS.CX at Sun Jun 05 07:14:37 CDT 2011.