1
vote
1answer
157 views

PHP file upload system security implications

i've build a small upload system using PHP, it is working just fine for now however, the problem i have is the way i've got it to work. I don't have much of a background in security, but is what i'm ...
0
votes
2answers
309 views

I have two domains on my Linux Server. How to do Cross domain uploading?

I have two domains DomainA.com , DomainB.com on my Linux Server , each with separate space. I am using PHP and MySQL for both my websites. I have a page on DomainA.com from where users upload files. ...
0
votes
0answers
84 views

Make my upload folder more secure

I'm sorry if there is already 100 answers out there about this, but they just got me confused. I've a working php-script that allows me to upload images to the webserver when I'm logged in to a CMS. ...
0
votes
2answers
222 views

file won't upload unless i change the file permission to 0777 on my server

i am unaware on the cons and pros of giving the directory permission to 0777, and i have left with no choice but to use the 0777 file permission to upload files on my server through my application. ...
1
vote
1answer
83 views

File Permissions: Who are the user, group, and others on my web server? What perms should i use for uploaded files, php files, etc.?

I am using cPanel with apache 2 and php 5.2. I have a file upload script, which currently puts the uploaded files in a directory with 0777 perms and the file itself also has 0777 perms. this is ...
4
votes
1answer
4k views

How to set default umask for Tomcat webdav servlet?

The title says it all. I need Tomcat's webdav servlet to create files with rw-rw-r-- rights, but it keeps creating it as rw-r--r--. I tried to set up umask in /etc/profile, but it didn't help ...
1
vote
2answers
696 views

Secure Windows to Linux file upload

I am looking for a way to do a bulk upload of a list of media files from a remote windows machine to a Linux server. The files should be encrypted before sending so I am looking at either SCP or ...
1
vote
1answer
1k views

How do I set the default umask in apache?

I need to set the default umask in apache on fedora so that my uploaded files have permissions 644 which are set to 600 by default in spite of doing chmod( $uploaded_file , 0644 ); in php script. Can ...