mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 10:23:47 +01:00
Remove setlocal and setupvalue from debug
table whitelist
It's likely that these could be used trick mods into revealing the insecure environment even if they do everything right (which is already hard enough).
This commit is contained in:
@ -129,12 +129,10 @@ void ScriptApiSecurity::initializeSecurity()
|
||||
"traceback",
|
||||
"getinfo",
|
||||
"getmetatable",
|
||||
"setupvalue",
|
||||
"setmetatable",
|
||||
"upvalueid",
|
||||
"sethook",
|
||||
"debug",
|
||||
"setlocal",
|
||||
};
|
||||
static const char *package_whitelist[] = {
|
||||
"config",
|
||||
|
Reference in New Issue
Block a user