Lavalair Exploit

Started on the old forum in May 2010 · view the original in the archive · old links redirect here

52 replies · 7,332 views · started 16 years ago · 1 min read

TL;DR · summary of 52 replies
  • - The fix for SQL injection in HTTP headers involves sanitizing or filtering values where HTTP UserAgent and other HTTP headers are used.
  • - One suggestion is to change session IDs per page load, but this can cause issues with back button functionality and may not be a foolproof solution.
  • - Another approach mentioned was checking IP and browser information against stored data in the database to prevent unauthorized sessions.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

11 participants
kabooms Developer · 80 posts #22

Nice topic thankz for idea.up :d

amylee Principal · 1,092 posts #23

meh.. i would share my knowledge i have of my scripts, but I did the professional and wise thing and used 3rd party's and hundreds of hours and dollars finding nearly every hole/exploit/weakness/unoptimized shizzle in the script

only way people will get this info is if i respect them or i release the script with my own encryption, none of the ioncube/zend rubbish most of the people here are retards who probably can only just code a phpinfo script let alone a multi-functional community script, those people i do not like

/end offtopicness

kevk3v Senior · 332 posts #24

lol hundreds of hours and dollars?... for my scripts i just tell every hacker.. hack it if they can, and then i log every move they make and then i patch it... but thats risky if you don't have a backup of your site 🙂

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

thanatos Senior · 261 posts #25

amylee, ok tnx 4 dat info. we wont look any further share from you with regards to lava scripts hole. 😀

thanatos Senior · 261 posts #26

@mobilegigs, well if u dnt mind. Dz topic is not 4 u 2 have fun to insult pipol hir or act lyk a gangsta hir. If u may, if u got nothng gud to share, jst dnt go over dz topic. Ur presence is not needed here wid dat kind of attitude u have.

amylee Principal · 1,092 posts #27

thanatos wrote: amylee, ok tnx 4 dat info. we wont look any further share from you with regards to lava scripts hole. :D

your welcome...

thanatos Senior · 261 posts #28

😛 dz d frst time i see amylee says "your welcome" 😛

something else Fellow · 2,296 posts #30

thanatos wrote: Since hacking lavalair is scattered like a disease. Im going to reveal some hakworx to alert some newbies and not be played by sum outpatient psychotic hackers.[br/] SQLi is nt only in registration bt also cn b done in HTTP headers like UA, http_x_forward etc etc. Take a look at this query: update table_users set browserm='sqli here' and ip='function getip'; and look at the function getip and analyze how sqli workx wid http header using curl manipulation. One must fix that query since it is nt covered wid magic quotes.

going back to the original exploit you will need to cover your ip and browser details with mysql_real_escape_string and htmlspecialchars to stop people like mobileGIGs from injecting sql or malicious html into your site eg:

////////////////////////////get ip
function getip(){
if(!empty($_SERVER['HTTP_CLIENT_IP'])){
      $ip=$_SERVER['HTTP_CLIENT_IP'];
    }else if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
      $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
    }else{
      $ip=$_SERVER['REMOTE_ADDR'];
    }
$ip = strtolower($ip);
if(substr_count($ip,"unkown")>0){
$ip=$_SERVER['REMOTE_ADDR'];
}
$ip = htmlspecialchars($ip);
$ip = mysql_real_escape_string($ip); 
    return $ip;
}

////////////////////////////////get browser
function getbrowser(){
$brws = $_SERVER['HTTP_USER_AGENT'];
$ope = $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'];
if ($ope==""){
$br = $brws;
}else{
$br = "$ope $brws";
}
$br = htmlspecialchars($br);
$br = mysql_real_escape_string($br);
return $br;
}
thanatos Senior · 261 posts #31

Changing field names and table names will also help. so it will be hard for noobs like me to keep guessing it.

something else Fellow · 2,296 posts #32

thanatos wrote: Changing field names and table names will also help. so it will be hard for noobs like me to keep guessing it.

Changing field names is good as long as you keep php error messages off and dont show mysql errors as otherwise people can crash your sql to get field names

kevk3v Senior · 332 posts #33

something else wrote: going back to the original exploit you will need to cover your ip and browser details with mysql_real_escape_string and htmlspecialchars to stop people like mobileGIGs from injecting sql or malicious html into your site eg:

