+Thu Oct 23 13:59:32 1997 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * state.c (envvarok): Prohibit the passing of TERMCAP, TERMPATH,
+ TERMINFO, and HOME, since they can be used to exploit a
+ security in tgetent.
+
Wed Apr 9 23:46:40 1997 Tom Yu <tlyu@mit.edu>
* sys_term.c (start_login): Bounds check the constructed "speed"
char *varp;
{
if (!strchr(varp, '=') &&
+ strcmp(varp, "TERMCAP") && /* to prevent a security hole */
+ strcmp(varp, "TERMINFO") && /* with tgetent */
+ strcmp(varp, "TERMPATH") &&
+ strcmp(varp, "HOME") && /* to prevent the tegetent bug */
strncmp(varp, "LD_", strlen("LD_")) && /* most systems */
strncmp(varp, "_RLD_", strlen("_RLD_")) && /* irix */
strncmp(varp, "KRB5", strlen("KRB5")) && /* v5 */