<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: DIY Widgets: XSS components to other sites</title>
	<atom:link href="http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Tue, 16 Mar 2010 01:41:49 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dr Nic</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-232383</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 06 Dec 2006 20:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-232383</guid>
		<description>I just noticed &quot;aspx&quot; in your comment so I assume you&#039;re looking for an ASP.NET example. Perhaps check out AJAX.NET library?</description>
		<content:encoded><![CDATA[<p>I just noticed &#8220;aspx&#8221; in your comment so I assume you&#8217;re looking for an ASP.NET example. Perhaps check out AJAX.NET library?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-232379</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 06 Dec 2006 20:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-232379</guid>
		<description>Are you asking, &quot;how do I generate the JavaScript based on database data?&quot; That would be server-side specific. But you might generate the following:


var profiledata = [1,2,3,4];
MyMagicXss.serverResponse(profiledata);
</description>
		<content:encoded><![CDATA[<p>Are you asking, &#8220;how do I generate the JavaScript based on database data?&#8221; That would be server-side specific. But you might generate the following:</p>
<p>var profiledata = [1,2,3,4];<br />
MyMagicXss.serverResponse(profiledata);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renzo</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-230385</link>
		<dc:creator>Renzo</dc:creator>
		<pubDate>Tue, 05 Dec 2006 14:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-230385</guid>
		<description>Hi Dr Nic thanks for reply my comment but my answer was How to get data to database from javascript and put this value in this line 
profiledata = ?????? &#039;Value of DataBase&#039;
MyMagicXss.serverResponse([â€™profiledataâ€™]);

In your example, the method requestContent contain this line:
script.src = CONTENT_URL where CONTENT_URL = &quot;http://drnicwilliams.com/wp-content/uploads/2006/11/people_list.js&quot;; 

I could call to aspx page but how to return the data??</description>
		<content:encoded><![CDATA[<p>Hi Dr Nic thanks for reply my comment but my answer was How to get data to database from javascript and put this value in this line<br />
profiledata = ?????? &#8216;Value of DataBase&#8217;<br />
MyMagicXss.serverResponse([â€™profiledataâ€™]);</p>
<p>In your example, the method requestContent contain this line:<br />
script.src = CONTENT_URL where CONTENT_URL = &#8220;http://drnicwilliams.com/wp-content/uploads/2006/11/people_list.js&#8221;; </p>
<p>I could call to aspx page but how to return the data??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-230115</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Tue, 05 Dec 2006 09:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-230115</guid>
		<description>Yeah, that is the sort of JavaScript syntax you&#039;d need: you&#039;re passing any normal JavaScript value into the response method.</description>
		<content:encoded><![CDATA[<p>Yeah, that is the sort of JavaScript syntax you&#8217;d need: you&#8217;re passing any normal JavaScript value into the response method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renzo</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-229490</link>
		<dc:creator>Renzo</dc:creator>
		<pubDate>Mon, 04 Dec 2006 21:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-229490</guid>
		<description>Hi i want to know how get data to database and put in this line:
MyMagicXss.serverResponse([&#039;profiledata&#039;]); i don&#039;t know please help me 
Thanks. I work with c#, if you have some example with it would be perfect</description>
		<content:encoded><![CDATA[<p>Hi i want to know how get data to database and put in this line:<br />
MyMagicXss.serverResponse(['profiledata']); i don&#8217;t know please help me<br />
Thanks. I work with c#, if you have some example with it would be perfect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-204187</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 23 Nov 2006 11:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-204187</guid>
		<description>@SD - I think JavaScript, and all the things you can do with it, are still new to many people. Especially with wave of people coming into the web development arena.</description>
		<content:encoded><![CDATA[<p>@SD &#8211; I think JavaScript, and all the things you can do with it, are still new to many people. Especially with wave of people coming into the web development arena.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sad Developer</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-204112</link>
		<dc:creator>Sad Developer</dc:creator>
		<pubDate>Thu, 23 Nov 2006 10:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-204112</guid>
		<description>@Richard Ingams + @Dr Nic: I feel sarcasm (fair enough, considering that my comment was sarcasm as well)... what I am just trying to say is where is the news?
Tutorials for basic scripting and HTML are fine, but don&#039;t put this on Ajaxian. (as Schools are fine as long as you don&#039;t put the solution to 1+1 on the front page of newspapers)...
:)</description>
		<content:encoded><![CDATA[<p>@Richard Ingams + @Dr Nic: I feel sarcasm (fair enough, considering that my comment was sarcasm as well)&#8230; what I am just trying to say is where is the news?<br />
Tutorials for basic scripting and HTML are fine, but don&#8217;t put this on Ajaxian. (as Schools are fine as long as you don&#8217;t put the solution to 1+1 on the front page of newspapers)&#8230;<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-204005</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 23 Nov 2006 09:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-204005</guid>
		<description>@Kris - I agree that XSS can cause issues. I was just being brash and trying to create an interesting introduction into a longish article.

@Phill - i think yuo can run into difficulties if the 3rd party site is also loading libraries. For example, $(...) is implemented by prototype + jQuery differently. Embedding your widget in an iframe makes this clean though.

@Sad Developer - I&#039;m still working on an article &quot;Introducing HTML&quot; - stay tuned.</description>
		<content:encoded><![CDATA[<p>@Kris &#8211; I agree that XSS can cause issues. I was just being brash and trying to create an interesting introduction into a longish article.</p>
<p>@Phill &#8211; i think yuo can run into difficulties if the 3rd party site is also loading libraries. For example, $(&#8230;) is implemented by prototype + jQuery differently. Embedding your widget in an iframe makes this clean though.</p>
<p>@Sad Developer &#8211; I&#8217;m still working on an article &#8220;Introducing HTML&#8221; &#8211; stay tuned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-202963</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Wed, 22 Nov 2006 22:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-202963</guid>
		<description>And also, you did provide a nice, organized approach to doing xss, good job.  Just thought people should understand what xss means as a vulnerability.</description>
		<content:encoded><![CDATA[<p>And also, you did provide a nice, organized approach to doing xss, good job.  Just thought people should understand what xss means as a vulnerability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-202960</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Wed, 22 Nov 2006 22:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-202960</guid>
		<description>This statement on your site:
XSS rocks and Wikipedia is wrong
So, Wikipedia and Google differ in their thinking. Iâ€™m with Google. XSS rocks.
I do not believe this statement reflects an accurate understanding of cross site scripting as a security vulnerability.  Cross site scripting is vulnerability introduced by web browsers because many sites these days allow users to input data and show that data on the website (the essense of a blog).  However, if a malicious user inputs a xss script tag (as you just outlined in your article) that can be outputed by the html of the blog, and they can bring in their own JavaScript to read your cookies that might contain login information from the site you are blogging on and send it back to their own server.  In practice, cross site scripting vulnerability generally refers to the vulnerability in many web applications of accepting user input data (such as the form) without doing any escaping or stripping of script tags before outputing (when you read my comments).  Wikipedia is absolutely correct that this is a security vulnerability.  If you have ever built an application that receives and displays user input (and wanted it to be secure), you would know that there is often some extra work that goes in to preventing these situations. However, you would be mistaken to believe that taking advantage of this cross site scripting is itself a security vulnerability.  It is not inherently a security vulnerability to exploit a feature that is a security vulnerability.  Google is absolutely correct in utilizing xss, and so are you.  
BTW, I think that it is interesting that the browsers implementation of XmlHttpRequest prevents cross site access.  It would seem there were correcting for their oversight in allowing cross site script tags.</description>
		<content:encoded><![CDATA[<p>This statement on your site:<br />
XSS rocks and Wikipedia is wrong<br />
So, Wikipedia and Google differ in their thinking. Iâ€™m with Google. XSS rocks.<br />
I do not believe this statement reflects an accurate understanding of cross site scripting as a security vulnerability.  Cross site scripting is vulnerability introduced by web browsers because many sites these days allow users to input data and show that data on the website (the essense of a blog).  However, if a malicious user inputs a xss script tag (as you just outlined in your article) that can be outputed by the html of the blog, and they can bring in their own JavaScript to read your cookies that might contain login information from the site you are blogging on and send it back to their own server.  In practice, cross site scripting vulnerability generally refers to the vulnerability in many web applications of accepting user input data (such as the form) without doing any escaping or stripping of script tags before outputing (when you read my comments).  Wikipedia is absolutely correct that this is a security vulnerability.  If you have ever built an application that receives and displays user input (and wanted it to be secure), you would know that there is often some extra work that goes in to preventing these situations. However, you would be mistaken to believe that taking advantage of this cross site scripting is itself a security vulnerability.  It is not inherently a security vulnerability to exploit a feature that is a security vulnerability.  Google is absolutely correct in utilizing xss, and so are you.<br />
BTW, I think that it is interesting that the browsers implementation of XmlHttpRequest prevents cross site access.  It would seem there were correcting for their oversight in allowing cross site script tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Ingham</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-202793</link>
		<dc:creator>Richard Ingham</dc:creator>
		<pubDate>Wed, 22 Nov 2006 20:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-202793</guid>
		<description>&gt;&gt;lame article for newbiesâ€¦
Are you implying the article is lame because it is for newbies? Perhaps we should also get rid of schools, considering they&#039;re for newbies too.</description>
		<content:encoded><![CDATA[<p>&gt;&gt;lame article for newbiesâ€¦<br />
Are you implying the article is lame because it is for newbies? Perhaps we should also get rid of schools, considering they&#8217;re for newbies too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sad Developer</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-202301</link>
		<dc:creator>Sad Developer</dc:creator>
		<pubDate>Wed, 22 Nov 2006 17:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-202301</guid>
		<description>yo... this guy discovers the web... we have been doing this ever since javascripts exists (nearly)... remember hit counters?

lame article for newbies...</description>
		<content:encoded><![CDATA[<p>yo&#8230; this guy discovers the web&#8230; we have been doing this ever since javascripts exists (nearly)&#8230; remember hit counters?</p>
<p>lame article for newbies&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phill Kenoyer</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-202285</link>
		<dc:creator>Phill Kenoyer</dc:creator>
		<pubDate>Wed, 22 Nov 2006 16:49:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-202285</guid>
		<description>I&#039;ve been doing it this way for years.  Use the DOM to load Prototype/Script.aculo.us, CSS and my own DHTML magic.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been doing it this way for years.  Use the DOM to load Prototype/Script.aculo.us, CSS and my own DHTML magic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites/comment-page-1#comment-202152</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 22 Nov 2006 15:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/diy-widgets-xss-components-to-other-sites#comment-202152</guid>
		<description>You need to convert &lt;script -&gt; &lt;script in the article to make all the text appear :)</description>
		<content:encoded><![CDATA[<p>You need to convert &lt;script -&gt; &amp;lt;script in the article to make all the text appear :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
