From 4c92f196259f0dcfbaf266bed88785dd7e21e954 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 18 Sep 2010 00:24:18 +0000 Subject: set DVIPDFMXINPUTS to not include . git-svn-id: svn://tug.org/texlive/trunk@19789 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 6 ++++++ Build/source/texk/kpathsea/texmf.cnf | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'Build/source') diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 2c56a6fe1af..728601eef65 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,9 @@ +2010-09-18 Karl Berry + + * texmf.cnf (DVIPDFMXINPUTS): do not include ., so attackers + cannot create a dvipdfmx.cfg with, e.g., xetex. + Report from Heiko, 16 Sep 2010 22:32:25. + 2010-09-09 Karl Berry * mktexlsr (vc_dirs): remove CVS and RCS from the list, diff --git a/Build/source/texk/kpathsea/texmf.cnf b/Build/source/texk/kpathsea/texmf.cnf index 2bdfe3dcf6b..42c6ddde4ed 100644 --- a/Build/source/texk/kpathsea/texmf.cnf +++ b/Build/source/texk/kpathsea/texmf.cnf @@ -428,6 +428,10 @@ TEX4HTINPUTS = .;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}// TW_LIBPATH = $TEXMFCONFIG/texworks TW_INIPATH = $TW_LIBPATH +% For security, do not look in . for dvipdfmx.cfg, since the D option +% would allow command execution. +DVIPDFMXINPUTS = $TEXMF/dvipdfmx + % Find scripts that are distributed/installed in the texmf tree. % Lua needs to look in TEXINPUTS for lua scripts distributed with packages. -- cgit v1.2.3