You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Mark Bentley <be...@cs.umn.edu> on 1997/04/24 22:50:01 UTC

suexec/479: mod_cgi passing foobared username argument to suEXEC

>Number:         479
>Category:       suexec
>Synopsis:       mod_cgi passing foobared username argument to suEXEC
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Apr 24 13:50:01 1997
>Originator:     bentlema@cs.umn.edu
>Organization:
apache
>Release:        1.2b8
>Environment:
IRIX 5.3, gcc
>Description:
When passing a query string to a cgi script, apache passwd the username with
a leading backslash.   

This is the error returned by suEXEC:

  invalid target user name: (\~amundson)

Here's what haha.cgi looks like:

	#!/opt/gnu/bin/perl

	print "Content-type: text/html\n\n";
	print "hello";

>How-To-Repeat:
Works:
http://www.cs.umn.edu/~amundson/haha.cgi

Doesn't work:
http://www.cs.umn.edu/~amundson/haha.cgi?foo

Works:
http://www.cs.umn.edu/~amundson/haha.cgi?foo=bar
>Fix:

>Audit-Trail:
>Unformatted: