В Linux, если цель Root.Chmod заменяется символической ссылкой во время выполнения операции chmod, Chmod может работать с целью символической ссылки, даже если цель находится за пределами корня. Системный вызов Linux fchmodat молча игнорирует флаг AT_SYMLINK_NOFOLLOW, который Root.Chmod использует, чтобы избежать обхода символических ссылок. Root.Chmod проверяет свою цель перед действием и возвращает ошибку, если целью является символическая ссылка, лежащая за пределами корня, поэтому влияние ограничивается случаями, когда цель заменяется символической ссылкой между проверкой и операцией.
Показать оригинальное описание (EN)
On Linux, if the target of Root.Chmod is replaced with a symlink while the chmod operation is in progress, Chmod can operate on the target of the symlink, even when the target lies outside the root. The Linux fchmodat syscall silently ignores the AT_SYMLINK_NOFOLLOW flag, which Root.Chmod uses to avoid symlink traversal. Root.Chmod checks its target before acting and returns an error if the target is a symlink lying outside the root, so the impact is limited to cases where the target is replaced with a symlink between the check and operation.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Golang Go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
|
— |
1.25.9
|
|
Golang Go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
|
1.26.0
|
1.26.2
|