lavalair session sid and brute force attack

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

22 replies · 663 views · started 11 years ago · 1 min read

6 participants
creative785 Junior · 10 posts #1

Hello frnds. im here seeking a help in protecting sid (session) in lavalair script. I dont use bbcodes for images, i dont use any external links. Also i protected the session by ip and browser check. That means, if somebody copy and paste the sid, they will get SESSION EXPIRED messages. But still peoples are hijacking my sessions and entering in others id. is it because of brute force attack? Please help me to secure my site from session stealing.

thunderwap Developer · 169 posts #2

what is the addy?u can pm me.let me check.

if u have uploader in site then see if it only accepts needed extensions. i.e if someone using shell.php.jpg then it should stop them if u use use condition in it and use proper code in htaccess.i think they must using shells in ur site.

AddType image/gif .gif
AddType image/gif .gif
AddType image/jpeg .jpeg .jpg .jpe .JPG 
AddType image/png .png .PNG 
addtype audio/x-mpegurl m3u
addtype audio/mpegurl m3u
addtype text/vnd.wap.wml wml
addtype application/vnd.wap.wmlc wmlc
addtype text/vnd.wap.wmlscript wmls
addtype application/vnd.wap.wmlscriptc wmlsc
addtype image/vnd.wap.wbmp wbmp
addType application/java-archive jar
addType application/x-java-archive jar
addType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 jad
addType application/vnd.symbian.install sis
addType application/vnd.symbian.install sisx
addType audio/3gpp 3gp
addType video/3gpp 3gp
addType audio/x-wav wav
addType audio/amr amr
addType audio/amr-wb awb
addType audio/mpeg mp3
addType audio/x-midi mid
addType audio/midi mid
addType audio/midi midi
addType application/x-smaf mmf
addType application/vnd.smaf mmf
addType application/vnd.mophun.application mpn
addType application/vnd.mophun.application mpc
addType application/vnd.eri.thm thm
addType application/vnd.nok-s40theme nth

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

creative785 Junior · 10 posts #3

thunderwap wrote: what is the addy?u can pm me.let me check.

if u have uploader in site then see if it only accepts needed extensions. i.e if someone using shell.php.jpg then it should stop them if u use use condition in it and use proper code in htaccess.i think they must using shells in ur site.

AddType image/gif .gif
AddType image/gif .gif
AddType image/jpeg .jpeg .jpg .jpe .JPG
AddType image/png .png .PNG
addtype audio/x-mpegurl m3u
addtype audio/mpegurl m3u
addtype text/vnd.wap.wml wml
addtype application/vnd.wap.wmlc wmlc
addtype text/vnd.wap.wmlscript wmls
addtype application/vnd.wap.wmlscriptc wmlsc
addtype image/vnd.wap.wbmp wbmp
addType application/java-archive jar
addType application/x-java-archive jar
addType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 jad
addType application/vnd.symbian.install sis
addType application/vnd.symbian.install sisx
addType audio/3gpp 3gp
addType video/3gpp 3gp
addType audio/x-wav wav
addType audio/amr amr
addType audio/amr-wb awb
addType audio/mpeg mp3
addType audio/x-midi mid
addType audio/midi mid
addType audio/midi midi
addType application/x-smaf mmf
addType application/vnd.smaf mmf
addType application/vnd.mophun.application mpn
addType application/vnd.mophun.application mpc
addType application/vnd.eri.thm thm
addType application/vnd.nok-s40theme nth

Uploader was also kind of secure.. Hacker was saying, he was doing brute force, so that he came through other users SID (session).

thunderwap Developer · 169 posts #4

Hacker will not tell u true way that how he did entered in ur site.so u should not trust them what they says to u.i m sure he using shell.

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

something else Fellow · 2,296 posts #5

Not exactly hard to get the persons ip and browser details at same time as the session id 😳

creative785 Junior · 10 posts #6

something else wrote: Not exactly hard to get the persons ip and browser details at same time as the session id 😳

brother... i could not understand this.. could you please tell me clearly? Sorry for my ignorance

something else Fellow · 2,296 posts #7

The hacker is stealing session, ip and browser from his target. The hacker then uses the targets session and browser and ip to gain access to their account.

creative785 Junior · 10 posts #8

something else wrote: The hacker is stealing session, ip and browser from his target. The hacker then uses the targets session and browser and ip to gain access to their account.

Thank you so much for this. but there is no solution for this? i alredy santized all the input datas. but how is it possible bro?

something else Fellow · 2,296 posts #9

Replace your current ip function with this one:

function getip()
{
             return $_SERVER['REMOTE_ADDR'];
}

I cant tell you where all the holes are - but it sounds like you may have missed some. Maybe a landing page for clearing session id from urls

creative785 Junior · 10 posts #10

something else wrote: Replace your current ip function with this one:

function getip()
{
return $_SERVER['REMOTE_ADDR'];
}

I cant tell you where all the holes are - but it sounds like you may have missed some. Maybe a landing page for clearing session id from urls

landing page? U mean Logout page bro?

something else Fellow · 2,296 posts #11

sorry i dont think its called a landing page now >.< i cant think what they are called but its a page that goes between: a page containing an external site link and the external site. This page contains no session id so therefore session id can not be stolen via referrer as it contains the session id.

creative785 Junior · 10 posts #12

something else wrote: sorry i dont think its called a landing page now >.< i cant think what they are called but its a page that goes between: a page containing an external site link and the external site. This page contains no session id so therefore session id can not be stolen via referrer as it contains the session id.

thank you bro.

centi Developer · 159 posts #13

if you dont know how to protect the sid, why dont you remove the sid from every page. or use the script without the sid 🙂

😳 .................................... http://photomag.lk/ .................................... 🤨

creative785 Junior · 10 posts #14

centi wrote: if you dont know how to protect the sid, why dont you remove the sid from every page. or use the script without the sid 🙂

u mean by using SESSIONS bro?

arnage Lead · 811 posts #15
$sid = !empty($_GET['sid']) ? ((bool) preg_match('/^[a-z0-9]{32}$/iD', $_GET['sid']) !== false ? $_GET['sid'] : null) : null;

</t/10636-lavalair-patchwork>

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
something else Fellow · 2,296 posts #16

Server sessions are only safe if you know how to protect your site from other malicious attacks that you don't get with the session in the url. You cant just change from a session in the url to a Server session and think that it is safer - (its actually much more dangerous if unprotected)

creative785 Junior · 10 posts #17

something else wrote: Server sessions are only safe if you know how to protect your site from other malicious attacks that you don't get with the session in the url. You cant just change from a session in the url to a Server session and think that it is safer - (its actually much more dangerous if unprotected)

Hi.. you mean, like you mentioned in your previous topics that, hackers can make someone LOGOUT by just giving the link? (if we use sessions).. you mean that bro? right.?

something else Fellow · 2,296 posts #19

Yes not to mention many other ways from cross site scripting to an uploader session attack - and logging out could be the least of your worries 🙂

something else Fellow · 2,296 posts #20

wapxtech commented

cookies is much easier to steal than url session 🙂

I wouldn't say either is easier to steal than the other - The only reason url sessions get stolen more is because people dont know how to edit there own cookies on there web browser (vs editing a url is simple)

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