Bug 1164337 - dnssec: ares: don't blindly trust the AD flag from nameservers in /etc/resolv.conf
Summary: dnssec: ares: don't blindly trust the AD flag from nameservers in /etc/resolv...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: c-ares
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: dnssec
TreeView+ depends on / blocked
 
Reported: 2014-11-14 17:16 UTC by Pavel Šimerda (pavlix)
Modified: 2016-07-19 12:24 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 12:24:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
a patch to clear AD flag unless the nameservers are read from /etc/resolve-secure.conf (55.75 KB, patch)
2014-11-14 22:55 UTC, Pavel Šimerda (pavlix)
no flags Details | Diff
a simplified version of the patch, also handling the AD flag setting (5.31 KB, patch)
2014-11-16 11:12 UTC, Pavel Šimerda (pavlix)
no flags Details | Diff

Description Pavel Šimerda (pavlix) 2014-11-14 17:16:40 UTC
Many network configuration services automatically put name servers into /etc/resolv.conf, which is then automatically read by c-ares, and applications using c-ares blindly trust the AD flag even though it doesn't come from a local (or otherwise trusted) resolver.

Comment 1 Pavel Šimerda (pavlix) 2014-11-14 17:17:33 UTC
Working on it, assigning to myself for now.

Comment 2 Pavel Šimerda (pavlix) 2014-11-14 22:55:46 UTC
Created attachment 957732 [details]
a patch to clear AD flag unless the nameservers are read from /etc/resolve-secure.conf

The attached patch implements one of the ways to handle the difference between trusted and untrusted resolvers. Patched c-ares first attempts to read /etc/resolv-secure.conf for trusted resolver configuration. If that's missing, it reads /etc/resolv.conf as usual but clears the AD flag from any response.

There have been other proposals like a directive to list trusted resolvers in the good old /etc/resolv.conf.

Comment 3 Pavel Šimerda (pavlix) 2014-11-16 11:12:08 UTC
Created attachment 957960 [details]
a simplified version of the patch, also handling the AD flag setting

Comment 4 Jaroslav Reznik 2015-03-03 17:05:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 5 Petr Spacek 2015-04-27 07:16:18 UTC
Dropping RHEL bug from block list.

Comment 6 Fedora End Of Life 2016-07-19 12:24:17 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.