|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Vladimir Bormotov 2:5020/400 25 Mar 2001 04:29:07 To : Kirill Frolov Subject : Re: Почему линукс игнорирует suid и sgid для скриптов? --------------------------------------------------------------------------------
Hi, Kirill!
>>>>> "KF" == Kirill Frolov <Kirill.Frolov@p2.f827.n5030.z2.fidonet.org> writes:
KF>>> Зачем это нужно?
VB>> в целях безопасности
KF> И каким образом эту безопасность можно было бы нарушить при
KF> отсутствии сабжа?
идем например на www.securityfocus.com
и делаем поиск по строке "suid scripts"
В одном из найденых писем есть вот такой абзац.
====
SUID shell scripts are traditionally insecure in unix environments. From
my understanding, this is because when the kernel hits the #! magic
number when executing the file, it then execs a shell and passes the
name of the shell script as an argument. Since starting the shell can take
a finite amount of time, there's a race condition where you can substitute
in a different file for the one that originally spawned the shell.
====
--
Bor.
--- ifmail v.2.15dev5
* Origin: BorHomeLand (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор Архивное /ru.linux/2541608255f2.html, оценка из 5, голосов 10
|