From: Alexey Tourbin <at@altlinux.ru> To: Sisyphus <sisyphus@altlinux.ru> Subject: [sisyphus] Re: Q: perl security, CPAN security Date: Mon, 27 Jun 2005 15:29:01 +0400 Message-ID: <20050627112900.GL31585@solemn.turbinal.org> (raw) In-Reply-To: <200506271455.45144.serpiph@nikiet.ru> [-- Attachment #1: Type: text/plain, Size: 1530 bytes --] On Mon, Jun 27, 2005 at 02:55:44PM +0400, Epiphanov Sergei wrote: > А что в лес, что по дрова. Искать нужный текст среди кучи warning'ов иногда > не легче настройки из-за -T. А уж как apache на тестовой машине обрадуется > (проверка дат, окружения, пробовать достучаться до файлов, ... ). :) Вы понимаете, что это *только для рута* предлагается сделать? У вас apache исполняет перловый код с правами рута? > > $ perl test.pl arg > > /usr/bin/команда 'arg' > > $ perl test.pl arg\'\;rm\ -rf\ \'/ > > /usr/bin/команда 'arg';rm -rf '/' > > $ > > Но эти же команды Вы набираете сами! Стало быть, можно проверить что > набираете. Повторяю: для _личного_ пользования. Я пишу подобное для > обработки СВОИХ файлов в каталоге, предварительно просмотрев написание их > имён. Однако же полномочия рута выходят за пределы СВОИХ файлов в каталоге. В сущности, некоторые программы просто отказываются запускаться от рута. Кажется, раньше perldoc не запускался от рута. В elinks'е есть опция configure --enable-no-root enable prevention of usage by root Запускать нетривиальную программу от рута -- небезопасно, принудительно запрещать её запускать -- глупо. В перле есть разумная альтернатива -- taint mode. > У меня umask 077 для не-root. Стало быть, после Вашей установки никто не > получит доступ к модулям, если специально не дёргаться. А у кого-то, наоборот, umask 077 для root. Стало быть, после такой установки никто не получит доступ к модулям, если специально не дёргаться. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-06-27 11:29 UTC|newest] Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-06-26 9:06 [sisyphus] " Alexey Tourbin 2005-06-27 7:30 ` Epiphanov Sergei 2005-06-27 7:48 ` [sisyphus] " Alexey Tourbin 2005-06-27 7:57 ` Alexey Tourbin 2005-06-27 9:03 ` Epiphanov Sergei 2005-06-27 9:53 ` Alexey Tourbin 2005-06-27 10:55 ` Epiphanov Sergei 2005-06-27 11:29 ` Alexey Tourbin [this message] 2005-06-27 12:04 ` Epiphanov Sergei 2005-06-27 12:11 ` Epiphanov Sergei 2005-06-27 12:13 ` Epiphanov Sergei 2005-06-27 12:58 ` Alexey Tourbin 2005-06-27 13:11 ` [sisyphus] [JT] " Michael Shigorin 2005-06-28 5:39 ` Ivan Adzhubey 2005-06-28 5:55 ` [sisyphus] " Alexey Tourbin 2005-06-28 22:25 ` [sisyphus] " Ivan Adzhubey 2005-06-27 13:14 ` [sisyphus] " Epiphanov Sergei 2005-06-27 13:28 ` Alexey Tourbin 2005-06-28 4:57 ` Andrey Rahmatullin 2005-06-28 14:47 ` Вячеслав Диконов 2005-06-28 18:53 ` Andrey Rahmatullin 2005-06-28 17:46 ` Вячеслав Диконов 2005-06-28 7:51 ` Epiphanov Sergei 2005-06-28 9:56 ` Andrey Rahmatullin 2005-06-28 11:51 ` Epiphanov Sergei 2005-06-28 14:32 ` Andrey Rahmatullin 2005-06-28 9:29 ` Dmitry V. Levin 2005-06-28 10:17 ` Epiphanov Sergei 2005-06-28 10:27 ` [sisyphus] to cat or not to cat Dmitry V. Levin 2005-06-28 11:01 ` Epiphanov Sergei 2005-06-28 11:11 ` Dmitry V. Levin 2005-06-28 11:47 ` [sisyphus] mine fields Epiphanov Sergei 2005-06-28 12:19 ` [sisyphus] postfix-tls Dmitry V. Levin 2005-06-28 13:01 ` [sisyphus] Re: mine fields Konstantin A. Lepikhov 2005-06-28 17:58 ` [sisyphus] to cat or not to cat Igor Zubkov 2005-06-28 18:13 ` [sisyphus] [JT] rpm sux Dmitry V. Levin 2005-06-28 23:31 ` Igor Zubkov 2005-06-29 19:22 ` [sisyphus] Re: [JT] rpm os Michael Shigorin 2005-06-29 19:18 ` [sisyphus] [JT] Re: to cat or not to cat Michael Shigorin 2005-06-29 20:25 ` Dmitry V. Levin 2005-07-01 15:39 ` [sisyphus] " Alexey Tourbin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050627112900.GL31585@solemn.turbinal.org \ --to=at@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git