Bug 437301 (CVE-2008-0892)

Summary: CVE-2008-0892 Director Server: shell command injection in CGI replication monitor
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: benl, bressers, mharmsen, rmeggins, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: source=redhat,impact=important,reported=20080312,public=20080415,cvss2=7.7/AV:A/AC:L/Au:S/C:C/I:C/A:C,cwe=CWE-78
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-22 12:54:35 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 442679    
Bug Blocks:    
Description Flags
cvs commit log - 8.0 changes none

Description Tomas Hoger 2008-03-13 10:17:05 EDT
Richard Megginson discovered a shell command injection flaw in the Admin
Server's replication monitor CGI perl script repl-monitor-cgi.pl.  Script
parameters were not properly sanitized prior to being passed to system()
function.  An attacker able to access replication monitor CGI script could
execute arbitrary shell command with privileges of Admin Server.

Affected versions:
- Red Hat Directory Server 7.1
  - Admin Server runs with root privileges
- Red Hat Directory Server 8
  - Admin Server runs under an unprivileged user, following users by default:
    - nobody on Red Hat Enterprise Linux and Solaris
    - daemon on HP-UX
- Fedora Directory Server
  - Admin Server runs under an unprivileged user, nobody by default
Comment 3 Mark J. Cox 2008-03-14 07:29:37 EDT
For RHDS7.1:

For RHDS8 and FDS8 the CVSSv2 score is lowered to 
Comment 11 Rich Megginson 2008-04-15 12:53:03 EDT
Created attachment 302494 [details]
cvs commit log - 8.0 changes

Resolves: bugs 437301 and 437320
Description: Directory Server: shell command injection in CGI replication
Directory Server: unrestricted access to CGI scripts
Fix Description: remove ScriptAlias for bin/admin/admin/bin - do not use that
directory for CGI URIs - use only protected URIs for CGIs requiring
Remove most CGI parameters from repl-monitor-cgi.pl - user must supply
replmon.conf in the admin server config directory instead of passing in this
pathname - repl-monitor-cgi.pl does not use system to call repl-monitor.pl, it
"includes" that script (using perl import).
Platforms tested: all supported platforms
Flag Day: no
Doc impact: release notes are available
Comment 12 Tomas Hoger 2008-04-15 16:50:54 EDT
Lifting embargo.
Comment 14 Fedora Update System 2008-04-21 20:01:54 EDT
fedora-ds-admin-1.1.4-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 15 Fedora Update System 2008-04-21 20:02:26 EDT
fedora-ds-admin-1.1.4-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 16 Rich Megginson 2008-06-09 11:44:42 EDT
Checking in adminserver/admserv/cfgstuff/admserv.conf.in;
/cvs/dirsec/adminserver/admserv/cfgstuff/admserv.conf.in,v  <--  admserv.conf.in
new revision: 1.11; previous revision: 1.10
Checking in adminserver/admserv/cgi-src40/repl-monitor-cgi.pl.in;
/cvs/dirsec/adminserver/admserv/cgi-src40/repl-monitor-cgi.pl.in,v  <-- 
new revision: 1.2; previous revision: 1.1