This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
If /tmp/XWin.log is a symlink, XWin will merrily follow it and write to whatever it's pointing to (see LogInit() in os/log.c). This allows standard symlink-following attacks.
Example: Alice runs "ln -s /home/Bob/phd-thesis.tex /tmp/XWin.log" under her account. Later Bob runs XWin under his account; XWin fails for some reasons and writes to /tmp/XWin.log; Bob life's work gets overwritten.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |