cvs: presentations / yul07.xml /slides/intro opt_callgrind.xml opt_xdebug.xml perfsec_ref.xml the_web_is_broken.xml xsrf.xml xss_type1.xml
xss_type2.xml xss_type3.xml xss_type4.xml xss_type5.xml xss_type6.xml xss_type7.xml xss_type8.xml

From: Date: Fri, 16 Mar 2007 04:22:19 +0000
Subject: cvs: presentations / yul07.xml /slides/intro opt_callgrind.xml opt_xdebug.xml perfsec_ref.xml the_web_is_broken.xml xsrf.xml xss_type1.xml
xss_type2.xml xss_type3.xml xss_type4.xml xss_type5.xml xss_type6.xml xss_type7.xml xss_type8.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1389@lists.php.net to get a copy of this message
rasmus Fri Mar 16 04:22:19 2007 UTC Added files: /presentations yul07.xml /presentations/slides/intro opt_callgrind.xml opt_xdebug.xml perfsec_ref.xml xsrf.xml xss_type1.xml xss_type2.xml xss_type3.xml xss_type4.xml xss_type5.xml xss_type6.xml xss_type7.xml xss_type8.xml Modified files: /presentations/slides/intro the_web_is_broken.xml Log: Montreal talk

http://cvs.php.net/viewvc.cgi/presentations/slides/intro/the_web_is_broken.xml?r1=1.2&r2=1.3&diff_format=u Index: presentations/slides/intro/the_web_is_broken.xml diff -u presentations/slides/intro/the_web_is_broken.xml:1.2 presentations/slides/intro/the_web_is_broken.xml:1.3 --- presentations/slides/intro/the_web_is_broken.xml:1.2 Sat Feb 10 19:58:07 2007 +++ presentations/slides/intro/the_web_is_broken.xml Fri Mar 16 04:22:19 2007 @@ -1,7 +1,7 @@ <slide title="The Web keeps breaking"> <break lines="1" /> -<blurb fontsize="6em">Remote spoofing arbitrary request headers</blurb> +<blurb fontsize="5em">Remote spoofing arbitrary request headers</blurb> <example fontsize="2em" title="Courtesy of IE and Flash" result="0"><![CDATA[var req = new LoadVars(); req.addRequestHeader("Host:", "host.example.com"); @@ -11,7 +11,7 @@ A variation allows request splitting against servers with keep-alive enabled. </blurb> -<blurb fontsize="6em">Macrodobe involved again</blurb> +<blurb fontsize="5em">Macrodobe involved again</blurb> <example fontsize="2em" title="Acrobat" result="0"><![CDATA[http://example.org/foo.pdf#bar=javascript:alert('XSS'); ]]></example> http://cvs.php.net/viewvc.cgi/presentations/yul07.xml?view=markup&rev=1.1 Index: presentations/yul07.xml +++ presentations/yul07.xml <presentation template="php2" navmode="html" titlecolor="#1111aa" navbarbackground="url(images/trans-ffffff.png)" logo1="images/php-med-trans-light.gif" titlesize="2em" navbarheight="4.1em" > <!-- In order to build a successful modern web application you have to engage the user at a very primal level and harness each and every user in such a way that every action enhances the overall experience for all users. Translating this concept into code and making sure that an exponentially growing user base doesn't bring your application to its knees becomes an interesting problem to solve. Scale, latency, and security are the key words for this year's talk. In order to build these bigger and faster web applications, PHP has gotten bigger and faster as well. This talk will explore recent PHP development and apply it to the three key words. --> <topic>PHP</topic> <title>Bigger and Faster</title> <event>PHP Québec</event> <location>Montréal</location> <date>Mar.16, 2007</date> <speaker>Rasmus Lerdorf</speaker> <email>rasmus@php.net</email> <url>http://php.corp.yahoo.com/show/yul07</url> <slide>slides/intro/titlepage.xml</slide> <!-- Hormones --> <slide>slides/fowa/hist1.xml</slide> <slide>slides/fowa/hist2.xml</slide> <slide>slides/fowa/hist3.xml</slide> <slide>slides/fowa/hist4.xml</slide> <slide>slides/fowa/hist5.xml</slide> <slide>slides/intro/ossworks.xml</slide> <slide>slides/intro/ego.xml</slide> <slide>slides/intro/web20.xml</slide> <slide>slides/intro/web2works.xml</slide> <!-- Performance --> <slide>slides/intro/opt_callgrind.xml</slide> <slide>slides/intro/opt_xdebug.xml</slide> <!-- Security --> <slide>slides/yahoo/xss_basic.xml</slide> <slide>slides/yahoo/xss_yrisk.xml</slide> <slide>slides/intro/input_filter2.xml</slide> <slide>slides/intro/xss_type1.xml</slide> <slide>slides/intro/xss_type2.xml</slide> <slide>slides/intro/xss_type3.xml</slide> <slide>slides/intro/xss_type4.xml</slide> <slide>slides/intro/xss_type5.xml</slide> <slide>slides/intro/xss_type6.xml</slide> <slide>slides/intro/xss_type7.xml</slide> <slide>slides/intro/xss_type8.xml</slide> <slide>slides/intro/the_web_is_broken.xml</slide> <slide>slides/intro/xsrf.xml</slide> <slide>slides/intro/perfsec_ref.xml</slide> </presentation> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/opt_callgrind.xml?view=markup&rev=1.1 Index: presentations/slides/intro/opt_callgrind.xml +++ presentations/slides/intro/opt_callgrind.xml <slide title="Callgrind"> <break lines="2" /> <example fontsize="2.25em" type="shell" title="callgrind"><![CDATA[valgrind --tool=callgrind --collect-jumps==yes \ --dump-instr=yes --trace-jump=yes -v \ /usr/sbin/httpd -X]]></example> <example fontsize="2.25em" type="shell" title=""><![CDATA[chmod a+rw callgrind.out.XXXX]]></example> <example fontsize="1.5em" type="shell" title="callgrind_control"><![CDATA[Usage: callgrind_control [options] [ <PID>|<Name> ...] If no PIDs/Names are given, an action is applied to all currently active Callgrind runs. Default action is printing short information. Options: -h Print this help text -v Print version -q Be quiet -l Print more information -s Print status information -b Print backtrace information -e [A,..] Print event counters for A,.. [default: all] -d [str] Request a profile dump, include <str> as trigger hint -z Zero all cost counters -k Kill -i on/off Switch instrumentation state on/off -w <dir> Manually specify the working directory of a callgrind run]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/opt_xdebug.xml?view=markup&rev=1.1 Index: presentations/slides/intro/opt_xdebug.xml +++ presentations/slides/intro/opt_xdebug.xml <slide title="Xdebug"> <break lines="2" /> <link fontsize="3em" marginleft="1em" leader="Docs: " href="http://xdebug.org/docs-profiling2.php"/> <example fontsize="1.75em" type="shell" title="xdebug.ini"><![CDATA[ xdebug.profiler_enable = "1" xdebug.profiler_aggregate = On xdebug.profiler_output_dir = "/tmp" xdebug.profiler_output_name = "crc32" ; xdebug.remote_enable = "1" ; xdebug.remote_handler = "dbgp" ; xdebug.remote_host = "<your_client_box>.example.com" ; xdebug.remote_mode = "req" ; xdebug.allowed_clients = ""]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/perfsec_ref.xml?view=markup&rev=1.1 Index: presentations/slides/intro/perfsec_ref.xml +++ presentations/slides/intro/perfsec_ref.xml <slide title="Resources"> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <blurb> </blurb> <link fontsize="3em" marginleft="2em" leader="Slides: " href=":-:url:-:"/> <link fontsize="3em" marginleft="2em" leader="Xdebug Profiling: " href="http://xdebug.org/docs-profiling2.php"/> <link fontsize="3em" marginleft="2em" leader="sla.ckers.org: " href="http://sla.ckers.org/forum/list.php?3"/> <link fontsize="3em" marginleft="2em" leader="Filter: " href="http://php.net/filter"/> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xsrf.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xsrf.xml +++ presentations/slides/intro/xsrf.xml <slide title="XSRF"> <break lines="1"/> <blurb marginleft="2em" fontsize="6em">Use Crumbs!</blurb> <blurb> Include a user-specific crumb in the request data. </blurb> <example title="Generating the crumb" fontsize="1.7em" marginright="0.5em"><![CDATA[<?php $user = 'rasmus'; $secret = 'foo'; $crumb = sha1($user.$secret); ?> <script> function sndReq(formName) { YAHOO.util.Connect.setForm(formName); YAHOO.util.Connect.asyncRequest('POST','api.php',callback); } </script> <form name="myform" onsubmit="sndReq('myform'); return false;"> <input type="hidden" name="crumb" value="<?php echo $crumb?>"/> <input type="text" name="foo"/> </form>]]></example> <example title="Validating the crumb - api.php" fontsize="1.7em" marginright="0.5em"><![CDATA[<?php $user = 'rasmus'; $secret = 'foo'; if($_POST['crumb'] != sha1($user.$secret)) { echo json_encode(array("error"=>"XSRF Detected")); exit; } // Perform Action ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type1.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type1.xml +++ presentations/slides/intro/xss_type1.xml <slide title="XSS Types"> <break lines="8"/> <blurb fontsize="5em">Simple Unfiltered GET, POST or Cookie data</blurb> <example fontsize="1.75em" result="0"><![CDATA[<?php $foo = filter_input(INPUT_POST, 'foo', FILTER_UNSAFE_RAW); ?> <form action="/foo.html" method="POST"> <input type="text" name="foo" value="<?php echo $foo?>" /> </form>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type2.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type2.xml +++ presentations/slides/intro/xss_type2.xml <slide title="XSS Types"> <break lines="8"/> <blurb fontsize="5em">Unfiltered PHP_SELF/REQUEST_URI</blurb> <example fontsize="1.6em" result="0"><![CDATA[<?php $uri = getenv('REQUEST_URI'); $uri = $_SERVER('REQUEST_URI'); $uri = $PHP_SELF; $uri = filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_UNSAFE_RAW); ?> <a href="<?php echo $uri?>?page=2">Page 2</a>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type3.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type3.xml +++ presentations/slides/intro/xss_type3.xml <slide title="XSS Types"> <break lines="8"/> <blurb fontsize="5em">Unfiltered Request Headers</blurb> <example fontsize="1.75em" result="0"><![CDATA[<?php $uri = getenv('REFERER'); $uri = filter_input(INPUT_SERVER, 'REFERER', FILTER_UNSAFE_RAW); ?> <a href="<?php echo $uri?>">Back</a>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type4.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type4.xml +++ presentations/slides/intro/xss_type4.xml <slide title="XSS Types"> <break lines="8" /> <blurb fontsize="5em">One-Click</blurb> <example fontsize="2.5em" result="0"><![CDATA[<a href="<?php echo $_GET['_src']?>">Go</a>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type5.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type5.xml +++ presentations/slides/intro/xss_type5.xml <slide title="XSS Types"> <break lines="8"/> <blurb fontsize="5em">IE6 IMG SRC</blurb> <example fontsize="2.5em" result="0"><![CDATA[<img src="<?php echo $_GET['_src']?>"/>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type6.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type6.xml +++ presentations/slides/intro/xss_type6.xml <slide title="XSS Types"> <break lines="8"/> <blurb fontsize="5em">Manual Decoding</blurb> <example fontsize="2.5em" result="0"><![CDATA[<?php echo urldecode($_GET['foo'])?>]]></example> <example fontsize="2.5em" result="0"><![CDATA[<?php echo base64_decode($_GET['foo'])?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type7.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type7.xml +++ presentations/slides/intro/xss_type7.xml <slide title="XSS Types"> <break lines="6"/> <blurb fontsize="5em">Attribute Injection</blurb> <example fontsize="1.75em" result="0"><![CDATA[<input type=hidden name=foo value=<?php echo $_GET['foo']/>]]></example> <blurb fontsize="5em">Tricky Attribute Injection</blurb> <example result="0"><![CDATA[ <a href="/foo" onclick="location.href='/sq?arg=foo'+alert('xss_check')//'">]]></example> <blurb fontsize="5em">Pure Javascript</blurb> <example fontsize="2.5em" result="0"><![CDATA[foo.innerHTML = document.location.href;]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/intro/xss_type8.xml?view=markup&rev=1.1 Index: presentations/slides/intro/xss_type8.xml +++ presentations/slides/intro/xss_type8.xml <slide title="XSS Types"> <break lines="6"/> <blurb fontsize="5em">On* and Style Entity Trick</blurb> <example fontsize="1.5em" result="0"><![CDATA[<?php $foo = htmlspecialchars($_GET['foo'], ENT_QUOTES);?> <a href="" onmouseover="a='Fantas<?php echo $foo?>tic';">Mouse Over Me</a>]]></example> <example fontsize="1.5em" result="1" hide="0" title="Input: ?foo=';alert(0);//"><![CDATA[<a href="" onmouseover="a='Fantas&#039;;alert(0);//tic';">Mouse Over Me</a>]]></example> </slide>
« previous php.pres (#1389) next »