| Summary: | net-ftp/pure-ftpd allows accessing of files outside the chroot through a symlink | ||
|---|---|---|---|
| Product: | Gentoo Security | Reporter: | Marijn Koesen <gentoo> |
| Component: | Default Configs | Assignee: | Gentoo Security <security> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | humpback |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Marijn Koesen
2005-02-02 06:34:09 UTC
Looks more like a default config bug (i.e. it works as expected, but it's confusing). pure-ftpd-1.0.20-r1.ebuild is in portage now, i'll mark it stable tomorow after some more tests. Other arches should follow. A fix, and so quick, great! I've tested it, and it seems to work fine. Thx Gustavo. Arches please test and mark stable. I've done a quick test to verify, that you are unable to escape from your chroot using a link and the test was successful: you couldn't ecape. Stable on ppc64 On irc: jaervosz - HumpBack: you think it is real security issue we should issue an advisory on? Well i really dont know. The older releases had the option to use the insecure virtual-chroots hardcoded in the configure option, and as far as i could find there is no way to deactivate it at runtime. So there could be running systems where the admins think users are locked in the chroot and they are not. sparc stable. Users can *not* create symlinks through pure-ftpd. They have to do it through a shell or other means. But if they can do it, they already have access to a non-chrooted environment. The virtual chroot feature is what most users need in order to have shared folders. >> They have to do it through a shell or other means. But if they can do it, they already have access to a non-chrooted environment.
That is incorrect, a user can create a symlink to '/' via ssh while in a chroot. This symlink will lead to the root of the chroot (e.g. /home/chroot/user).
If the user than connects to the pure-ftpd the '/' symlink links to the root of the system and not of the chroot.
Stable on alpha. Sorry for the delay. Stable on ppc. hppa/ia64 stable This is fixed, as now we have a (more) secure default. This wasn't a vulnerability (works as advertised) so closing without GLSA. If you disagree feel free to reopen. |