From: Pierre Chifflier <pchifflier@edenwall.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Pierre Chifflier <chifflier@inl.fr>,
netfilter-devel@vger.kernel.org, eleblond@inl.fr
Subject: Re: [PATCH 2/3] Add new input plugin UNIXSOCK
Date: Tue, 8 Sep 2009 11:35:35 +0200 [thread overview]
Message-ID: <20090908093534.GA17095@piche.inl.fr> (raw)
In-Reply-To: <alpine.LSU.2.00.0909040147210.29902@obet.zrqbmnf.qr>
On Fri, Sep 04, 2009 at 01:54:42AM +0200, Jan Engelhardt wrote:
> >+/* Default unix socket path */
> >+#define UNIXSOCK_UNIXPATH_DEFAULT "/tmp/ulogd2.sock"
>
> That does not look like a good default path, though it might be
> configurable at runtime. It seems that, because sockets are
> world-connectable by default, random users could spam your socket.
>
> Subsequently, there also seems to be an easy DoS whereby a user process
> only needs to connect to block a legitimate program from sending packets
> to the module.
True, when using unix socket you always have to set path, permissions
and chown it ...
Maybe this could even be an option of ulogd.conf: unixsock_perms and
unixsock_owner ?
>
> Finally, but this is not so much of a problem, a user could also create
> ulogd2.sock first and then receive potentially interesting packets from
> a legitimate program that thought it would connect to ulogd2.
>
> I would just move it out to, for example, /var/run/ulogd/ulogd2.sock
> so one can set restrictions on /var/run/ulogd as needed.
Indeed, the only drawback is that the plugin will fail if the parent
directory does not exist.
Pierre
next prev parent reply other threads:[~2009-09-08 9:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 19:36 Remove debian directory, and add new UNIXSOCK input plugin Pierre Chifflier
2009-08-23 19:36 ` [PATCH 1/3] Remove debian directory Pierre Chifflier
2009-08-23 19:36 ` [PATCH 2/3] Add new input plugin UNIXSOCK Pierre Chifflier
2009-08-23 22:45 ` Jan Engelhardt
2009-09-02 20:45 ` Pierre Chifflier
2009-09-03 21:23 ` (unknown), Pierre Chifflier
2009-09-03 21:23 ` [PATCH 2/3] Add new input plugin UNIXSOCK Pierre Chifflier
2009-09-03 23:54 ` Jan Engelhardt
2009-09-08 9:35 ` Pierre Chifflier [this message]
2009-08-23 19:36 ` [PATCH 3/3] Add helper script pcap2ulog Pierre Chifflier
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=20090908093534.GA17095@piche.inl.fr \
--to=pchifflier@edenwall.com \
--cc=chifflier@inl.fr \
--cc=eleblond@inl.fr \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).