ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] [#300834] DONE (try 2) logrotate.git=3.20.1-alt1
Date: Sat, 28 May 2022 19:07:57 +0300
Message-ID: <20220528160757.GD28763@altlinux.org> (raw)
In-Reply-To: <20220528154943.qdtciv6iwdrg3mmt@example.org>

On Sat, May 28, 2022 at 05:49:43PM +0200, Alexey Gladkov wrote:
> On Sat, May 28, 2022 at 06:34:00PM +0300, Dmitry V. Levin wrote:
> > On Sat, May 28, 2022 at 03:16:52PM +0000, Girar pender (legion) wrote:
> > > https://git.altlinux.org/tasks/archive/done/_293/300834/logs/events.2.1.log
> > > 
> > > 2022-May-28 15:12:50 :: task #300834 for sisyphus resumed by legion:
> > > #100 build 3.20.1-alt1 from /people/legion/packages/logrotate.git fetched at 2022-May-28 15:05:28
> > [...]
> > > #100 logrotate 3.16.0-alt1.git35_6e8dfb8 -> 3.20.1-alt1
> > >  Sat May 28 2022 Alexey Gladkov <legion@altlinux.ru> 3.20.1-alt1
> > >  - New version (3.20.1).
> > >  - Security fixes:
> > >    - CVE-2022-1348: potential DoS from unprivileged users via the state file.
> > > 2022-May-28 15:13:29 :: logrotate: mentions vulnerabilities: CVE-2022-1348
> > 
> > Прикольно, что в нашем пакете эта уязвимость была устранена ещё в 2000 году:
> > 
> > * Tue Sep 19 2000 Dmitry V. Levin <ldv@> 3.3-ipl10mdk
> > - Moved %_localstatedir/logrotate.status --> %_localstatedir/logrotate/status
> >   (and fixed perms).
> 
> Ну это был скорее объезд. Если использовать c другим state файлом, то
> проблема оставалась.

Это скорее другой подход к решению проблемы, чем просто объезд:
вместо того, чтобы следить за тем, как приложение работает с этим файлом,
просто убрать этот файл в недоступное для потенциального атакующего место.
Так всегда проще и надёжнее.


-- 
ldv


      reply	other threads:[~2022-05-28 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-28 15:34   ` Dmitry V. Levin
2022-05-28 15:49     ` Alexey Gladkov
2022-05-28 16:07       ` Dmitry V. Levin [this message]

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=20220528160757.GD28763@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git