Jump to content

Recommended Posts

Hi all ...

I 'm coding for a site that has to be very secure .

The problem is that users are sending via form a private certificate , which has to be used in the creation of a personal proxy .

Files sent by a form are stored with a tmp name on the server , which is not what we want .

In the case of someone gaining the root access to the machine he could retrieve and use them .

We have thought about crypted filesystem , crypted session on a remote db and much more . I' d like to know if someone has some

idea ...

 

Thx in advance

 

David

Link to comment
https://forums.phpfreaks.com/topic/176068-paranoid-session/
Share on other sites

Use an SSL certificate on your domain and make sure your forms are requested via https:

If your server is setup properly, decent firewall etc nobody should gain root access. Do not store user uploaded files in the website document root if you do already. Change your server root password regularly and use a wheel user as opposed to root login i.e Deny root login over SSH.

Link to comment
https://forums.phpfreaks.com/topic/176068-paranoid-session/#findComment-927721
Share on other sites

I'll try to explain better ...

User upload his personal cert via a form .

 

The certificate is then something like this : $_FILES['cert']['tmp_name']

which actually is a file stored in the apache server .

There is a ( VERY ) remote possibility that someone can gain root access to the web server , and so can read this file .

 

A program uses this file to generate a personal proxy for the user .

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/176068-paranoid-session/#findComment-927757
Share on other sites

$_FILES['userfile']['tmp_name']

The temporary filename of the file in which the uploaded file was stored on the server.

 

This is only temporary. Your file should be moved and re-named using move_uploaded_file(). Read http://us3.php.net/manual/en/features.file-upload.post-method.php

 

If you have all the security mentioned above then I fail to see how anyone will gain root access to your server! Please enlighten me.

Link to comment
https://forums.phpfreaks.com/topic/176068-paranoid-session/#findComment-927782
Share on other sites

The file will be moved , but still will reside on the server .

The security issue is just a "political" problem .

This portal , and the certificates are of the max importance , with then you "could" access to hundreds of computers all over the world .

So my chiefs ( that are not IT ) want the max security you can think of .

The code is crypted .

The session itself it's a problem because reside on the server  , so we  crypt  and move them to a database on another machine physically connected to the web server that accepts connections only from one ethernet nic .

 

 

Link to comment
https://forums.phpfreaks.com/topic/176068-paranoid-session/#findComment-927829
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.