cvs: presentations /slides/php-under-attack csrf.png csrf_diagram.xml csrf_example.php csrf_example_explained.xml csrf_intro.xml csrf_prevention.xml
xss.png xss_diagram.xml xss_example_simple.xml xss_intro.xml xss_prevention.xml
| From: | Chris Shiflett | Date: | Fri, 11 Jul 2003 01:47:27 +0000 |
| Subject: | cvs: presentations /slides/php-under-attack csrf.png csrf_diagram.xml csrf_example.php csrf_example_explained.xml csrf_intro.xml csrf_prevention.xml xss.png xss_diagram.xml xss_example_simple.xml xss_intro.xml xss_prevention.xml |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-805@lists.php.net to get a copy of this message | ||
shiflett Thu Jul 10 21:47:27 2003 EDT
Added files:
/presentations/slides/php-under-attack csrf.png csrf_diagram.xml
xss.png xss_diagram.xml
Modified files:
/presentations/slides/php-under-attack csrf_example.php
csrf_example_explained.xml
csrf_intro.xml
csrf_prevention.xml
xss_example_simple.xml
xss_intro.xml
xss_prevention.xml
Log:
Last second slide tweaks
Index: presentations/slides/php-under-attack/csrf_example.php
diff -u presentations/slides/php-under-attack/csrf_example.php:1.1
presentations/slides/php-under-attack/csrf_example.php:1.2
--- presentations/slides/php-under-attack/csrf_example.php:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/csrf_example.php Thu Jul 10 21:47:27 2003
@@ -1,6 +1,6 @@
<?
-$url = 'show/php-under-attack/8';
-$tag = "<img src=\"$url?message=CSRF\">";
+$url = 'show.php/php-under-attack/6';
+$tag = "<img src=\"$url?message=Hi\">";
echo htmlentities($tag);
echo $tag;
?>
Index: presentations/slides/php-under-attack/csrf_example_explained.xml
diff -u presentations/slides/php-under-attack/csrf_example_explained.xml:1.1
presentations/slides/php-under-attack/csrf_example_explained.xml:1.2
--- presentations/slides/php-under-attack/csrf_example_explained.xml:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/csrf_example_explained.xml Thu Jul 10 21:47:27 2003
@@ -1,9 +1,9 @@
<slide fontsize="4em">
<title>How Does It Work?</title>
-<blurb fontsize="3.5em">
+<blurb fontsize="4em">
Requests for images are no different than requests for any other URL.
</blurb>
-<blurb fontsize="3.5em">
+<blurb fontsize="4em">
POST requests can also be forged, though not as secretly.
</blurb>
</slide>
Index: presentations/slides/php-under-attack/csrf_intro.xml
diff -u presentations/slides/php-under-attack/csrf_intro.xml:1.1
presentations/slides/php-under-attack/csrf_intro.xml:1.2
--- presentations/slides/php-under-attack/csrf_intro.xml:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/csrf_intro.xml Thu Jul 10 21:47:27 2003
@@ -1,28 +1,28 @@
<slide fontsize="4em">
<title>What is CSRF?</title>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Exploits the trust a site has for a particular user
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Generally involves Web sites that rely completely on the
identification of the user for security
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Involves "tricking" a user into unknowingly sending an HTTP request
of the attacker's choosing
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Represents the best reason to disable register_globals
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
No easy solution - depends on application design
</bullet>
Index: presentations/slides/php-under-attack/csrf_prevention.xml
diff -u presentations/slides/php-under-attack/csrf_prevention.xml:1.1
presentations/slides/php-under-attack/csrf_prevention.xml:1.2
--- presentations/slides/php-under-attack/csrf_prevention.xml:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/csrf_prevention.xml Thu Jul 10 21:47:27 2003
@@ -1,10 +1,18 @@
<slide fontsize="4em">
<title>Preventing CSRF Attacks</title>
-<list fontsize="3em">
+<list fontsize="4em">
<bullet>Use POST rather than GET in forms</bullet>
+</list>
+<list fontsize="4em">
<bullet>Turn off register_globals and use $_POST instead</bullet>
+</list>
+<list fontsize="4em">
<bullet>Don't make important actions too easy</bullet>
+</list>
+<list fontsize="4em">
<bullet>Try to force the use of your own forms</bullet>
+</list>
+<list fontsize="4em">
<bullet>Learn from your peers!</bullet>
</list>
</slide>
Index: presentations/slides/php-under-attack/xss_example_simple.xml
diff -u presentations/slides/php-under-attack/xss_example_simple.xml:1.1
presentations/slides/php-under-attack/xss_example_simple.xml:1.2
--- presentations/slides/php-under-attack/xss_example_simple.xml:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/xss_example_simple.xml Thu Jul 10 21:47:27 2003
@@ -1,9 +1,8 @@
<slide fontsize="4em">
<title>Simple XSS Example</title>
-<blurb fontsize="3.5em">Simple but harmless attack</blurb>
+<blurb fontsize="4em">Simple but harmless attack</blurb>
<example filename="xss_example_simple.php" />
-<blurb fontsize="3.5em">
- If this script is sent by a trusted site, the potential for danger should
- be clear.
+<blurb fontsize="4em">
+ If this script is sent by a trusted site, it will be trusted as much as the site that sent it.
This is where the danger lies.
</blurb>
</slide>
Index: presentations/slides/php-under-attack/xss_intro.xml
diff -u presentations/slides/php-under-attack/xss_intro.xml:1.1
presentations/slides/php-under-attack/xss_intro.xml:1.2
--- presentations/slides/php-under-attack/xss_intro.xml:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/xss_intro.xml Thu Jul 10 21:47:27 2003
@@ -1,22 +1,22 @@
<slide fontsize="4em">
<title>What is XSS?</title>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Exploits the trust a user has for a particular site
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Generally involves Web sites that display foreign data (Web mail,
forums, syndicated content, etc.)
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Can be anything - executing malicious scripts, stealing cookies, etc.
</bullet>
</list>
-<list fontsize="3.5em">
+<list fontsize="4em">
<bullet>
Popularized by the media
</bullet>
Index: presentations/slides/php-under-attack/xss_prevention.xml
diff -u presentations/slides/php-under-attack/xss_prevention.xml:1.1
presentations/slides/php-under-attack/xss_prevention.xml:1.2
--- presentations/slides/php-under-attack/xss_prevention.xml:1.1 Wed Jun 18 01:04:25 2003
+++ presentations/slides/php-under-attack/xss_prevention.xml Thu Jul 10 21:47:27 2003
@@ -1,9 +1,15 @@
<slide fontsize="4em">
<title>Preventing XSS Attacks</title>
-<list fontsize="3em">
+<list fontsize="4em">
<bullet>Filter ALL foreign data</bullet>
+</list>
+<list fontsize="4em">
<bullet>Let PHP help - htmlentities(), strip_tags(), utf8_decode(), etc.</bullet>
+</list>
+<list fontsize="4em">
<bullet>Don't try to guess bad tags - only allow safe ones</bullet>
+</list>
+<list fontsize="4em">
<bullet>The bad guys are very creative - you must be, too!</bullet>
</list>
</slide>
Index: presentations/slides/php-under-attack/csrf_diagram.xml
+++ presentations/slides/php-under-attack/csrf_diagram.xml
<slide fontsize="4em">
<title>CSRF Diagram</title>
<image align="center" filename="csrf.png" />
</slide>
Index: presentations/slides/php-under-attack/xss_diagram.xml
+++ presentations/slides/php-under-attack/xss_diagram.xml
<slide fontsize="4em">
<title>XSS Diagram</title>
<image align="center" filename="xss.png" />
</slide>