Jump to content

Session Protection Issue's


Faks

Recommended Posts

Here is my Session Custom Protection not sure does it is effective but i do hope .

session_start();
// Sessija Aizkodēšana 
$session_data = session_encode();
//Sessijas id maiņa 
$old_session_id = session_id();
session_regenerate_id();
$new_session_id = session_id();

$token = uniqid(sha1(rand(), true));
$_SESSION['token'] = $token;


$fingerprint = 'SHIFLETT' . $_SERVER['HTTP_USER_AGENT'];
isset($_SESSION['fingerprint']) == (sha1($fingerprint . session_id()));

And also for login form i added .

<form>
<input type='hidden' name='token' value='{$token}'/>
</form>

 

I Wonder Why i do encounter them and a lot of them ^^ maybe i am misunderstanding

Access Me String Test Results

http://faksx.sytes.net/blogs/ :: Cookie

Attack Details:

 

    * Input Parameter: PHPSESSID

 

The attacked page is dangerously similar to the original page. It is 99.115% similar. Got access to a resource that should be protected. Server response code: 200 OK.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.