synergyx2009 wrote:
yes i know that, but there would have to be a link to an external page in order for that to happen.
when you look at lava script... and how session is done..
you'll get idea how they still sessions...
you'll also get idea how simple protection against that is..🙄
i use more or less the same idea as lavalair i think. once the username and pass has been authenticated, i take the current unix time multiply it by 1st 3 digits of users ip. then convert to md5. then i use that as the session key on every page.
then if like what im guessing is default LL you pass the sid between pages in the GET header i simply find an xss hole in your site (there is one in a specific location on most LL sites that havent been security checked) and then use this
that js file is then able to successfully forward the user to a php page on my site which notes the passed sid which the js file grabbed from the url prior to redirection, then forwards to back to the online user list or whatever thinking that the page just didnt load. (this was a POC, with a little messing i could have had it do all that and still display the page just fine).. i then simply send a message to the owner "hey check out my awesome sig/text/avatar/wateva in my profile, they view it, i grab their sid, jump on their account and commit mass deletion ofcourse since im using JS file with some playing and tweaking, since the JS runs client side and ur on the cookies domain before redirecton i could also steal any cookies stored too, so saving session ids to cookies is also a little bit unsecure, but its a lot more secure than other methods and with other security stuff in there saving sessions or even the uid/passhash to a cookie is perfectly fine
loony wrote:
hmmm when u take credit for things it makes ppl not want to help becarefull what U claim U did.
im not taken credit for what you gave me this was before you helped me when i was useing
session_cache_limiter('none'); ///// i put this at top of every page
session_start();
ob_start();
ini_set('url_rewriter.tags', 'ses=$ses');
session_destroy(); /// this at bottom of every page
Options +Indexes
<IfModule mod_php4.c>
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
</IfModule> /// this in haccess file
now im useing a lil bit of what you gave me pluss what oris helped me on
1 thing i realised is cookies expire on my server every 30 mins on inactivity the way i got around this was setcookie function if ya smart can use it to make a update function for sessions thru cookies
djlee wrote:
then if like what im guessing is default LL you pass the sid between pages in the GET header i simply find an xss hole in your site (there is one in a specific location on most LL sites that havent been security checked) and then use this
that js file is then able to successfully forward the user to a php page on my site which notes the passed sid which the js file grabbed from the url prior to redirection, then forwards to back to the online user list or whatever thinking that the page just didnt load. (this was a POC, with a little messing i could have had it do all that and still display the page just fine).. i then simply send a message to the owner "hey check out my awesome sig/text/avatar/wateva in my profile, they view it, i grab their sid, jump on their account and commit mass deletion ofcourse since im using JS file with some playing and tweaking, since the JS runs client side and ur on the cookies domain before redirecton i could also steal any cookies stored too, so saving session ids to cookies is also a little bit unsecure, but its a lot more secure than other methods and with other security stuff in there saving sessions or even the uid/passhash to a cookie is perfectly fine
ok but wat happens if session expires after lets say 10 - 15mins. then there is nothing you can do with that hash.
jsyguy23 wrote:
im not taken credit for what you gave me this was before you helped me when i was useing
session_cache_limiter('none'); ///// i put this at top of every page
session_start();
ob_start();
ini_set('url_rewriter.tags', 'ses=$ses');
session_destroy(); /// this at bottom of every page
Options +Indexes
<IfModule mod_php4.c>
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
</IfModule> /// this in haccess file
now im useing a lil bit of what you gave me pluss what oris helped me on
where do i put these??😕 i tried it but didnt work.
LDSWAPWORLD
site closed.
im busy with other things in life like facebook , send me PM so i can add you 🙂
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
capofret wrote:
where do i put these??😕 i tried it but didnt work.
after
<?
on every page
```php
session_cache_limiter('none'); ///// i put this at top of every page
session_start();
ob_start();
ini_set('url_rewriter.tags', 'ses=$ses');
```
in htaccess
```
Options +Indexes
<IfModule mod_php4.c>
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
</IfModule> /// this in haccess file
[/codebox]
```
<?
on every page
```php
session_cache_limiter('none'); ///// i put this at top of every page
session_start();
ob_start();
ini_set('url_rewriter.tags', 'ses=$ses');
```
in htaccess
```
Options +Indexes
<IfModule mod_php4.c>
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
</IfModule> /// this in haccess file
[/codebox]
```
spook this code dont work lol so there no point in showing them where
synergyx2009 wrote:
ok but wat happens if session expires after lets say 10 - 15mins. then there is nothing you can do with that hash.
unless ur gonna force exit the session of the user after 10/15 mins then your point has no validity. ok i cant leave my script running grabbing sids and use them later, but hell all i need to do is get you to go to the page with the malicious code (which is easy) grab ur sid and change my sesid and us ur account while ur still on it .. forget to logout and destroy that session then i can be on it for as long as i want