Hacking Session Id

Started on the old forum in February 2008 · view the original in the archive · old links redirect here

31 replies · 4,623 views · started 18 years ago · 1 min read

TL;DR · summary of 31 replies
  • - Session ID protection is possible by changing how sessions are created and validated, such as using a combination of user ID and current timestamp.
  • - The previous topic was deleted due to someone deleting it without explaining the solution or providing code for preventing session hijacking.
  • - Preventing session hijacking can be achieved by modifying the session creation process on the server side, rather than relying solely on client-side techniques like disabling hotlinking images.

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

19 participants
crazybrumi Super moderator Principal · 1,064 posts #21

and that can be secured very easy...

your write mate, but after chatting to a few so called coders and hosters they know how to exploit something but when i comes down to fixing it on there site or on any site for that matter they dont know how to. for the simple reason they dont know how the exploit works. theres many exploits iv been sent and iv made for lava but i do know how to fix em. why boast about something if you dont know how to fix.

m4ster_v4 i challenge you to tell us how you would fix that. it very simple. but do you know? note that he can ask others so this may not entirely be accurate.

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

CreativityKills Lead · 833 posts #22

crazybrumi wrote: your write mate, but after chatting to a few so called coders and hosters they know how to exploit something but when i comes down to fixing it on there site or on any site for that matter they dont know how to. for the simple reason they dont know how the exploit works. theres many exploits iv been sent and iv made for lava but i do know how to fix em. why boast about something if you dont know how to fix.

m4ster_v4 i challenge you to tell us how you would fix that. it very simple. but do you know? note that he can ask others so this may not entirely be accurate.

omg! This topic shud be banned. search! SearcH!! SEARCH!!! Its bin posted, discussed, re-discussed, treated, repeated and all. Securing sid is d easiest exploit n it has d easiest solutions. The only problem is laziness, inability to read AND UNDERSTAND simple english (and php) . . .just search, read, ask questions, understand then fix. Nwadays ppl just luk 4 copy paste forgetting that there r so many edits that even copy n paste that used to work perfectly during d ravingwap time cnt work again. Codes dat r copy n paste usually break cuz of undefined functions, syntax error, php versions etc.

m4ster_v4 Developer · 125 posts #23

Fix It?? Change session id generate style.. Or you can add time()+8 To change standard time.. That may also be hard to hack if you does't tell anyone about that.. Ok. Peace. Keep your sc security secret. That enouge.

Visit my WEBSITE Project: http://www.aspirewap.net

CreativityKills Lead · 833 posts #24

m4ster_v4 wrote: Fix It?? Change session id generate style.. Or you can add time()+8 To change standard time.. That may also be hard to hack if you does't tell anyone about that.. Ok. Peace. Keep your sc security secret. That enouge.

nice "solution" haha, y wud sum1 give a hoot how u got d session if he cud jus grab it anyway? O.o bt if url are so obsessed bout how to generate uniqe sids $sid = md5(uniqid(rand(),true)); is waay beta.

ori Lead · 512 posts #25

lol most ppl dnt need to know how ur sessions work to grab them a simple referer logging script can grab them just as easilly and from what ive seen apart from taking out every type external link is to use cookies for session storing

wap2k Developer · 168 posts #27

My mates site was being constantly hacked by some jamacian guys using session hijacking. At first i was stupped to how they got the passwords for the accounts they were not changing them but logging in then changing them.

So i viewed the server logs they would set an avatar that was on there server.... then as soon as a owner, admin, co-owner, moderater viewed there profile wham they were in there accounts.

The session id was in there access_logs of the cpanel or error_logs depending on if they had set the correct url for there avators. Well how did they get the password? you may ask.... Lavalair scripts uses a wml variable for the password when you login $(logpwd).

if the url of the avator enterd was like so:

http://server.com/image.gif?userpw=$(logpwd).

IF Someone viewed the profile using the wmlof lavalair the referer now contains that users password.


The souloution dont link to files from another site, but this would have not been fair on users that host there photos elsewhere and where legally hotlinking these....

So i used GD to resize the image and not directly calling the image from the page with the session id on it..... Still the session id was in the url.... Then the Eureka moment.

GD has support for redirection of images it does not require a direct image link it will follow rediects so i created a file.

thinkyourclever.php

<?php
$image = $_GET["image"];
header("Location: $imageurl");
?>

Than i used that as the image address in my image resizer.

It worked the server logs show no referer information except the ip address of the linking server.

I created another cleanref.php

<?php
$url = $_GET["url"];
header("Location: $fileurl");
?>

I added www.server.com/cleanref.php?url=url infront of all linkes that are on remote server this included bbcode images and url, vault, spam links, autolink generation.... I dont think i missed many of them.

subzero Super moderator Fellow · 3,954 posts #29

Update,

Cookies can't be hijacked from my site as for cookie shows but how will u use it thats the answer i need bro 🙂

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

robzky Developer · 205 posts #30

If someone share how to fixed it! topic is done. all users using a lavalir script need it, tell it and share it if how to prevent it! i know all staffs here know how to prevent it! y dont you share it? y dont you tell how to fix it? staffs need to help a members! if you don't share how to prevent this problem, **BEING A STAFFs is USELESS! **

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

opticalpigion Lead · 593 posts #31

robzky wrote: If someone share how to fixed it! topic is done. all users using a lavalir script need it, tell it and share it if how to prevent it! i know all staffs here know how to prevent it! y dont you share it? y dont you tell how to fix it? staffs need to help a members! if you don't share how to prevent this problem, **BEING A STAFFs is USELESS! **

lmao, stupid stop yelling at others for nothing. u need eye to find solution. look at here this is pinned topic which shows how to secure script http://coding-talk.com/f14/how-to-secure-your-php-script-php-security-6286.html and http://coding-talk.com/f14/lavalair-mods-2253-19.html#post58574 this is another post, use that last function to scan inputs everybody wants ready made code if u still can't fix ur site than watch php tutorials and learn.

robzky Developer · 205 posts #32

Im just saying if what i see and what i read!

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

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