Bug 107997
Summary: | CVE-2004-0750 [PATCH] /etc/exports has incorrect syntax for multiple hosts with a single mount point | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | John Buswell <johnb> | ||||
Component: | redhat-config-nfs | Assignee: | Nils Philippsen <nphilipp> | ||||
Status: | CLOSED WONTFIX | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 3.0 | CC: | k.georgiou, mjc, pekkas, s.j.thompson | ||||
Target Milestone: | --- | Keywords: | Reopened, Security | ||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | impact=low,source=redhat,reported=20031025,public=20031025 | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-11-01 10:11:21 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: | |||||||
Attachments: |
|
Description
John Buswell
2003-10-25 21:50:41 UTC
Created attachment 95829 [details]
patch to propertiesWindow.py to set up multiple hosts correctly
When you start nfs-config-nfs it already converts a single entry with multiple
hosts to multiple entries, so why not set it up that way when adding multiple
hosts. This fixes the security problem and leans towards the more readable
format for the /etc/exports file.
Since this could cause an option such as "all_squash" to not being applied to all of the listed hosts, the Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0750 to this issue. Erratum in progress. An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2004-434.html Whilst testing a patch for Fedora-Legacy (based on the RH patch), I found that the errata does not completely resolve the security issue. I have also confirmed this is the case on a server running RHEL 3 with the RedHat errata applied. If you edit an *existing* export and add additional hosts using the redhat-config-nfs tool, then the result is that incorrect permissions are applied to the export. This errata has only resolved the issue when creating *new* exports and not when editing existing ones. Simon, would you please provide an example, what you did and what s/r-c-nfs does wrong? OK, create a new share with 1 host and set (for example) "Treat all client users as anonymous squash" option. This generates the following /etc/exports entry: /var/tmp host1(ro,sync,all_squash) If I then select properties of that share and in the "hosts" box, add another host, I get the following /etc/exports entry: /var/tmp host1 host2(ro,sync,all_squash) and a warning on the controlling tty: exportfs: No options for /var/tmp host1: suggest host1(sync) to avoid warning i.e. what is wrong is that host1 does not have the correct options (in this case ro and all_squash being the important ones) applied. The errata has only fixed the issue when you create a *new* share with multiple hosts, not if you edit an existing share and add more hosts. note: there's a patch by John Dalbec in #152787. John Dalbec's patch in Bug #152787 that seems to fix Simon Thompson's issue in comment #9 is in attachment 116722 [details]. https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=116722 REOPENED status has been deprecated. ASSIGNED with keyword of Reopened is preferred. EOL |