You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/02/28 08:04:18 UTC

DO NOT REPLY [Bug 33765] New: - htdigest creates digest files suid/sgid

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33765>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33765

           Summary: htdigest creates digest files suid/sgid
           Product: Apache httpd-2.0
           Version: 2.0.52
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: chris+apache@chrullrich.de


htdigest creates its digest files with both suid and sgid bits set. I traced its
execution and noticed that it actually tries to create the file with full 07777
permissions, but the FreeBSD kernel ignores sticky, because it's a regular file.

In htdigest.c is a call to apr_file_open() for the digest file, with -1 in the
perm argument.

htpasswd, which uses APR_OS_DEFAULT for the perm argument, creates its files
with proper permissions.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org