This topic is locked

Security between 2 projects in PHP

12/25/2008 3:37:27 PM
PHPRunner General questions
Pfeiffer author

Hello Support,
let's suppose there are TWO PHPRunner 4.1 projects on the same server in

D:\...PATH1\xx_list.php Application 1 created with PHPRunner

D:\...PATH2\yy_list.php Application 2 created with PHPRunner in a different path
User logs into Application 1 with UserID as Primary Key of Application.

Everything is okay..he is working with Application 1..His UserID is stored in $_SESSION["UserID"].
He knows one page of Apllication 2 on the same server.

Application 2 has nothing to do with application 1 .
So, my customer now writes the link yy_list.php for Application 2 directly into the existing browser-Window of Application 1.
As I see, because $_SESSION["UserID"] exists, he now sees the page of a quite different PHPRunner-Application 2,

although he is not a registered Person in Application2. But because of the existing SESSION-Variable

PHPRunner allows access to Application 2.
The manual input of php-page in Browser does'nt destroy the SESSION-Variables of

PHP. To get access to Application 2 he does no LOGIN, but directly goes to the known page of

application 2.
User get access to Application 2 because of $_SESSION["UserID"] of Application 1 without doing LOGIN in Application 2

Security ??? Or I'm doing something wrong..??
Best regards

Uwe Pfeiffer

J
Jane 12/26/2008

Uwe,
yes, session variables are the same for all PHPRunner applications.

You can create session variable in the After Successful Login event and save application name in this variable.

Then check this session variable in the Before process events and redirect to the correct login page if needed.

Pfeiffer author 12/26/2008

Yes,
this was my idea too..
Best regards

Uwe Pfeiffer

hichem 12/30/2008

Yes,

this was my idea too..
Best regards

Uwe Pfeiffer


Hi Uwe, can you please post the details of your events? I think this is very useful and should be included to avoid potential security issues.