News for hackers. Stuff that matters.
Re:SQL injection search by a1a on Saturday June 01, 2013 @02:46PM (#5805331)
Re:SQL injection search by btipling on Saturday June 01, 2013 @03:09PM (#5805466)
Re:SQL injection search by gingerlime on Saturday June 01, 2013 @04:04PM (#5805722)
this one seems to produce quite a lot of false-positives though, doesn't it?
Re:SQL injection search by btipling on Saturday June 01, 2013 @09:41PM (#5806930)
Those all look like XSS vulnerabilities to me.
Re:SQL injection search by gingerlime on Sunday June 02, 2013 @05:52AM (#5807910)
Of course this is a pretty good starting point to find XSS, but I still see quite a few false positives:

the first result I see currently: https://github.com/matsprehn/122B/blob/1d54d2a72f25a23d63ff7...

also spotted this, which looks pretty harmless: https://github.com/cameroni2003/picgrid/blob/0b3becda1f250ef...

a lot others look similar, plus it depends on context...

Re:SQL injection search by btipling on Monday June 03, 2013 @08:31AM (#5812815)
Yes, sure. Those two do not reveal vulnerabilities just from the results, but I have to wonder at not using templates on the first.
Re:SQL injection search by timothya on Saturday June 01, 2013 @04:50PM (#5805953)
Is it an XSS if you can only make it output code to your own browser? I can already execute whatever JavaScript I want in the console, so what's the advantage of having the server deliver that code to (only) me?

I can definitely see the issue if the server saves the unfiltered input and tries to print that out for other uses, but it seems to me that outputting a raw $_GET variable will only go to the requester and therefore could only run unfiltered code on that requesters machine.

EDIT: Answering my own question:

This is a security hole because the unsafe JavaScript is stored in the URL for the page (it is a GET parameter). This bad URL could then be sent as a link in a spam email or similar. Victims clicking on the link would then see a page that comes from the legitimate source, but is running unsafe code compromising that user's session. This sort of attack relies on the attacker distributing the link with the bad code as a URL parameter, and is not a vulnerability that a user could encounter when just visiting that site as I had first assumed.

Re:SQL injection search by arthurschreiber on Saturday June 01, 2013 @04:56PM (#5805974)
That's _exactly_ what XSS is about. One possible way to exploit things like this is if I send you a link to a website, that embeds the target page through an iframe with javascript output injected. I could then have the JS steal your cookies/session or worse.
Re:SQL injection search by mgkimsal on Saturday June 01, 2013 @05:21PM (#5806060)
Or bit.ly/shortener links - you got it. I used to think like you did - what harm is there in 'exploiting' my own browser? Took a while for the penny to drop in my case.
Re:SQL injection search by a1a on Saturday June 01, 2013 @05:07PM (#5806021)
Yes. They are referred to as "reflective" or "non-persistent" XSS vulnerabilities. The attacker might exploit these using for example an "invisible" iframe on a different website, and thus loading the vulnerable website, in the background, with the desired parameters. This will result in the malicious javascript being executed "on the vuln. website", in the victims browser.

This (http://web.math.jjay.cuny.edu/fcm791/web2.0_Vulnerabilities....) is a pretty good paper (jump to page 7) if you are interested.

Re:SQL injection search by krapp on Saturday June 01, 2013 @05:02PM (#5806004)