Files
q3-sydney-qvm/code
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-07-28 16:32:22 +01:00
2017-11-22 01:40:20 -06:00
2017-11-22 01:40:20 -06:00
2017-10-02 04:48:07 -05:00
2016-08-15 22:20:00 -04:00
2017-11-22 01:40:20 -06:00
2017-12-15 18:08:23 -06:00
2017-11-22 01:40:20 -06:00
2013-05-30 15:43:21 -05:00