Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp session fixation example and fixes
    primarykey
    data
    text
    <p>My question is about this summary on session fixation:</p> <ul> <li><p>Alice has an account at the bank <a href="http://unsafe.com/" rel="nofollow">http://unsafe.com/</a>. Unfortunately, Alice is not very security savvy.</p></li> <li><p>Mallory is out to get Alice's money from the bank.</p></li> <li><p>Alice has a reasonable level of trust in Mallory, and will visit links Mallory sends her.</p> <ol> <li>Mallory has determined that <a href="http://unsafe.com/" rel="nofollow">http://unsafe.com/</a> accepts any session identifier, accepts session identifiers from query strings and has no security validation. <a href="http://unsafe.com/" rel="nofollow">http://unsafe.com/</a> is thus not secure. </li> <li>Mallory sends Alice an e-mail: "Hey, check this out, there is a cool new account summary feature on our bank,http://unsafe.com/?SID=I_WILL_KNOW_THE_SID". Mallory is trying to fixate the SID to I_WILL_KNOW_THE_SID.</li> <li>Alice is interested and visits <a href="http://unsafe.com/?SID=I_WILL_KNOW_THE_SID" rel="nofollow">http://unsafe.com/?SID=I_WILL_KNOW_THE_SID</a>. The usual log-on screen pops up, and Alice logs on. </li> <li>Mallory visits <a href="http://unsafe.com/?SID=I_WILL_KNOW_THE_SID" rel="nofollow">http://unsafe.com/?SID=I_WILL_KNOW_THE_SID</a> and now has unlimited access to Alice's account. (credit: RichieHindle)</li> </ol></li> </ul> <p>Questions:</p> <p>Q1 - Is there a way to explicitly prevent the site from accepting any session identifier?</p> <p>Q2 - I don't use the $_GET variable on my site so is there a way to prevent accepting session identifiers from query strings? </p> <ul> <li>Notes: I'm using php 5.4.3 with SSL and will also use session_regenerate_id..</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload