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 +++++++++++++++++++++++++++++++++++++++++++++++++++ slides/xss/script.js | 6 ++++ slides/xss/style.css | 26 +++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 slides/xss/index.html create mode 100644 slides/xss/script.js create mode 100644 slides/xss/style.css (limited to 'slides/xss') 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/ +
+
+
diff --git a/slides/xss/script.js b/slides/xss/script.js new file mode 100644 index 0000000..d617911 --- /dev/null +++ b/slides/xss/script.js @@ -0,0 +1,6 @@ +/* global Reveal */ + +Reveal.initialize({ + history: true, + backgroundTransition: 'zoom' +}) diff --git a/slides/xss/style.css b/slides/xss/style.css new file mode 100644 index 0000000..d7e92e0 --- /dev/null +++ b/slides/xss/style.css @@ -0,0 +1,26 @@ +.profile { + background-color: rgba(255, 255, 255, 0.05);; + display: flex; + align-items: center; + border-radius: 8px; + max-width: 650px; + margin: 0 auto !important; +} + +.profile img { + width: 120px; + height: 120px; + border-radius: 50%; + margin: 16px !important; +} + +.profile .info { + margin: 16px; + text-align: left; +} + +.profile .pgp-key { + font-family: "Roboto Mono"; + font-size: 15px; + color: gray; +} -- cgit v1.1