XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, resume.monster.ca

Report generated by XSS.CX at Thu Aug 18 11:29:05 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

1. Cross-site scripting (reflected)

XSS in resume.monster.ca, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

2. Cross-domain script include

2.1. http://resume.monster.ca/

2.2. http://resume.monster.ca/



1. Cross-site scripting (reflected)  next

Summary

Severity:   Low
Confidence:   Certain
Host:   http://resume.monster.ca
Path:   /

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 40a20'-alert(1)-'3c27d55cf0e 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.

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.

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.

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.

Request

GET / HTTP/1.1
Host: resume.monster.ca
Proxy-Connection: keep-alive
Referer: http://www.google.com/search?hl=en&q=40a20'-alert(1)-'3c27d55cf0e
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: DOMAINALIAS=CAEN; split_scsjsv=35; 13_JSRadius=32; JSResultsView=1; JSResultsPerPage=15; jsLucCrit=q=xss&cy=ca; jsCrit=q%3dxss%26cy%3dca%26ispowersearch%3d0; JSRTimeStamp=634492663116466883; NumberOfJSR=1; split_ssljsv=37; wtspc=5; s_cc=true; SaveSearchReturnURL=%2Fjobs%2F%3Fq%3Dxss%26cy%3Dca; uslc=1; scsjsv=0; ssljsv=1; WT_FPC=id=10.5.199.242-3840748576.30170569:lv=1313687613465:ss=1313687518575

Response

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: uslc=1; domain=.monster.ca; expires=Thu, 25-Aug-2011 17:15:28 GMT; path=/
Set-Cookie: scsjsv=1; domain=.monster.ca; path=/
Set-Cookie: ssljsv=1; domain=.monster.ca; path=/
Set-Cookie: scsjsv=1; domain=.monster.ca; path=/
Set-Cookie: ssljsv=1; domain=.monster.ca; path=/
Set-Cookie: TC_Top=; expires=Tue, 19-Jul-2011 17:15:28 GMT; path=/
Set-Cookie: TC_Bottom=; expires=Tue, 19-Jul-2011 17:15:28 GMT; path=/
X-Powered-By: ASP.NET
P3P: CP=CAO DSP COR CURa ADMa DEVa TAIa IVAa IVDa CONo HISa TELo PSAa PSDa DELa UNRa PUBi OTRa BUS LEG PHY ONL UNI PUR COM NAV INT DEM CNT STA HEA PRE GOV OTC
Date: Thu, 18 Aug 2011 17:15:28 GMT
Content-Length: 132777
Vary: Accept-Encoding
Connection: Keep-Alive


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

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head id="ctl00_ct
...[SNIP]...
<img height="1" width="1" src="http://switch.atdmt.com/action/moncan_mymonsterlogin_10/v3/http%3a%2f%2fwww.google.com%2fsearch%3fhl%3den%26q%3d40a20'-alert(1)-'3c27d55cf0e/{1}" alt="" />
...[SNIP]...

2. Cross-domain script include  previous
There are 2 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.


2.1. http://resume.monster.ca/  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://resume.monster.ca
Path:   /

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET / HTTP/1.1
Host: resume.monster.ca
Proxy-Connection: keep-alive
Referer: http://my.monster.ca/Become-Member/Create-Account.aspx
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: DOMAINALIAS=CAEN; split_scsjsv=35; 13_JSRadius=32; JSResultsView=1; JSResultsPerPage=15; jsLucCrit=q=xss&cy=ca; jsCrit=q%3dxss%26cy%3dca%26ispowersearch%3d0; JSRTimeStamp=634492663116466883; NumberOfJSR=1; split_ssljsv=37; wtspc=5; s_cc=true; SaveSearchReturnURL=%2Fjobs%2F%3Fq%3Dxss%26cy%3Dca; uslc=1; scsjsv=0; ssljsv=1; WT_FPC=id=10.5.199.242-3840748576.30170569:lv=1313687613465:ss=1313687518575

Response

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: uslc=1; domain=.monster.ca; expires=Thu, 25-Aug-2011 17:13:31 GMT; path=/
Set-Cookie: scsjsv=0; domain=.monster.ca; path=/
Set-Cookie: ssljsv=1; domain=.monster.ca; path=/
Set-Cookie: scsjsv=0; domain=.monster.ca; path=/
Set-Cookie: ssljsv=1; domain=.monster.ca; path=/
Set-Cookie: TC_Top=; expires=Tue, 19-Jul-2011 17:13:31 GMT; path=/
Set-Cookie: TC_Bottom=; expires=Tue, 19-Jul-2011 17:13:31 GMT; path=/
X-Powered-By: ASP.NET
P3P: CP=CAO DSP COR CURa ADMa DEVa TAIa IVAa IVDa CONo HISa TELo PSAa PSDa DELa UNRa PUBi OTRa BUS LEG PHY ONL UNI PUR COM NAV INT DEM CNT STA HEA PRE GOV OTC
Date: Thu, 18 Aug 2011 17:13:30 GMT
Content-Length: 132695
Vary: Accept-Encoding
Connection: Keep-Alive


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

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head id="ctl00_ct
...[SNIP]...
<link href="http://css-seeker.newjobs.com/CAEN/v3.5.9.16/scsUICore_css.axd" rel="stylesheet" type="text/css" />
<script src="http://js-seeker.newjobs.com/CAEN/v3.5.9.2802/global_js.axd" type="text/javascript"></script>
<script src="http://js-seeker.newjobs.com/CAEN/v3.5.9.16/scsUICore_js.axd" type="text/javascript"></script>
...[SNIP]...
</script>

