Tryb rekurencyjny (-R) narzędzia chmod w uutils coreutils nieprawidłowo obsługuje kody wyjścia podczas przetwarzania wielu plików. Końcowa wartość zwracana zależy wyłącznie od sukcesu lub porażki ostatnio przetwarzanego pliku. Pozwala to poleceniu zwrócić kod wyjścia 0 (sukces) nawet jeśli błędy wystąpiły na wcześniejszych plikach, takie jak 'Operation not permitted'. Skrypty opierające się na tych kodach wyjścia mogą kontynuować pracę z fałszywym poczuciem powodzenia, podczas gdy wrażliwe pliki pozostają z restrykcyjnymi lub nieprawidłowymi uprawnieniami.
▸ Pokaż oryginał (EN)
The recursive mode (-R) of the chmod utility in uutils coreutils incorrectly handles exit codes when processing multiple files. The final return value is determined solely by the success or failure of the last file processed. This allows the command to return an exit code of 0 (success) even if errors were encountered on previous files, such as 'Operation not permitted'. Scripts relying on these exit codes may proceed under a false sense of success while sensitive files remain with restrictive or incorrect permissions.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NUutils Coreutils
APPUutils< 0.6.0
Powiązane podatności
A vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The utility...
A vulnerability in uutils coreutils mkfifo allows for the unauthorized modification of permissions on existing...
A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mec...
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mkfifo utility of uutils coreutils. The u...
Wada w ChownExecutor używanym przez narzędzia chown i chgrp z uutils coreutils powoduje zwracanie nieprawidłow...