GHSA-RHQ6-9RGH-V45C
Pterodactyl Wings: Chmod operation can be used to change permissions of files outside of the server container
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche v1.12.2 | github.com/pterodactyl/wings · -34 d desde divulgación | |
| Divulgación | Publicada | GHSA-RHQ6-9RGH-V45C divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
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.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/pterodactyl/wings |
Corregida | v1.12.2 | -34 d | v1.13.5 no afectada |
1.12.2v1.12.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pterodactyl/wings/security/advisories/GHSA-rhq6-9rgh-v45chttps://github.com/pterodactyl/wingsLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
