Categories
PHP

LavaLair SQL Injection Vulnerability: Looking Inside

Lavalair is the name of a very popular mobile chat community software developed using PHP MySQL and WML front end. I was once a serious mobile web developer and worked with mobile web apps a lot.

A few days ago, a Indian boy asked for some help with a wapdesire clone of LavaLair. His site was getting hacked by some so-called “hackers”. My experience with LavaLair told me it was some sort of nasty SQL Injection. After having a look at the script, I found out a intensive SQL Injection vulnerability in the registration page. I wrote a CLI php script to inject some SQL codes.

Here is the tool I used to crack into the target site:

The easiest explanation is that LavaLair by default requires magic_quotes_gpc() to be off and it’s insert SQLs are in the format:

So, it becomes easy to inject some single quotes and hash sign to terminate the script and modify it the way you wish.

My suggestion would be to use Insert SQLs in this way:

And now a little rant about these so called hackers… I have heard lots of stories about AyOn and some other freaks terrorizing the LL community… It’s really funny the way the developers never bothered to learn how these scrip kiddies or so-called hackers managed their way in… From the very beginning, I have used J21Community with magic_quotes_gpc turned on and secure SQL queries. That’s one of the important reasons why no J21Community site has been hacked yet by SQL Injection… 😀

19 replies on “LavaLair SQL Injection Vulnerability: Looking Inside”

salam masnun bhai i used ur tools which u posted here but its not working its show registeration successfully but dat code not make owner by changing perm also thnx help again how to inject sql in lavalair scripts or wapdesire allah hafiz

Nice story … And Ayon’s lavalair script got hacked By Prohor . ..People often think they are great hackers/crackers !People should be hacked sometimes by someone .. after all failure is the pillar of success !

Where i put This SQL Page ??

INSERT INTO table_name (column_1,column_2) VALUES (‘value_1′,’value_2’)

pLz Help ME

Comments are closed.