cvs: presentations / sapi-input-adam-2005.xml wereldveroverend-adam-2005.xml /slides/encryption hash-example.xml tropics.png /slides/i18nl10n
title-adam.xml /slides/input-filter casting.xml filtering.xml mod_security.xml resources.xml sapi-input-filter.xml sif-db-schema.xml
| From: | Derick Rethans | Date: | Sun, 08 May 2005 12:33:10 +0000 |
| Subject: | cvs: presentations / sapi-input-adam-2005.xml wereldveroverend-adam-2005.xml /slides/encryption hash-example.xml tropics.png /slides/i18nl10n title-adam.xml /slides/input-filter casting.xml filtering.xml mod_security.xml resources.xml sapi-input-filter.xml sif-db-schema.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1129@lists.php.net to get a copy of this message | ||
derick Sun May 8 08:33:10 2005 EDT
Modified files:
/presentations sapi-input-adam-2005.xml
wereldveroverend-adam-2005.xml
/presentations/slides/encryption hash-example.xml tropics.png
/presentations/slides/i18nl10n title-adam.xml
/presentations/slides/input-filter casting.xml filtering.xml
mod_security.xml resources.xml
sapi-input-filter.xml
sif-db-schema.xml
Log:
- Added SAPI Filter code slides
- Update encryption slides
http://cvs.php.net/diff.php/presentations/sapi-input-adam-2005.xml?r1=1.1&r2=1.2&ty=u Index: presentations/sapi-input-adam-2005.xml diff -u presentations/sapi-input-adam-2005.xml:1.1 presentations/sapi-input-adam-2005.xml:1.2 --- presentations/sapi-input-adam-2005.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/sapi-input-adam-2005.xml Sun May 8 08:33:08 2005 @@ -39,6 +39,12 @@ <!-- SQLite Input Filter --> <slide>slides/input-filter/sif-db-schema.xml</slide> <!-- table diagram --> +<slide>slides/input-filter/sif-register.xml</slide> <!-- filter registration and signature --> +<slide>slides/input-filter/sif-init.xml</slide> <!-- reading rules --> +<slide>slides/input-filter/sif-filter-1.xml</slide> <!-- the filter function (overview) --> +<slide>slides/input-filter/sif-filter-2.xml</slide> <!-- the filter function (conversion) --> +<slide>slides/input-filter/sif-filter-3.xml</slide> <!-- the filter function (fallback) --> +<slide>slides/input-filter/sif-improvements.xml</slide> <!-- future improvements --> <slide>slides/input-filter/resources.xml</slide> http://cvs.php.net/diff.php/presentations/wereldveroverend-adam-2005.xml?r1=1.2&r2=1.3&ty=u Index: presentations/wereldveroverend-adam-2005.xml diff -u presentations/wereldveroverend-adam-2005.xml:1.2 presentations/wereldveroverend-adam-2005.xml:1.3 --- presentations/wereldveroverend-adam-2005.xml:1.2 Wed Apr 27 09:11:38 2005 +++ presentations/wereldveroverend-adam-2005.xml Sun May 8 08:33:08 2005 @@ -12,7 +12,7 @@ <title>Dominating the World</title> <event>International PHP Conference 2005</event> <location>Amsterdam, the Netherlands</location> -<date>May 3rd, 2005</date> +<date>May 4th, 2005</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://derickrethans.nl/talks.php</url> http://cvs.php.net/diff.php/presentations/slides/encryption/hash-example.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/encryption/hash-example.xml diff -u presentations/slides/encryption/hash-example.xml:1.2 presentations/slides/encryption/hash-example.xml:1.3 --- presentations/slides/encryption/hash-example.xml:1.2 Wed Mar 23 07:36:10 2005 +++ presentations/slides/encryption/hash-example.xml Sun May 8 08:33:09 2005 @@ -6,14 +6,14 @@ define('SECRETKEY', 'quis custodiet ipsos custodes'); if (isset($_COOKIE['stamp'])) { - if ($_COOKIE['stamp'] == sha1($_COOKIE['data'] . 'SECRETKEY')) { + if ($_COOKIE['stamp'] == sha1($_COOKIE['data'] . SECRETKEY)) { echo "Validated!\n"; } else { echo "<blink>Not validated</blink>"; } } else { $_COOKIE['data'] = '00110100011'; - $_COOKIE['stamp'] = sha1($_COOKIE['data'] . 'SECRETKEY'); + $_COOKIE['stamp'] = sha1($_COOKIE['data'] . SECRETKEY); } ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/encryption/tropics.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/encryption/tropics.png http://cvs.php.net/diff.php/presentations/slides/i18nl10n/title-adam.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/title-adam.xml diff -u presentations/slides/i18nl10n/title-adam.xml:1.1 presentations/slides/i18nl10n/title-adam.xml:1.2 --- presentations/slides/i18nl10n/title-adam.xml:1.1 Tue Apr 26 10:24:47 2005 +++ presentations/slides/i18nl10n/title-adam.xml Sun May 8 08:33:09 2005 @@ -5,7 +5,7 @@ <break lines="3"/> <blurb class="event">International PHP Conference 2005</blurb> <break/> -<blurb class="event-date">May 3rd, Amsterdam, the Netherlands</blurb> +<blurb class="event-date">May 4th, Amsterdam, the Netherlands</blurb> <break/> <blurb class="event-presenter">Derick Rethans &lt;<a href="mailto:dr@ez.no">dr@ez.no</a>&gt;</blurb> <break/> http://cvs.php.net/diff.php/presentations/slides/input-filter/casting.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/casting.xml diff -u presentations/slides/input-filter/casting.xml:1.1 presentations/slides/input-filter/casting.xml:1.2 --- presentations/slides/input-filter/casting.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/casting.xml Sun May 8 08:33:09 2005 @@ -20,13 +20,13 @@ <div effect="hide"> <break lines="4"/> - <blurb>!</blurb> + <blurb>:-)</blurb> <break/> <example>http://example.com/script.php?uid=42'%20or%20''='</example> <break/> <example>SELECT card_num, card_name, card_expiry FROM credit_cards -WHERE uid = '42' or ''=''</example> +WHERE uid = '42'</example> </div> </slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/filtering.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/filtering.xml diff -u presentations/slides/input-filter/filtering.xml:1.1 presentations/slides/input-filter/filtering.xml:1.2 --- presentations/slides/input-filter/filtering.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/filtering.xml Sun May 8 08:33:09 2005 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide fontsize="6em"> + <title>Filtering</title> + + <example><![CDATA[<html> + <head> + <title>Example</title> + </head> + <body> + Name: <?php echo htmlentities($_GET['name']); ?> + </body> +</html>]]> +</example> + + <break/> + <example>http://example.com/script.php?name=derick</example> + <break/> + <blurb>Name: derick</blurb> + +<div effect="hide"> + <break lines="4"/> + <blurb>:-)</blurb> + <break/> + <example>http://example.com/script.php?name=<script>alert('!');</script></example> + <break/> + <blurb><![CDATA[<script>alert('!');</script>]]></blurb> +</div> + +</slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/mod_security.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/mod_security.xml diff -u presentations/slides/input-filter/mod_security.xml:1.1 presentations/slides/input-filter/mod_security.xml:1.2 --- presentations/slides/input-filter/mod_security.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/mod_security.xml Sun May 8 08:33:09 2005 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide fontsize="6em"> + <title>mod_security</title> + + <list> + <bullet>Apache module</bullet> + <bullet>Can be used to avoid certain attack</bullet> + <bullet>Is not PHP specific</bullet> + </list> + +</slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/resources.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/resources.xml diff -u presentations/slides/input-filter/resources.xml:1.1 presentations/slides/input-filter/resources.xml:1.2 --- presentations/slides/input-filter/resources.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/resources.xml Sun May 8 08:33:09 2005 @@ -6,8 +6,8 @@ <image align="center" filename="wall.gif" /> <break lines="2" /> - <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://derickrethans.nl/talks.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="These slides: " href="http://derickrethans.nl/talks.php" target="_new"/> - <link fontsize="3em" marginleft="2em" leader="Input Filter: " href="http://derickrethans.nl/sqlite_filter.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="SQLite Input Filter: " href="http://derickrethans.nl/sqlite_filter.php" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="mailto:dr@ez.no" target="_new"/> </slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/sapi-input-filter.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/sapi-input-filter.xml diff -u presentations/slides/input-filter/sapi-input-filter.xml:1.1 presentations/slides/input-filter/sapi-input-filter.xml:1.2 --- presentations/slides/input-filter/sapi-input-filter.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/sapi-input-filter.xml Sun May 8 08:33:09 2005 @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide fontsize="6em"> + <title>SAPI Input filter</title> + + <list> + <bullet>Sits between PHP and the webserver</bullet> + <bullet>Is used while fetching data from users sources</bullet> + <bullet>Can be used to filter data</bullet> + <bullet>Prohibit data from entering PHP</bullet> + <bullet>Written as a C extension to PHP</bullet> + <bullet>Server wide filter</bullet> + </list> + +</slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/sif-db-schema.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/sif-db-schema.xml diff -u presentations/slides/input-filter/sif-db-schema.xml:1.1 presentations/slides/input-filter/sif-db-schema.xml:1.2 --- presentations/slides/input-filter/sif-db-schema.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/sif-db-schema.xml Sun May 8 08:33:09 2005 @@ -1,6 +1,18 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Input Filter DB Schema</title> + <title>Rules</title> <image align="center" filename="sif-db-schema.png" /> +<break lines="2"/> + <blurb>For each page you can define:</blurb> + <list> + <bullet>Which variables have a filter assigned</bullet> + <bullet>What the type of that variable should be ^1^</bullet> + <bullet>For integers: what range the variable should be in</bullet> + <bullet>For text: what filters should be run on the data ^2^</bullet> + </list> + +<break lines="7"/> + <blurb class="small_blurb">^1^ bool, long, double or string</blurb> + <blurb class="small_blurb">^2^ not implemented yet</blurb> </slide>
http://cvs.php.net/diff.php/presentations/sapi-input-adam-2005.xml?r1=1.1&r2=1.2&ty=u Index: presentations/sapi-input-adam-2005.xml diff -u presentations/sapi-input-adam-2005.xml:1.1 presentations/sapi-input-adam-2005.xml:1.2 --- presentations/sapi-input-adam-2005.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/sapi-input-adam-2005.xml Sun May 8 08:33:08 2005 @@ -39,6 +39,12 @@ <!-- SQLite Input Filter --> <slide>slides/input-filter/sif-db-schema.xml</slide> <!-- table diagram --> +<slide>slides/input-filter/sif-register.xml</slide> <!-- filter registration and signature --> +<slide>slides/input-filter/sif-init.xml</slide> <!-- reading rules --> +<slide>slides/input-filter/sif-filter-1.xml</slide> <!-- the filter function (overview) --> +<slide>slides/input-filter/sif-filter-2.xml</slide> <!-- the filter function (conversion) --> +<slide>slides/input-filter/sif-filter-3.xml</slide> <!-- the filter function (fallback) --> +<slide>slides/input-filter/sif-improvements.xml</slide> <!-- future improvements --> <slide>slides/input-filter/resources.xml</slide> http://cvs.php.net/diff.php/presentations/wereldveroverend-adam-2005.xml?r1=1.2&r2=1.3&ty=u Index: presentations/wereldveroverend-adam-2005.xml diff -u presentations/wereldveroverend-adam-2005.xml:1.2 presentations/wereldveroverend-adam-2005.xml:1.3 --- presentations/wereldveroverend-adam-2005.xml:1.2 Wed Apr 27 09:11:38 2005 +++ presentations/wereldveroverend-adam-2005.xml Sun May 8 08:33:08 2005 @@ -12,7 +12,7 @@ <title>Dominating the World</title> <event>International PHP Conference 2005</event> <location>Amsterdam, the Netherlands</location> -<date>May 3rd, 2005</date> +<date>May 4th, 2005</date> <speaker>Derick Rethans</speaker> <email>dr@ez.no</email> <url>http://derickrethans.nl/talks.php</url> http://cvs.php.net/diff.php/presentations/slides/encryption/hash-example.xml?r1=1.2&r2=1.3&ty=u Index: presentations/slides/encryption/hash-example.xml diff -u presentations/slides/encryption/hash-example.xml:1.2 presentations/slides/encryption/hash-example.xml:1.3 --- presentations/slides/encryption/hash-example.xml:1.2 Wed Mar 23 07:36:10 2005 +++ presentations/slides/encryption/hash-example.xml Sun May 8 08:33:09 2005 @@ -6,14 +6,14 @@ define('SECRETKEY', 'quis custodiet ipsos custodes'); if (isset($_COOKIE['stamp'])) { - if ($_COOKIE['stamp'] == sha1($_COOKIE['data'] . 'SECRETKEY')) { + if ($_COOKIE['stamp'] == sha1($_COOKIE['data'] . SECRETKEY)) { echo "Validated!\n"; } else { echo "<blink>Not validated</blink>"; } } else { $_COOKIE['data'] = '00110100011'; - $_COOKIE['stamp'] = sha1($_COOKIE['data'] . 'SECRETKEY'); + $_COOKIE['stamp'] = sha1($_COOKIE['data'] . SECRETKEY); } ?>]]></example> http://cvs.php.net/diff.php/presentations/slides/encryption/tropics.png?r1=1.1&r2=1.2&ty=u Index: presentations/slides/encryption/tropics.png http://cvs.php.net/diff.php/presentations/slides/i18nl10n/title-adam.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/i18nl10n/title-adam.xml diff -u presentations/slides/i18nl10n/title-adam.xml:1.1 presentations/slides/i18nl10n/title-adam.xml:1.2 --- presentations/slides/i18nl10n/title-adam.xml:1.1 Tue Apr 26 10:24:47 2005 +++ presentations/slides/i18nl10n/title-adam.xml Sun May 8 08:33:09 2005 @@ -5,7 +5,7 @@ <break lines="3"/> <blurb class="event">International PHP Conference 2005</blurb> <break/> -<blurb class="event-date">May 3rd, Amsterdam, the Netherlands</blurb> +<blurb class="event-date">May 4th, Amsterdam, the Netherlands</blurb> <break/> <blurb class="event-presenter">Derick Rethans &lt;<a href="mailto:dr@ez.no">dr@ez.no</a>&gt;</blurb> <break/> http://cvs.php.net/diff.php/presentations/slides/input-filter/casting.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/casting.xml diff -u presentations/slides/input-filter/casting.xml:1.1 presentations/slides/input-filter/casting.xml:1.2 --- presentations/slides/input-filter/casting.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/casting.xml Sun May 8 08:33:09 2005 @@ -20,13 +20,13 @@ <div effect="hide"> <break lines="4"/> - <blurb>!</blurb> + <blurb>:-)</blurb> <break/> <example>http://example.com/script.php?uid=42'%20or%20''='</example> <break/> <example>SELECT card_num, card_name, card_expiry FROM credit_cards -WHERE uid = '42' or ''=''</example> +WHERE uid = '42'</example> </div> </slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/filtering.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/filtering.xml diff -u presentations/slides/input-filter/filtering.xml:1.1 presentations/slides/input-filter/filtering.xml:1.2 --- presentations/slides/input-filter/filtering.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/filtering.xml Sun May 8 08:33:09 2005 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide fontsize="6em"> + <title>Filtering</title> + + <example><![CDATA[<html> + <head> + <title>Example</title> + </head> + <body> + Name: <?php echo htmlentities($_GET['name']); ?> + </body> +</html>]]> +</example> + + <break/> + <example>http://example.com/script.php?name=derick</example> + <break/> + <blurb>Name: derick</blurb> + +<div effect="hide"> + <break lines="4"/> + <blurb>:-)</blurb> + <break/> + <example>http://example.com/script.php?name=<script>alert('!');</script></example> + <break/> + <blurb><![CDATA[<script>alert('!');</script>]]></blurb> +</div> + +</slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/mod_security.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/mod_security.xml diff -u presentations/slides/input-filter/mod_security.xml:1.1 presentations/slides/input-filter/mod_security.xml:1.2 --- presentations/slides/input-filter/mod_security.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/mod_security.xml Sun May 8 08:33:09 2005 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide fontsize="6em"> + <title>mod_security</title> + + <list> + <bullet>Apache module</bullet> + <bullet>Can be used to avoid certain attack</bullet> + <bullet>Is not PHP specific</bullet> + </list> + +</slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/resources.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/resources.xml diff -u presentations/slides/input-filter/resources.xml:1.1 presentations/slides/input-filter/resources.xml:1.2 --- presentations/slides/input-filter/resources.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/resources.xml Sun May 8 08:33:09 2005 @@ -6,8 +6,8 @@ <image align="center" filename="wall.gif" /> <break lines="2" /> - <link fontsize="3em" marginleft="2em" leader="These Slides: " href="http://derickrethans.nl/talks.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="These slides: " href="http://derickrethans.nl/talks.php" target="_new"/> - <link fontsize="3em" marginleft="2em" leader="Input Filter: " href="http://derickrethans.nl/sqlite_filter.php" target="_new"/> + <link fontsize="3em" marginleft="2em" leader="SQLite Input Filter: " href="http://derickrethans.nl/sqlite_filter.php" target="_new"/> <link fontsize="3em" marginleft="2em" leader="Questions?: " href="mailto:dr@ez.no" target="_new"/> </slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/sapi-input-filter.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/sapi-input-filter.xml diff -u presentations/slides/input-filter/sapi-input-filter.xml:1.1 presentations/slides/input-filter/sapi-input-filter.xml:1.2 --- presentations/slides/input-filter/sapi-input-filter.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/sapi-input-filter.xml Sun May 8 08:33:09 2005 @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide fontsize="6em"> + <title>SAPI Input filter</title> + + <list> + <bullet>Sits between PHP and the webserver</bullet> + <bullet>Is used while fetching data from users sources</bullet> + <bullet>Can be used to filter data</bullet> + <bullet>Prohibit data from entering PHP</bullet> + <bullet>Written as a C extension to PHP</bullet> + <bullet>Server wide filter</bullet> + </list> + +</slide> http://cvs.php.net/diff.php/presentations/slides/input-filter/sif-db-schema.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/input-filter/sif-db-schema.xml diff -u presentations/slides/input-filter/sif-db-schema.xml:1.1 presentations/slides/input-filter/sif-db-schema.xml:1.2 --- presentations/slides/input-filter/sif-db-schema.xml:1.1 Fri Apr 29 16:53:33 2005 +++ presentations/slides/input-filter/sif-db-schema.xml Sun May 8 08:33:09 2005 @@ -1,6 +1,18 @@ <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> - <title>Input Filter DB Schema</title> + <title>Rules</title> <image align="center" filename="sif-db-schema.png" /> +<break lines="2"/> + <blurb>For each page you can define:</blurb> + <list> + <bullet>Which variables have a filter assigned</bullet> + <bullet>What the type of that variable should be ^1^</bullet> + <bullet>For integers: what range the variable should be in</bullet> + <bullet>For text: what filters should be run on the data ^2^</bullet> + </list> + +<break lines="7"/> + <blurb class="small_blurb">^1^ bool, long, double or string</blurb> + <blurb class="small_blurb">^2^ not implemented yet</blurb> </slide>