K
Killswitch
Guest
You should get rid of Mambo, as there are several security flaws. Upgrade to Joomla 1.0.11 at joomla.org ( I use latest, its nice).
so, you have a php script.
- create an upload form in it.
- upload a perl cgi file to /tmp where php gives access to
- set a crontab to execute /tmp/perlscript
voila, you have full root access.
for example, if you set SYSTEM('rm -fr /'); in this perl script it removes the entire disc as far as possible.
/tmp has root access, via php you get chrooted access to tmp but you still can execute any script with any command via /tmp, where root AND plesk users has access to.
Originally posted by Traged1
Hmm, this cannot happen if you mount your /tmp partition with noexec,no_su options.
Edit your /etc/fstab file from:
LABEL=/tmp /tmp ext3 defaults 1 2
TO:
LABEL=/tmp /tmp ext3 loop,noexec,nosuid,rw 0 0
Then it does not matter what the users upload to your tmp partition as they cannot execute any files within the /tmp partition![]()
Originally posted by Markus
DID YOU READ MY POST.
Mounting /tmp with NOEXEC does NOT HELP.
IT WILL SMASH PLESK PSA DATABASE AND SEVERAL OTHER FUNCTIONS WILL FAIL.
Mysql fail, and you can do an serieus rpm -e command wich will take days.
Its because mysql uses /tmp and with noexec it starts messing up all services. Spamassassin, psa database, postgresql..........
HELLO!!!!!!!!!!!!!!!!!!!!!
If you upload a script via php from your site to the /tmp (wich is an openbasedir folder) you can upload AND execute any script as ROOT.
So please do not stupid by telling to use noexec in the mounting table because it will 1 give a mounting error(but startup is still possible) 2 it will fail entire plesk and all websites 3 it will corrupt your database.
I HAVE TRIED THE WHOLE WAY.
So please do not stupid by telling to use noexec in the mounting table because it will 1 give a mounting error(but startup is still possible) 2 it will fail entire plesk and all websites 3 it will corrupt your database.
Originally posted by vaoffroader
I have Plesk running fine with /tmp directory mounted as noexec. As has been stated several times before you need to have someone take a look at your server since it is plainly obvious you don't know what your doing.