ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] [wietse@porcupine.org: Postfix CA-2003-12 Preliminary REJECT pattern]
@ 2003-03-30 21:56 Dmitry V. Levin
  2003-03-31  4:01 ` ASA
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2003-03-30 21:56 UTC (permalink / raw)
  To: ALT Linux general discussion list

[-- Attachment #1: Type: text/plain, Size: 1953 bytes --]

Для тех, у кого в сети есть sendmail.

----- Forwarded message from Wietse Venema <wietse@porcupine.org> -----

Date: Sun, 30 Mar 2003 09:55:31 -0500 (EST)
From: wietse@porcupine.org (Wietse Venema)
To: Postfix announce <postfix-announce@postfix.org>
Cc: Postfix users <postfix-users@postfix.org>
Subject: Postfix CA-2003-12 Preliminary REJECT pattern

CERT advisory CA-2003-12 is about a Sendmail buffer overflow exploit
that can happen with message headers containing the 0xff byte value.

According to the documentation from Sendmail, some exploits can be
stopped by avoiding 0xff bytes in message headers.  The solution
is partial because downstream Sendmail systems may use untrusted
information from the DNS while (re)writing headers, and someone
could insert 0xff characters that way.

One quick way to implement the partial solution is to specify a
header_checks REGEXP pattern that rejects message headers with 0xff
characters.  Specifying numerical character codes in REGEXP patterns
turns out to be painful.  Here is a somewhat clumsy method to
specify a 0xff matching REGEXP:

awk '
    BEGIN { 
	printf "/%c/ REJECT Possible CA-2003-12 exploit\n",255
	exit
    }
' >/etc/postfix/block255

/etc/postfix/main.cf:
    header_checks = /etc/postfix/block255 ...other_files...

Tested with FreeBSD 4, Redhat 8, Solaris 9, all running on Intel.

Raw binary data such as 0xff may cause trouble with text editors.
Therefore, the above example uses a separate file for blocking
the 0xff character instead of appending the pattern to an existing
header_checks file.

Please, do not reply to me and suggest REGEXP patterns using \0377
or \xff. They are outside the re_format(7) spec and will not work
for everyone.

The equivalent PCRE pattern may be easier to specify, but PCRE
support is not universally available with Postfix.

Since I am packing for yet another a trip, this is all I can do now.

	Wietse

----- End forwarded message -----

--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] [wietse@porcupine.org: Postfix CA-2003-12 Preliminary REJECT pattern]
  2003-03-30 21:56 [Comm] [wietse@porcupine.org: Postfix CA-2003-12 Preliminary REJECT pattern] Dmitry V. Levin
@ 2003-03-31  4:01 ` ASA
  2003-03-31  5:23   ` Ilya Palagin
  0 siblings, 1 reply; 3+ messages in thread
From: ASA @ 2003-03-31  4:01 UTC (permalink / raw)
  To: Dmitry V. Levin

Hello Dmitry,

Monday, March 31, 2003, 2:56:10 AM, you wrote:

DVL> Для тех, у кого в сети есть sendmail.

...

DVL> To: Postfix announce <postfix-announce@postfix.org>
DVL> Cc: Postfix users <postfix-users@postfix.org>
DVL> Subject: Postfix CA-2003-12 Preliminary REJECT pattern

Странно, до сих пор я думал, что sendmail и postfix - разные
программы ;)
(наличие /usr/sbin/sendmail в расчет не берется)

-- 
Best regards,
 ASA                            mailto:llb@udm.ru



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] [wietse@porcupine.org: Postfix CA-2003-12 Preliminary REJECT pattern]
  2003-03-31  4:01 ` ASA
@ 2003-03-31  5:23   ` Ilya Palagin
  0 siblings, 0 replies; 3+ messages in thread
From: Ilya Palagin @ 2003-03-31  5:23 UTC (permalink / raw)
  To: community

ASA wrote:
> Hello Dmitry,
> 
> Monday, March 31, 2003, 2:56:10 AM, you wrote:
> 
> DVL> Для тех, у кого в сети есть sendmail.
> 
> ...
> 
> DVL> To: Postfix announce <postfix-announce@postfix.org>
> DVL> Cc: Postfix users <postfix-users@postfix.org>
> DVL> Subject: Postfix CA-2003-12 Preliminary REJECT pattern
> 
> Странно, до сих пор я думал, что sendmail и postfix - разные
> программы ;)
> (наличие /usr/sbin/sendmail в расчет не берется)
> 
Wietse Venema рассылает рекомендации по фильтрации опасных
заголовков по каждой дыре в sendmail. Делается это для того,
чтобы защитить машины с sendmail, которые могут находиться
во внутренней сети.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-31  5:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-30 21:56 [Comm] [wietse@porcupine.org: Postfix CA-2003-12 Preliminary REJECT pattern] Dmitry V. Levin
2003-03-31  4:01 ` ASA
2003-03-31  5:23   ` Ilya Palagin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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