Hiding Session Id

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

134 replies · 11,752 views · started 17 years ago · 1 min read

TL;DR · summary of 134 replies
  • -mod_rewrite would not be effective for hiding session IDs as they still need to pass through URLs.
  • -Using dynamic variables like IP or browser information could help prevent session hijacking, but it may not be foolproof.
  • -Adding username and password to the authentication process can strengthen session security by defining both the user and their credentials.

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

38 participants
anderson Developer · 146 posts #1

Hello coders, Discuss here how to prevent hacking lava session ID. Do you have any ideas to hide sessoin ID sothat none can get it please post here....

Wait...

subzero Super moderator Fellow · 3,954 posts #2

Nope lavalair is stuck with sid id it will show no matter what....

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... _______…

metulj Super moderator Principal · 1,726 posts #3

QUOTE (subzero @ Jan 27 2009, 04:29 PM) <{POST_SNAPBACK}>

Nope lavalair is stuck with sid id it will show no matter what....

not true..

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

djdevil89 Senior · 287 posts #4

QUOTE (metulj @ Jan 27 2009, 06:51 PM) <{POST_SNAPBACK}>

not true..

mod_rewrite

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Guest #5

QUOTE (drwap @ Jan 27 2009, 06:10 PM) <{POST_SNAPBACK}>

mod_rewrite

How do you plan to use mod_rewrite to hide session id? :S

alesh Lead · 604 posts #6

yeah mod_rewrite would do the job but theres easier way to protect ur session id with only few lines of code and then u cn give ur session id in public and they can do shit with it lol...

eeeeerrr....

alesh Lead · 604 posts #7

QUOTE (youngson @ Jan 27 2009, 09:26 PM) <{POST_SNAPBACK}>

How do you plan to use mod_rewrite to hide session id? :S

btw b4 tht kind of post, 1st c whts mod_rewrite... try google it

eeeeerrr....

Guest #8

QUOTE (alesh @ Jan 27 2009, 10:56 PM) <{POST_SNAPBACK}>

btw b4 tht kind of post, 1st c whts mod_rewrite... try google it

Btw b4 tht kind of post, don't insult my intelligence like that. I know fine what mod rewrite is. You would know that if you read my posts. I currently have it enabled in the site I am making atm which you will find in the script testing forum.

Guest #9

QUOTE (alesh @ Jan 27 2009, 10:55 PM) <{POST_SNAPBACK}>

yeah mod_rewrite would do the job but theres easier way to protect ur session id with only few lines of code and then u cn give ur session id in public and they can do shit with it lol...

And I still fail to see what mod_rewrite can do to hide session id, as it needs it in the url somewhere so it can be passed along as a parameter. Hence why I asked how can you do that with mod_rewrite.

djlee Developer · 224 posts #10

mod rewrite isnt the way forward ... look at what the user gives you to identify themselves .. erm browser ??? ip ??? just to name two .. so why not make those two things part of the authentication process.. if ($currentip != $storedip) then request re-login ... that would solve erm .. 99% of your script kidding session jacking .. the rest of the 1% .. well dont even trying to stop them cause even i can brute force ur ssh port into submission.. so the experts that make up that 1% wouldnt have a problem

rukiya Lead · 569 posts #11

QUOTE (djlee @ Jan 28 2009, 01:45 AM) <{POST_SNAPBACK}>

mod rewrite isnt the way forward ... look at what the user gives you to identify themselves .. erm browser ??? ip ??? just to name two .. so why not make those two things part of the authentication process.. if ($currentip != $storedip) then request re-login ... that would solve erm .. 99% of your script kidding session jacking .. the rest of the 1% .. well dont even trying to stop them cause even i can brute force ur ssh port into submission.. so the experts that make up that 1% wouldnt have a problem

Ip & browser is definately the wrong way to login because both are varible. I would use cookies.

djlee Developer · 224 posts #12

erm yh exactly .. variable .. and cookies arent the way to go unless you know what your doing .. and cookies store data .. much like session id's and therefore and n00b with a keyboard and create and destroy cookies on there own machine.

think about it .. IP .. erm your ip is locked to your account, in order for me to continue your session is to have the same ip address .. IP changes you gotta relogin .. and i dont kno the pass so i cant.

