Описание
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.
Пакеты
| Пакет | Статус | Версия исправления | Релиз | Тип |
|---|---|---|---|---|
| rust-coreutils | fixed | 0.9.0-1 | package | |
| rust-coreutils | no-dsa | trixie | package | |
| rust-coreutils | no-dsa | bookworm | package |
Примечания
https://github.com/uutils/coreutils/issues/10015
https://github.com/uutils/coreutils/pull/12170
Fixed by: https://github.com/uutils/coreutils/commit/515d74b995d5c2354f17dbc65ed9c884b393be1a (0.9.0)
Fixed by: https://github.com/uutils/coreutils/commit/54877ac475fa24b8f4b73cb4e6e286f9e7ab45f0 (0.9.0)
Fixed by: https://github.com/uutils/coreutils/commit/aa30c103004463ffe7b8a98ca0ce519d56bbbd41 (0.9.0)
Связанные уязвимости
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.
uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition