Bug 173285
Summary: | Insecure '--root' operations | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Enrico Scholz <rh-bugzilla> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | pmatilai |
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: | 2007-07-03 09:56:25 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: |
Description
Enrico Scholz
2005-11-15 22:26:42 UTC
A "malicious user with root rights" can get out of a chroot much more easily than through rpm vectors by doing fchdir("..)". Reducing the "Danger Will Robinson!!!!" security level to normal. Wrong; there are existing secure chroots. E.g. look at http://linux-vserver.org; the current behavior is a real security risk there. rpm with db4 is not appropriate to your vserver environment then. Choose a different tool. I think this is a real security risk, too. It's very much unlike breaking out of chroots as the risk is there even if chroot-breaking-out would be prohibited otherwise (e.g. selinux or a even a pure non-root fakechroot environment). The answer is the same: rpm with db4 is not the right tool if trying to use vserver's "secure chroots" and --root. Copy packages into the chroot, and run rpm only from within the chroot is one fix. Using sqlite3 is another. Fixed (by opening all non-temporaray indices before entering the chroot) in rpm cvs, will be in rpm-4.4.7 when released. UPSTREAM Should be fixed in 4.4.2.1 (rc) as well, similarly as in 4.4.7 |