Bug 490561
| Summary: | ntop: access.log created world-writable | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Vincent Danen <vdanen> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | bressers, huzaifas, ocs2 |
| Target Milestone: | --- | Keywords: | Reopened, Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-03-22 17:34:12 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Forgot to note the Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/ntop/+bug/325393 ntop-3.3.8-3.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/ntop-3.3.8-3.fc10 Fixed in rawhide and submitted an update to bodhi. Will take some time to reach updates. Please do not close 'Security Response' bugs that may affect other products as well. Thank you! This has been pushed into stable. Why not close it now ?? Which other products it effects ?? I am confused. ntop-3.3.8-3.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. Hi, Rakesh. Fedora is not the only product shipping this (EPEL5 and HPC also ship it). Upstream bug: http://www.ntop.org/trac/ticket/75 Upstream commit: http://www.ntop.org/trac/changeset/3748/trunk |
It was reported to Ubuntu that ntop creates the access log world-writable when the --access-log-file option is used. This option is not used in Fedora or Red Hat by default and is not noted in the configuration file. It is, however, noted in the ntop manpage. It would require the root user to add this option to the configuration in order for this file to be created. This is a low severity issue. A possible fix would be the following patch: --- http.c.org 2009-03-16 16:28:10.000000000 -0700 +++ http.c 2009-03-16 16:27:55.000000000 -0700 @@ -1298,6 +1298,7 @@ void printHTMLtrailer(void) { void initAccessLog(void) { if(myGlobals.runningPref.accessLogFile) { + umask(0137); myGlobals.accessLogFd = fopen(myGlobals.runningPref.accessLogFile, "a"); if(myGlobals.accessLogFd == NULL) { traceEvent(CONST_TRACE_ERROR, "Unable to create file %s. Access log is disabled.",