<script language="JavaScript 1.1" type="text/javascript" src="http://ads.monster.com/js.ng/Params.richmedia=no&site=caen&affiliate=caen&app=resume20&size=0x0&pp=10&path=/&tile=f756894ae9f143cb" id="AdScript_10_ctl00$ctl00$ctl00$body$BannerAdHeader" name="AdScript_10_ctl00$ctl00$ctl00$body$BannerAdHeader">

</script>
...[SNIP]...
</div>


<script src="http://media.newjobs.com/js/wt/DCS000008_1N8L.js" TYPE="text/javascript"></script>
...[SNIP]...

2.2. http://resume.monster.ca/  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://resume.monster.ca
Path:   /

Issue detail

The response dynamically includes the following scripts from other domains:

Request

GET / HTTP/1.1
Host: resume.monster.ca
Proxy-Connection: keep-alive
Referer: http://my.monster.ca/Career-Management/Landing.aspx
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: DOMAINALIAS=CAEN; split_scsjsv=35; 13_JSRadius=32; JSResultsView=1; JSResultsPerPage=15; jsLucCrit=q=xss&cy=ca; jsCrit=q%3dxss%26cy%3dca%26ispowersearch%3d0; JSRTimeStamp=634492663116466883; NumberOfJSR=1; split_ssljsv=37; wtspc=5; SaveSearchReturnURL=%2Fjobs%2F%3Fq%3Dxss%26cy%3Dca; ASP.NET_SessionId=agx1gh24hk5qneucpuujln55; uslc=1; scsjsv=1; ssljsv=1; s_cc=true; WT_FPC=id=10.5.199.242-3840748576.30170569:lv=1313687707801:ss=1313687518575

Response

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
Set-Cookie: uslc=1; domain=.monster.ca; expires=Thu, 25-Aug-2011 17:15:00 GMT; path=/
Set-Cookie: scsjsv=1; domain=.monster.ca; path=/
Set-Cookie: ssljsv=1; domain=.monster.ca; path=/
Set-Cookie: scsjsv=1; domain=.monster.ca; path=/
Set-Cookie: ssljsv=1; domain=.monster.ca; path=/
Set-Cookie: TC_Top=; expires=Tue, 19-Jul-2011 17:15:00 GMT; path=/
Set-Cookie: TC_Bottom=; expires=Tue, 19-Jul-2011 17:15:00 GMT; path=/
X-Powered-By: ASP.NET
P3P: CP=CAO DSP COR CURa ADMa DEVa TAIa IVAa IVDa CONo HISa TELo PSAa PSDa DELa UNRa PUBi OTRa BUS LEG PHY ONL UNI PUR COM NAV INT DEM CNT STA HEA PRE GOV OTC
Date: Thu, 18 Aug 2011 17:15:00 GMT
Content-Length: 132839
Vary: Accept-Encoding
Connection: Keep-Alive


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

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head id="ctl00_ct
...[SNIP]...
<link href="http://css-seeker.newjobs.com/CAEN/v3.5.9.16/scsUICore_css.axd" rel="stylesheet" type="text/css" />
<script src="http://js-seeker.newjobs.com/CAEN/v3.5.9.2802/global_js.axd" type="text/javascript"></script>
<script src="http://js-seeker.newjobs.com/CAEN/v3.5.9.16/scsUICore_js.axd" type="text/javascript"></script>
...[SNIP]...
</script>

<script language="JavaScript 1.1" type="text/javascript" src="http://ads.monster.com/js.ng/Params.richmedia=no&site=caen&affiliate=caen&app=resume20&size=0x0&pp=10&path=/&tile=6a48f6c512784e26" id="AdScript_10_ctl00$ctl00$ctl00$body$BannerAdHeader" name="AdScript_10_ctl00$ctl00$ctl00$body$BannerAdHeader">

</script>
...[SNIP]...
</div>


<script src="http://media.newjobs.com/js/wt/DCS000008_1N8L.js" TYPE="text/javascript"></script>
...[SNIP]...

Report generated by XSS.CX at Thu Aug 18 11:29:05 GMT-06:00 2011.