Jump to content

security read write files and folders


snk

Recommended Posts

hello,

 

when i upload files to my webspace i set permission to my files and folders. Im wondering how im unsafe if i grand a folder or file with write permissions to all/everybody. In fact I have the intelligence to understand that ones can places files to my webspace and then execute them. But I dont have the knowledge how to implement it.

 

How can i write to that folder and files?

 

thank you in advance for your attention.

Link to comment
https://forums.phpfreaks.com/topic/78694-security-read-write-files-and-folders/
Share on other sites

Well if someone was to post a file into an area which is processed by the web server before displaying it, and they were to put in some php, then that would get executed (or any other language the server is set up to interpret).

 

That should cover the extent of your question.

Im wondering how im unsafe if i grand a folder or file with write permissions to all/everybody

 

Actually, you did ask that question.

 

Anyway, look in the manual:

 

http://www.php.net/file-upload

 

If you aren't handling uploads, then look into the file functions...fopen, fwrite, fclose.......

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.