From 212124e022e68f8c03bfe24bdf08787404126c8c Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 10 May 2017 15:31:30 +0200 Subject: Add ICT in de Wolken presentation --- slides/xss/index.html | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 slides/xss/index.html (limited to 'slides/xss/index.html') diff --git a/slides/xss/index.html b/slides/xss/index.html new file mode 100644 index 0000000..2e43568 --- /dev/null +++ b/slides/xss/index.html @@ -0,0 +1,79 @@ +--- +layout: slides +title: Security +scripts: [ ./script.js ] +styles: [ ../reveal.js/theme/blood.css, ../reveal.js/zenburn.css, ./style.css ] +--- +
+
+
+

XSS Injections

+
+ Noah Loomans +
+
Noah Loomans
+
67B0 295A C271 345D 0706 4B9B 8B23 75F3 B367 DF6D
+
+
+
+
+

Cross Site Scripting

+
+
+

Sample Code

+

+<?php
+
+$sql = "SELECT comment FROM comments";
+$result = $conn->query($sql);
+
+// output data of each row
+while($row = $result->fetch_assoc()) {
+    echo $row["comment"] . "<br>";
+}
+
+?>
+			
+
+
+

What if I enter <b>hello</b>?

+
+
+

+<p class="comments">
+This sucks<br>
+First!<br>
+<b>hello.</b><br>
+</p>̿
+			
+
+
+

<script>

+
+
+

Sample Code

+

+<?php
+
+$sql = "SELECT comment FROM comments";
+$result = $conn->query($sql);
+
+// output data of each row
+while($row = $result->fetch_assoc()) {
+  echo htmlspecialchars($row["comment"]); . "<br>";
+}
+
+?>
+      
+

+ Source: w3schools +

+
+
+

< -> &lt;

+
+
+ https://hack-challange-nloomans.c9users.io/ +
+
+
-- cgit v1.1