473,587 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Security questions regarding password protected ZIP files

88 New Member
Yay guys!

I hope you all are having a warm fuzzy loveable day.

The following questions are kind of related to this thread:
Protect files (on web server) from web admin.

If one has password protected zip file:
1) where would the content temporary be extracted to (probably the OS designated temp directory, right?)

2) would the extracted content be protected? That is, would the extracted zip content (files and folders):

2.1) be hidden? (i.e. you can't see the files and folders)

2.2) not be possible to copy? (i.e. regardless if you can see the files and folders or not, you can't copy the extracted content)

Then there is the question of performance:
  • Would PHP extract the zip files for each request?
  • Or would the first request for the content be extracted and all following requests use the same extracted content?

Does this make any sense? I hope so.
Nov 8 '07 #1
2 2571
Atli
5,058 Recognized Expert Expert
Hi.

Just my $.02...

If one has password protected zip file:
1) That would depend on the class / extension you are using to un-zip your files. I would assume you would have a choice.

2) would the extracted content be protected? That is, would the extracted zip content (files and folders):

2.1) Nothing is hidden from the root user of your OS. So if the files will be un-zipped onto the hard-drive the root user could read it. But you would be able to un-zip them into a folder outside the web-root, so it could not be directly downloaded by HTTP clients.

2.2) If you can see a file, you can copy it (one way or another). And as with point 2.1, the root user can pretty much do everything. You should also be aware that PHP is ofter run by a 'nobody' user, so every file PHP creates should be protected from other users of the system.

Then there is the question of performance:
  • This would be the ideal security arrangement, but would result in very poor performance.
  • This would be the ideal performance arrangement, but would leave the files unprotected from the root users, and any other user that has access to it.
Nov 9 '07 #2
ManWithNoName
88 New Member
Yay Atli! Thanks for your input!

1) That would depend on the class / extension you are using to un-zip your files. I would assume you would have a choice.”

Honestly. I did not see that one coming. I have been yearning to bring into play the new flashy PHP 5.2 ZIP support with all its super shiny glory for a while now, alas I have not come any closer upgrading to 5.2 yet.

Anyhow, it was the fallow up question that was of main interest:

2.1) Nothing is hidden from the root user of your OS. So if the files will be un-zipped onto the hard-drive the root user could read it. But you would be able to un-zip them into a folder outside the web-root, so it could not be directly downloaded by HTTP clients.

2.2)
If you can see a file, you can copy it (one way or another). And as with point 2.1, the root user can pretty much do everything. …”


However…

“This would be the ideal performance arrangement, but would leave the files unprotected from the root users, and any other user that has access to it.”

So basically it comes down to my two last questions? Performance VS security. If I have understood you correctly I should be able to do what ever I was trying to do, albeit it could come at a cost of losing performance.

“You should also be aware that PHP is ofter run by a 'nobody' user, so every file PHP creates should be protected from other users of the system.”
Sneaky. A user… With no name, you say. Thanks, I’ll keep a look out for that shifty thing.

I have a lot to learn in this area. I have been scratching the surface on compressing, caching and stuff. I want to apply these techniques to improve performance. I was hopping that I could use them to perfect security too. It seems that the easiest way would be to set up my own server ;)

Thanks your “PHP variable”-input (but you are not allowed to have dots in the var name!)
Nov 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
1882
by: chris | last post by:
im just starting to learn how sessions work and how to use them my question is if im geting a username and password from a visitor is it secure to store that information in a session variable or is it better to store that information in a database and retrieve it when needed or wouldnt it make any difference?? thanks chris
7
2608
by: PaulThomas | last post by:
I am fighting with XP-Pro and VS.Net trying to allow some of the pages in my application to be accessable by 'all' I am using <authentication mode="Forms" /> and if I Login - everything works fine. My code comes from a walkthrough (I am learning) and I am currently using (User.Identity.IsAuthenticated) in the Login.aspx page to validate...
1
1798
by: The Eeediot | last post by:
Hello, ASP.NET gurus! I have read many pages on setting up a login screen to access a number of web pages using Forms Authentication and I am still trying to wrap my brain around the whole thing. However, I know that my knowledge on this topic has a few gaping holes ('cause it still ain't working!). I am going to present my code and explain...
14
3486
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review, one developer suggested that it's a security flaw; therefore connection strings should be kept somewhere else or encrypted. My argument is that...
2
1592
by: Tammy | last post by:
Hello - I have read many threads regarding back-end security and have found them all useful. I have a couple of (what seem to be basic) questions: I have a secured front-end and back-end database. (I did use the security wizard for this.) By using the shortcuts provided, both files require a password to get in. Here is the problem: if...
2
1660
by: Regnab | last post by:
I'm creating a database that will be used independently at different sites (in the same company). Given the fact that there will be inevitable changes down the track, I'm trying to work out the best way of setting it up for ease of updates. This is completely beyond anything I've tried before so if people have better suggestions on how to...
2
1394
by: =?Utf-8?B?SmlybyBIaWRha2E=?= | last post by:
Hello, I hope I got the correct group about security issues I am having for an ASP.NET 2.0 application. I have a web app hosted on a server with Windows Server 2003 (IIS 6.0) which is on a seperate workgroup outside of the domain. This webapp needs to access a resource located on a server within the domain but I am having difficulties...
2
7652
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the PasswordRecovery with a Password reset required; a temporary password is sent to the account on file. I want an extra layer of security to accommodate...
5
8286
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.