Closed
Bug 94469
Opened 25 years ago
Closed 24 years ago
/tmp/formpost follows symlinks
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
INVALID
mozilla1.1alpha
People
(Reporter: robbe, Assigned: alexsavulov)
References
Details
$ cd /tmp
$ ls -l formpost* /home/robbe/oops
ls: /home/robbe/oops: No such file or directory
lrwxrwxrwx 1 robbe robbe 16 Aug 9 11:52 formpost -> /home/robbe/oops
[... here I upload a file into a form ...]
$ ls -l /home/robbe/oops
-rw-rw-r-- 1 robbe robbe 825 Aug 9 12:08 /home/robbe/oops
Bad! You can make a user overwrite his/her own files. The filename is easily
guessable.
If bug 15320 is fixed so that formpost are no longer dropped into /tmp, this one
will no longer be an issue.
Updated•25 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
Does this Workaround work for you? It uses an area you control instead of /tmp.
1. mkdir $HOME/.tmp
2. chmod 01700 $HOME/.tmp
3. (umask 077 ; env TMPDIR=$HOME/.tmp mozilla )
However, one of the problems is that the file name is guessable. Moz 0.9.4 seems
to use O_EXCL now.
| Assignee | ||
Comment 4•24 years ago
|
||
darin:
Can you take a look please?
(i did set the target milestone, however it may be wrong)
Target Milestone: --- → mozilla1.1
Comment 6•24 years ago
|
||
temp files are gone... This is invalid now
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Updated•7 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•