TeX Live and MacTeX ⇒ Possible Security Hole in TeX Live Distribution
-
- Posts: 1
- Joined: Tue Aug 16, 2011 10:42 am
Possible Security Hole in TeX Live Distribution
In Ubuntu (Linux) 10.04 LTS, I have downloaded and installed texlive (2011) from http://www.tug.org/texlive/acquire-netinstall.html. They have issued the following warnings:
1. "To the best of our knowledge, the core TEX programs themselves are (and always have been) extremely robust. However, the contributed programs in TEX Live may not reach the same level, despite everyone’s best efforts. As always, you should be careful when running programs on untrusted input; for maximum safety, use a new subdirectory."
What does this exactly mean? The installed program has already created own directories and subdirectories (e.g. /usr/local/texlive/2011/bin/i386-linux). Am I supposed to create a new subdirectory in home to write files and run latex program? Exactly how do I know that the downloaded and installed program is not malicious?
2. "Finally, TEX (and its companion programs) are able to write files when processing documents, a feature that can also be abused in a wide variety of ways. Again, processing unknown documents in a new subdirectory is the safest bet."
Can anybody please explain what is implied by "a feature that can also be abused in a wide variety of ways". How do I know in case something bad had really happened?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Possible Security Hole in TeX Live Distribution
With the standard settings, running LaTeX on a file in <home>/my/folder can only write to <home>/my/folder or any subdirectories, and not to <home>/my or further 'up' the tree. So creating <home>/my/folder for each new .tex file is a good idea. (To see what might happen, imagine that I decide to set up some malicious code to write a file called 'cmd.exe' on Windows, or overwrite something in /etc/ on Linux.)