////////////////////////////get ip
function getip(){
if(!empty($_SERVER['HTTP_CLIENT_IP'])){
      $ip=$_SERVER['HTTP_CLIENT_IP'];
    }else if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
      $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
    }else{
      $ip=$_SERVER['REMOTE_ADDR'];
    }
$ip = strtolower($ip);
if(substr_count($ip,"unkown")>0){
$ip=$_SERVER['REMOTE_ADDR'];
}
$ip = htmlspecialchars($ip);
$ip = mysql_real_escape_string($ip); 
    return $ip;
}

////////////////////////////////get browser
function getbrowser(){
$brws = $_SERVER['HTTP_USER_AGENT'];
$ope = $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'];
if ($ope==""){
$br = $brws;
}else{
$br = "$ope $brws";
}
$br = htmlspecialchars($br);
$br = mysql_real_escape_string($br);
return $br;
}

huh?..... they can even hack ur site using ip?

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

something else Fellow · 2,296 posts #34

kevk3v wrote: huh?..... they can even hack ur site using ip?

yes many people on here know how to change there ip into words or even sql injection thats why you must cover every single input a user can make on your site as anything can be spoofed

kevk3v Senior · 332 posts #35

lol i'm lucky cuz i always used <?php echo $_SERVER["ROMOTE_ADDR"]; ?> to display ip =/

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

Loony Senior · 258 posts #36

thanatos wrote: may i remind u again pipol dz discussion is for security protection of lavalair script. If ur damn GOOD at all, u might wana show it, not jst posting in words dat tells us dat u knw greater thngs, stop boastin around. Again and again, f.uck off a.ssholes if u got nothng good to share.

i think what u ment to say was ( may i remind you ppl that this yet another discusion for someone to do all the research and show me how to secure my lavalair script)

my answer is look Look here i searched for you

but im gona add if u need to make a topic about this your not gona understand what u read in which case delete the file called config.php and drop the database most probly called database and your done no will will be able to hack your site and u wont waste alot of ppls time.

if u do understand coding there is about 915 matches on google surly if you read thru some off them u will see and understand what u need to do.

my best advice is to STOP USING LAVALAIR ALL TOGETHER and code your own script

Creator of Epix.Mobi

Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite

Loony Senior · 258 posts #37

kevk3v wrote: lol i'm lucky cuz i always used <?php echo $_SERVER["ROMOTE_ADDR"]; ?> to display ip =/

u no this doesnt help u at all theres programs to change your ip output and anyone that knows what there doing can always change there local ip address as well

Creator of Epix.Mobi

Keep an Eye on us Big things coming soon!!!! Need something for your site hit me up here http://coding-talk.com/forum/main-forums/marketplace/153110-free-features-for-your-wapsite

CreativityKills Lead · 833 posts #38

lol @ something else . . . U said i will inject what? Ha ha. Im a security auditor nw and i audit sites for firms part-time, pay my tuition with cash gained so except ANY OF THE SITES you own has a hole that can fetch me about 500+ bucks when i find it out then read my lips im nt FU.CKING interested!!!

Theres a bigger world out of ur miniature brain box. U tink session jacking is the sh!t? Or maybe its sql injectn? Well newsflash, d only reason u knw just those is cuz u got a 2bit, 50 online max wapsite.

Incase u wer wndrin, wot amy said was true, lava script and all its mods r like cheese, MANY HOLES.

something else Fellow · 2,296 posts #39

gigs favorite insult "2 bit site" lol if your such a big time auditor what the hell are you doing on a site that is full of "2 bit site"? (as you call them) as i said before you just come here to make your self feel the big man. but if you read your posts you just make yourself look like a right...... well I dont need to say any more as your next post will do it for me lol

thanatos Senior · 261 posts #40

Loony, sorry i dnt have site anymore so i dnt hav nothng 2 worry about. and my intention is to share the vulnerabilities of lava script. its not ur problem if ppl wana use lava script. dats why i created dz topic so ppl cn discuss hir d holes of lava script and how to cover it up atleast to prevent sum1 frm j.acking it off. and btw not all ppl cn code his site in an instant esp 4 d newbies. and i bliv newbies cn make lava script as their basic foundation to learn a lot.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close