From 9940e15ad29253547c957b52ff0b5508af6f27d9 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 22 Oct 1994 17:19:49 +0000 Subject: A nice little security fix. Things must be rough in moscow... Submitted by: dima@demos.su (Dima Ruban) --- libexec/talkd/process.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libexec/talkd') diff --git a/libexec/talkd/process.c b/libexec/talkd/process.c index dd05e6b..fed7d34 100644 --- a/libexec/talkd/process.c +++ b/libexec/talkd/process.c @@ -87,6 +87,11 @@ process_request(mp, rp) rp->answer = BADCTLADDR; return; } + if (strchr(mp->l_name, 27)) { + syslog(LOG_NOTICE, "Illegal user name. Aborting"); + rp->answer = FAILED; + return; + } mp->pid = ntohl(mp->pid); if (debug) print_request("process_request", mp); -- cgit v1.1