Mar 25, 2017 08:31 AM
(This post was last modified: Mar 25, 2017 09:01 AM by redlightrouter.)
Hey all,
I've made another xss challenge. Difficulty level is low to medium, but do not underestimate it.
XSS Challenge
Don't forget to PM me your solution :)
Good luck 🤝
![[Image: giEawR3.png]](https://i.imgur.com/giEawR3.png)
Mar 25, 2017 09:02 AM
(This post was last modified: Mar 25, 2017 09:30 AM by Faith Connors.)
you were right i am getting a headache
edit: figured out a possible vector. tooko a bit of setup though lol. pming soon and adding screenshot.
screenshot added:
humble rubyist in a world of pythonistas
(Mar 25, 2017 09:02 AM)Faith Connors Wrote: *************** Nice one, but unfortunately it's not what I had in mind.
HINT: Look at the source code
0x00 - Payload Sent !
Thanks !
(Mar 25, 2017 11:02 AM)redlightrouter Wrote: Nice one, but unfortunately it's not what I had in mind.
HINT: Look at the source code
An XSS is an XSS ✌
Malware Dev & Grey Hat available for contract work. DM if you need me.
OSCP, OSCE, OSEE, OSWE, OSWP, CEH, CISSP
Yeah, I've been around a while
Mar 26, 2017 08:50 AM
(This post was last modified: Mar 26, 2017 08:50 AM by redlightrouter.)
(Mar 25, 2017 10:58 PM)Nomad.Null Wrote: An XSS is an XSS ✌
I guess that's what you could call it, yeah :p.
(Mar 25, 2017 10:35 PM)Kashmiri Hunter Wrote: 0x00 - Payload Sent !
Thanks !
Nice, you got it right :)
Bro have you a sqli test/games??
(Mar 26, 2017 11:22 AM)Lsd-r2 Wrote: Bro have you a sqli test/games??
Nope sorry. I consider myself a noob in SQL, so I don't really know how to make an interesting challenge. I know how to make the standard/basic/too often used challenge, but like I said it's literally everywhere.
Belongs here I think.
Website Hacking
Can you hear my weed?
cuz it's loud
Mar 31, 2017 12:52 PM
(This post was last modified: Mar 31, 2017 12:52 PM by redlightrouter.)
I guess it's time for a little write up.
So these are being filtered:
PHP Code
<?php $blacklist = array('(',')','alert','eval','prompt','confirm','atob','<script>','&','javascript','data','\u{61}','http','https');
Changing those words to uppercase won't work since it will be treat as lowercase.
PHP Code
<?php foreach($blacklist as $i) { if(strpos(strtolower($_GET['xss']), $i)) { $_GET['xss'] = '1'; } }
EDIT: Something went wrong so I made a shorter version.
So what basically happens is that the once we try our basic img src payload it filters parentheses and alert,confirm and prompt.
In javascript it's possible to use unicoded letters in functions etc.
so instead of a normal alert I use a\u{6C}ert() ( or a\u006cert() )
Now the only thing that gets filtered are the parentheses.
In javascript it is also possible to use backticks ( ` ) as parentheses. The only thing is that the given argument will be handles as a string.
so the final payload is:
PHP Code
<?php <img src=x on*error="a\u{6C}ert``" >
REMOVE *
Thanks for your submissions!
Sorry, again i arrived later.
I found the solution before seeing the answers.
prntscr .com/fyy613
Thanks.
|