Description
Bastille through 1.4.4 contains a symlink following vulnerability in the cp.sh, rcp.sh and jcp.sh subcommands that allows jailed users to escape jail isolation. Attackers inside a jail can plant symlinks pointing to host paths or other jail roots, so administrator-run copies overwrite or read host files with root privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| BastilleBSD | bastille | ≤ 1.4.4 | — |
References
- GitHub Issue #1673 issue-tracking
- https://github.com/BastilleBSD/bastille product
- https://github.com/BastilleBSD/bastille/commit/accc246ba92602c355afc66d0d8b9d43277532e1 patch
- https://github.com/BastilleBSD/bastille/blob/1.4.4/usr/local/share/bastille/cp.sh#L98-L110 technical-description
- VulnCheck Advisory: Bastille through 1.4.4 Jail Escape via Symlink Following in cp, rcp, jcp third-party-advisory