Files
q3-sydney-qvm/code/qcommon
Zack Middleton 3638f69dff Fix fs_game '..' reading outside of home and base path
VMs could set fs_game to '..' at anytime to access files outside of home
and base path. fs_game sent by server to clients could also be '..' to
access files outside of home and base path.

'..' was not caught by FS_CheckDirTraversal() as it expects filenames
not a single directory.

I've made fs_game be latched to prevent VMs from changing it with no
good way to validate it before it's used. com_basegame and fs_basegame
are now latched as well.

Additionally, it's now possible to change com_basegame while the engine
is running. game_restart or vid_restart will make it take affect.
com_homepath is now CVAR_PROTECTED to prevent VMs from changing it
to a directory traversal.

This requires my two previous commits for preventing VMs from changing
engine latch cvars and only Cvar_Get fs_game in FS_Startup (so CVAR_INIT
isn't added in serveral other places).

Reported by Noah Metzger (Chomenor).
2018-01-21 06:02:28 -06:00
..
2017-11-22 01:40:20 -06:00
2005-10-29 01:53:09 +00:00
2017-11-22 01:40:20 -06:00
2005-10-29 01:53:09 +00:00
2017-11-22 01:40:20 -06:00
2017-11-22 01:40:20 -06:00
2009-10-19 14:00:16 +00:00
2009-10-19 14:00:16 +00:00
2017-03-17 04:21:11 -07:00
2016-06-12 17:17:33 -04:00
2016-06-12 17:17:33 -04:00
2015-06-18 17:24:50 -05:00
2013-11-29 16:13:47 -08:00
2017-11-22 01:40:20 -06:00
2017-11-22 01:40:20 -06:00
2017-11-22 01:40:20 -06:00
2012-06-18 16:31:16 +00:00
2008-11-10 09:46:01 +00:00
2017-11-22 01:40:20 -06:00
2013-05-30 15:32:44 -05:00
2017-05-25 09:44:18 +01:00