From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: unbound startup
Date: Tue, 29 May 2018 20:30:41 +0100 [thread overview]
Message-ID: <252b0cbfb154ce2b5d8ff185833a60252f01cb7f.camel@ipfire.org> (raw)
In-Reply-To: <20180529115710.GB22462@tehanu.it.jyu.fi>
[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]
On Tue, 2018-05-29 at 14:57 +0300, Tapani Tarvainen wrote:
> With a bit closer look it seems this is more serious than I thought:
> it's not only a bug but a security bug.
I do not consider this a security issue. This might be an information leak
though and cause some unintended behaviour, but that is about it.
> Under certain circumstances restarting unbound (which as noted happens
> with every Edit Hosts &c) can lead to loss of data as well as result
> in data leaks outside the firewall.
>
> As it is now, at unbound startup there's a time window when it gives
> wrong answers to DNS queries. NXDOMAIN is bad enough and can lead to
> data loss in several circumstances, but as it starts forwarders before
> populating local hosts it can also return wrong answers in split DNS
> situations, that is, return external IP when it should return the
> internal one. This is obviously bad if exernal DNS server is
> compromised or spoofed, but even when it isn't, connections intended
> to intranet machines could go outside when they shouldn't.
Your application should not rely on getting a response from the DNS servers. And
if there is any important data to be sent to somewhere else it should try again.
> Exploiting this deliberately is not all that simple and all really bad
> cases I can think of require split DNS setup and knowledge or ability
> to guess when unbound is restarted, but some attacks could be set up
> to wait for it.
>
> If this list is not the right place for discussing about bugs, please
> redirect wherever appropriate.
This is the right place. It's the dev list.
-Michael
next prev parent reply other threads:[~2018-05-29 19:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-28 6:17 Tapani Tarvainen
2018-05-29 11:57 ` Tapani Tarvainen
2018-05-29 16:05 ` Tapani Tarvainen
2018-05-29 19:30 ` Michael Tremer [this message]
2018-06-02 13:02 ` Tapani Tarvainen
2018-05-29 19:28 ` Michael Tremer
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=252b0cbfb154ce2b5d8ff185833a60252f01cb7f.camel@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.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