github.com/pterodactyl/wings
Affected
- introduced
1.11.9, fixed1.12.2(semver)
Fixed versions
1.12.2
Fix
- Fixed version
1.12.2go get github.com/pterodactyl/[email protected]
Advisory
Also known as: GO-2026-5814
Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container
In wings/internal/ufs/fs_unix.go (line 92-94), this function is defined and is used to change permissions of files in the server:
func (fs *UnixFS) fchmodat(op string, dirfd int, name string, mode FileMode) error {
return ensurePathError(unix.Fchmodat(dirfd, name, uint32(mode), 0), op, name)
}
This call to the unix function fchmodat(int fd, char* name, mode_t mode, int flags) does not have the flag AT_SYMLINK_NOFOLLOW set, and Wings neither checks or validate if the target file is a symlink. This allows one to change permissions of files or folders outside of the server container by making symlinks to existing files in the host and then chmoding it.
Medium Basis: The source's own band: MODERATE
1.11.9, fixed 1.12.2 (semver)1.12.2
1.12.2go get github.com/pterodactyl/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0