
The other day I was trying to gain access on some friend's site, unfortunately the SELECT command was revoked on the user i was trying for the mysql.users table, but, lucky for me, the guy had his own users table called tb_usuarios, through some blind SQL injection I was able to get access to the site, and to get ALL the users' emails and passwords; which is worth to say, most of the time matched the email passwords.
After notifying my friend about the BIG security hole tried to do some of the work I'm been paid for with no luck... was boring, so I google a new site and tried again.
First try and this is what i got:

good good, the guy didn't sanitized the queries, excellent, so, i tried a
union all select and started with 1 column
to my surprise after 20 columns the statement was the same
after some more tries, i went to my visual studio environment, created a simple application that will iterate from 1 number i choose to another, appending that to my url, thus appending it to my query...
And here is the weird thing, after 536 columns appended to the url, the result was always the same.
So, here I'm thinking, I know the guy/gal who developed the site wasn't smart, because is not sanitizing queries and allowing sql injection pretty easy, but, I don't know what s/he did to avoid the
union command.
Don't know if this is some kind of "security" thing or just dumb luck...
You need to be a member of House of Hackers to add comments!
Join this Ning Network