the whole point is to use dynamic variables.. 90% of static vars arent no good and they can be spoofed far too easily

rukiya Lead · 569 posts #13

QUOTE (djlee @ Jan 28 2009, 04:13 AM) <{POST_SNAPBACK}>

erm yh exactly .. variable .. and cookies arent the way to go unless you know what your doing .. and cookies store data .. much like session id's and therefore and n00b with a keyboard and create and destroy cookies on there own machine.

think about it .. IP .. erm your ip is locked to your account, in order for me to continue your session is to have the same ip address .. IP changes you gotta relogin .. and i dont kno the pass so i cant.

the whole point is to use dynamic variables.. 90% of static vars arent no good and they can be spoofed far too easily

Thats problem for login if you use ip because if your current ip is different from your preview ip then you cant login anymore.

djlee Developer · 224 posts #14

no if your stored ip and ur current ip is different then the session is deleted, then u need to relogin back in .. upon relogging in the script enters your new ip into the db and that becomes ur stored ip. therefore the hijacker needs ur password to login in order to reset the stored ip .. i really dont see the difficulty ur having in understanding this lol

subzero Super moderator Fellow · 3,954 posts #15

mod_rewrite You will fail!

Only one way to hide session ID is to build a new script that use session the right way like mine script im making so loony script and youngson's script we all are best coders to think of session

Here some idea's

Login

$session['id']=session_id();
$session['sid']=$sid;

Sign up

session_start();
session_register("session");

Exit

session_unset();
session_destroy();

In config

error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);

Now see what you can do with this

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... _______…

rukiya Lead · 569 posts #16

QUOTE (djlee @ Jan 28 2009, 04:11 AM) <{POST_SNAPBACK}>

no if your stored ip and ur current ip is different then the session is deleted, then u need to relogin back in .. upon relogging in the script enters your new ip into the db and that becomes ur stored ip. therefore the hijacker needs ur password to login in order to reset the stored ip .. i really dont see the difficulty ur having in understanding this lol

Ok, I got you now.

I also figured out that session id in the link is not a hacking problem if some codes will be added in it.

looony Developer · 95 posts #17

cheers sub yeah it is defi the best way to do sessions

External image (may be gone)

if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }

alesh Lead · 604 posts #18

QUOTE (djlee @ Jan 28 2009, 01:45 AM) <{POST_SNAPBACK}>

mod rewrite isnt the way forward ... look at what the user gives you to identify themselves .. erm browser ??? ip ??? just to name two .. so why not make those two things part of the authentication process.. if ($currentip != $storedip) then request re-login ... that would solve erm .. 99% of your script kidding session jacking .. the rest of the 1% .. well dont even trying to stop them cause even i can brute force ur ssh port into submission.. so the experts that make up that 1% wouldnt have a problem

yes djlee its true but im not afraid of tht kind hackers cuz they are not wannabe and theres no protect from them because u knw nothing is UNHACKABLE...

eeeeerrr....

djlee Developer · 224 posts #19

well thats what i said .. checking for ip changes is simple and will stop 99% of the script kiddies .. the other 1% would have to understand how to get a randomised number from the start of an authenticated packet being sent over a remote network and then be able to spoof that that random key into there own data packets so they appear to come from an authenticated tcp stream already established with someone else (hence identifying as there ip not yours)

apart from it being over complicated to actually do that, anyone that can do that ... well you really think they'd care about some 2-bit cloned wapsite that gains them nothing by hacking?

wizard Senior · 493 posts #20

QUOTE (djlee @ Jan 28 2009, 03:14 PM) <{POST_SNAPBACK}>

well thats what i said .. checking for ip changes is simple and will stop 99% of the script kiddies .. the other 1% would have to understand how to get a randomised number from the start of an authenticated packet being sent over a remote network and then be able to spoof that that random key into there own data packets so they appear to come from an authenticated tcp stream already established with someone else (hence identifying as there ip not yours)

apart from it being over complicated to actually do that, anyone that can do that ... well you really think they'd care about some 2-bit cloned wapsite that gains them nothing by hacking?

most mobile phones on d same network share ips, so what happens when you n i use d same type of phone on d same network, unless u add something else to the authentication process like username, id etc there will b some conflicts

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