Hello,
I'm currently making a CMS for my company, and in the CMS, the user
has the possibility to upload any file to a documents folder - both
for having a document archive and uploading pdf / doc / ppt etc files
that people who visits the site the CMS generates can download.
As the system will be used by many different people, it's possible
that some people will try to exploit this - by for example uploading a
php file with passthru("rm -rf /").
Currently, I'm blocking php/cgi/pl/php3/.htaccess files (by file
name/extension) - but its very likely that there is lots of ways that
I haven't thought about that people can exploit the system.
People can also upload files into a MySQL database (for non-public
accessible files), but I would prefer that the publically available
files are stored as usual files for performance reasons.
The system will be used on a variety of servers - probably both Linux
and Windows.
Thanks in advance for any help!
Eivind Lie Nitter
I'm currently making a CMS for my company, and in the CMS, the user
has the possibility to upload any file to a documents folder - both
for having a document archive and uploading pdf / doc / ppt etc files
that people who visits the site the CMS generates can download.
As the system will be used by many different people, it's possible
that some people will try to exploit this - by for example uploading a
php file with passthru("rm -rf /").
Currently, I'm blocking php/cgi/pl/php3/.htaccess files (by file
name/extension) - but its very likely that there is lots of ways that
I haven't thought about that people can exploit the system.
People can also upload files into a MySQL database (for non-public
accessible files), but I would prefer that the publically available
files are stored as usual files for performance reasons.
The system will be used on a variety of servers - probably both Linux
and Windows.
Thanks in advance for any help!
Eivind Lie Nitter
Comment