Hacking (Lavalair Script)

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

29 replies · 11,992 views · started 17 years ago · 1 min read

TL;DR · summary of 29 replies
  • - hypetype asked about how someone might have stolen their session, and what they could do to prevent such theft.
  • - The answers suggested checking every user's profile picture that sent an inbox, disabling images on profiles for users, running profile pictures through a thumbnail script, or closing the code with exit(); in specific...
  • - Alesh provided more detailed information about how session hijacking can occur and offered suggestions to prevent it, including filtering user input and using salts to secure passwords.

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

17 participants
kiLLeR-eyEd_14 Senior · 382 posts #21

Rename table names so that hackers will get crazy of guessing the name of the table they want to crack..'coz lava is commonly used by many wapmasters, they know it's ibwf_users..Then they might query like

'); mysql_query("DROP TABLE ibwf_users");

that was just an example!

Mysterio Lead · 630 posts #22

Yes. Look at this example: if your table ibwf_users has a field called perm and the value 2 means you are administrator, by using the method of killer-eyed_14 will be very easy to register yourself as and admin. but if the table is userbase and the field is userpermesion and the value of being administrator is 7325, then the method of him will not work. do you know how to do this?

mysterio.al - programming is a functional art

kiLLeR-eyEd_14 Senior · 382 posts #23

Mysterio3 wrote: Yes. Look at this example: if your table ibwf_users has a field called perm and the value 2 means you are administrator, by using the method of killer-eyed_14 will be very easy to register yourself as and admin. but if the table is userbase and the field is userpermesion and the value of being administrator is 7325, then the method of him will not work. do you know how to do this?

but he said to me that his site is sql injection protected..so, my example would not work..but also it's good you change perm to something 5chars..or like what i've told you, you may edit function isadmin..Let's say adminperm is 75675..Instead of if perm > 0, make it if perm!=75675 then return false, else return true..Or if perm==75675 return true, else return false..That way, only user who has a perm 75675 which should be you is the only one to access admin..He'll get crazy guessing the exact perm as you set it to a very hard and 5 jumbled numbers..Unlike in lava that if perm is above 0 or anything, you are an admin/mod..If he set himself to 10 for example, then he is also an admin..

Guest #25

You guys ever thought of loosing the whole session=$session BS and rather use client side sessions?

To explain. Rather set your session on the clients browser than using the URL to carry it. That way there will be no session to hack or whatever because the session code is not in the URL but stored in $_SESSION["whatever"]; and that is stored in the browser.

Your members URL will change from http://yoursite.com/index.php?PHPSESSION=sdfsw8df7sdfweorjwr3 to http://yoursite.com/index.php?

something else Fellow · 2,296 posts #26

boondocksaint wrote: You guys ever thought of loosing the whole session=$session BS and rather use client side sessions?

To explain. Rather set your session on the clients browser than using the URL to carry it. That way there will be no session to hack or whatever because the session code is not in the URL but stored in $_SESSION["whatever"]; and that is stored in the browser.

Your members URL will change from Turn-Key eCommerce Hosting from YourSite.Com to Turn-Key eCommerce Hosting from YourSite.Com

Whats the difference between them being in urls and in sessions? No difference what so ever! both can be stole in same way and used in exactly same way. only diffecence is not so many people know how to edit sessions.

Rksk Developer · 54 posts #27

There is the main hole in lavalair.

it's that

$brws = explode(" ",$_SERVER['HTTP_USER_AGENT']);
$ubr = $brws[0];
mysql_query("UPDATE hx_users SET ua='".$ubr."' WHERE id='$uid'");

so u can prevent from it by adding below to top of config.php

$_SERVER['HTTP_USER_AGENT']=addslashes($_SERVER['HTTP_USER_AGENT']);

i thing most ppl know this & they don't tell it to begginers.

thankz.

arnage Lead · 811 posts #28
$brws = htmlspecialchars(stripslashes(getenv('HTTP_USER_AGENT')));
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
ozziemale31 Lead · 861 posts #29

i can get any session on any lava edit via a http request not only that yr browser info and real ip change my ip and browser to yours using a firefox addon copy nd paste your session and hey dude i am who ever clicks the link or views the image.i know how to prevent it its very simple but noobs won learn if u give them the answers

External image (may be gone) External image (may be gone)

External image (may be gone)

*****

**Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer.. Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free ***

arnage Lead · 811 posts #30

Show that question even exists, and let them to find an answer, right? 😀

I have noticed that people echo addslashes, the case when user writes a " or ' simbol. I think that no influence on "bad input", because the input is allredy in and its no matter whats outputs (some experienced coder will correct me if im vrong). Why not just use:

$text = htmlentities($text, ENT_QUOTES);

htmlentities() will convert html simbols at there entities and ENT_QUOTES will convert ' symbol into its entity. ENT_NOQUOTES will clear it. The point, back slash ' is ugly in forum texts. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

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