Jump to content

PHP Security Question


jk11uk

Recommended Posts

Hi im just learning about application security as i had one of mine hacked a while back.

 

I was just wondering if CHMOD is a security issue ? If my application is seccure (well, as seccure as an application can be) could the file permissions give me trouble? if so, what permissions should i assign to which type of files? for example general files, then files which need to be accessed by code but contain sensetive info (eg. the file with the database details)

 

 

 

thanks a lot in advance for any help :)

Link to comment
https://forums.phpfreaks.com/topic/80149-php-security-question/
Share on other sites

CHMOD in itself is not a security issue as it is a way to flag file for their accessability.  However imporoperly flagged files is an issue.

 

By default you want to limit access to files/folders to what is needed and nothing more.  For the most part this means dont' let public write to folder (no XXX7) or files.

 

If you don't make an open system you will be fine.

Link to comment
https://forums.phpfreaks.com/topic/80149-php-security-question/#findComment-406197
Share on other sites

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.