Skip to content

Commit f405459

Browse files
committed
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).
1 parent 8c99f22 commit f405459

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/script/cpp_api/s_security.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,10 @@ void ScriptApiSecurity::initializeSecurity()
129129
"traceback",
130130
"getinfo",
131131
"getmetatable",
132-
"setupvalue",
133132
"setmetatable",
134133
"upvalueid",
135134
"sethook",
136135
"debug",
137-
"setlocal",
138136
};
139137
static const char *package_whitelist[] = {
140138
"config",

0 commit comments

Comments
 (0)