mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Remove debug.getupvalue from the Lua sandbox whitelist
This function could be used to steal insecure environments from trusted mods.
This commit is contained in:
@@ -116,7 +116,6 @@ void ScriptApiSecurity::initializeSecurity()
|
|||||||
"upvaluejoin",
|
"upvaluejoin",
|
||||||
"sethook",
|
"sethook",
|
||||||
"debug",
|
"debug",
|
||||||
"getupvalue",
|
|
||||||
"setlocal",
|
"setlocal",
|
||||||
};
|
};
|
||||||
static const char *package_whitelist[] = {
|
static const char *package_whitelist[] = {
|
||||||
|
Reference in New Issue
Block a user