mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2869] DNS leak? Process escapes sandbox to use host's DNS call? #1793
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1793
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @garywill on GitHub (Jul 25, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2869
I used firejail in this way:
Set
tmp0ip192.168.88.1and serve DHCP and DNS usingdnsmasqontmp0, and provide Internet to NATedtmp0via iptables.If dnsmasq receives DNS query, I'll see in the log.
In firejail shows the right DNS I specified:
Problem is, in firejail
digandnslookupuse the DNS that mydnsmasqprovides, butcurland firefox still use host's DNS , as if the run not in sandbox. (In firejail Internet is provided by iptables NAT, and I banned it's access to host's DNS )@garywill commented on GitHub (Jul 26, 2019):
I did
straceand foundping,curldon't read/etc/resolve.conf.host,dig,nslookupdoes.I guess that's one of the reasons.
Still, the problem is sandbox escaped.
@rusty-snake commented on GitHub (Sep 10, 2019):
@garywill IDK how curl finds out where to look-up, but I tryed with
--dns=0.0.0.0to see if the cutom dns-server is used or not. I found out that if you use--netthe--dnsis considered.@garywill commented on GitHub (Oct 26, 2019):
It's because of nscd.
Need
--blacklist=/var/run/nscd@ghost commented on GitHub (Jan 20, 2020):
@garywill Can you do a PR on the profiles that need this please?
@rusty-snake commented on GitHub (Jan 20, 2020):
@garywill what shows
grep ^hosts /etc/nsswitch.conf?@garywill commented on GitHub (Jan 21, 2020):
@rusty-snake
@glitsj16
I don't know. I know hardly nothing about firejail's profile mechanism. What profile will be accounted when
--netis used?@ghost commented on GitHub (Jan 21, 2020):
When you change this to
hosts: files mdns_minimal dns, do you observe any changes (for the better hopefully)?@garywill commented on GitHub (Jan 22, 2020):
@glitsj16 Nope. Nothing different with editted
nsswitch.conf