Poll: On the new Geekery, do you think:
You do not have permission to vote in this poll.
Users should be able to upload their files
100.00%
10 100.00%
Users should only be allowed to add links to their files
0%
0 0%
Total 10 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uploads
#11
Yeah, I'll filter the URLs to make sure that they have the extension .BAS or .ZIP.
But there's a problem with filtering certain words...What if you have a program that imitates a sexton? :lol:
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#12
I think maybe you are a little paranoid! :wink:

Oracle has file uploading, and im sure he doesnt get much junk. Oracle?
Reply
#13
Nope, I don't get much junk. And the script I gave to Zack filters based on extension type so he can say that only .txt, .bas and .zip are allowed. I did once have somebody upload a php script that was supposed to delete everything but they had to name it to .txt so the server did not execute it.
Reply
#14
I think I've worked it out...
Two seperate sections: "Reliables" which I add, and "User Files" which users ADD LINKS TO. Not upload.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#15
Quote:I did once have somebody upload a php script that was supposed to delete everything but they had to name it to .txt so the server did not execute it.

Ouch! Nasty! That would have been wicked bad if that happened! Im surprised that there is an exploit that big. Are you meaning it would delete all the MySql database tables and data? I thought that it requires a password to run a script accessing your database. Or do you keep the db connection open all the time in your website?

Im confused...
Reply
#16
Hm, yeah.
Oracle, maybe you should have a folder non-accesible from the public that your uploads go into.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#17
Quote:Ouch! Nasty! That would have been wicked bad if that happened! Im surprised that there is an exploit that big. Are you meaning it would delete all the MySql database tables and data? I thought that it requires a password to run a script accessing your database. Or do you keep the db connection open all the time in your website?

Im confused...

No, it wouldn't delete any databases, just all the actual html files using unlink().

Zack: The folder, by virtue of having to be able to be written into, must be CHMODed to 777, thus accessable to the public. But things like checking extensions and renaming files when they are uploaded will plug all the major gaps I can think of by having a public folder.
Reply
#18
Erm perhaps you should put the uploads folder out of the web tree. i.e. on rpg-dev.net all of my files go in /home/rpg-dev/. If I want to be able to access something from the web I have to put it in /home/rpg-dev/public_html/. So, if I were to allow uploads (which I won't for bandwidth reasons but thats not the point heh) I would put them all in /home/rpg-dev/uploads/ so that anything the user uploads cannot be access from the users web browser.
Reply
#19
Fling: Precisely what I meant.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#20
I'll see if I can put my uploads out of the dir tree...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)