Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Web-App-Sec
[Top] [All Lists]

PHP Session ID's

Subject: PHP Session ID's
Date: Tue, 19 Jul 2005 08:29:20 +0100 (BST)

You can pass the PHP session ID as a <input type="hidden" 
name="xyz"> html form variable if using a form. You can 
even create a blank form just for this purpose.

EG.

function simple_SEARCH_button($text)
{
 global $session_id;
 ?>
 <FORM ACTION="./search.hml" METHOD="POST">

 <P ALIGN=CENTER>
 <INPUT TYPE="SUBMIT" VALUE="<?php echo $text; ?>"> </P>

 <!-- pass the following hidden variables with the form -->

 <INPUT TYPE="HIDDEN" NAME="session_id"
        VALUE="<?php echo $session_id; ?>">

 </FORM>

 <?php 
} // end of simple_SEARCH_button($text)

!! In short, you are better off putting the session id in a cookie than
!! putting it in the URL.  You are right that referrer headers are one
!! way that a URL session id can leak.  It may also be logged in proxies
!! or firewalls.

my 2c

Keith Roberts

http://www.karsites.net

<Prev in Thread] Current Thread [Next in Thread>