Skip to content

Commit 5f7712d

Browse files
committed
Add GCONV_PATH to initial_badenv_table[]
This could be used on glibc systems such as Linux to load an arbitrary shared libary when iconv_open() is called. On Linux systems, GCONV_PATH is removed from the environment by the dynamic linker for set-user-ID executables like sudo. However, for sudoers files where "reset_env" is disabled and either the "setenv" option is enabled or a user's privilege has the SETENV tag present, it could be set on the command line and passed to the command. Credit: - XlabAI Team of Tencent Xuanwu Lab ([email protected]) - Atuin Automated Vulnerability Discovery Engine - Guannan Wang, Zhanpeng Liu, Guancheng Li
1 parent db66916 commit 5f7712d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/sudoers/env.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static const char *initial_badenv_table[] = {
194194
"NODE_PATH", /* node.js, module search path */
195195
"GIT_SSH_COMMAND", /* git, custom SSH command */
196196
"GIT_CONFIG_GLOBAL", /* git, global config file override */
197+
"GCONV_PATH", /* glibc generic char set conversion iface */
197198
"*=()*", /* bash functions */
198199
NULL
199200
};

0 commit comments

Comments
 (0)