Skip to content

Commit f405459

Browse files
committedDec 18, 2021
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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

Diff for: ‎src/script/cpp_api/s_security.cpp

-2
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)
Please sign in to comment.