Bug 56545
| Summary: | nscd reverse maps IP addresses incorrectly | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | John Dalbec <jpdalbec> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | drepper, fweimer, kjetilho |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-10-04 06:44:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
John Dalbec
2001-11-20 19:39:41 UTC
*Sheepish* I guess it would help if I configured /etc/hosts consistently with DNS. DNS has: mail03.cc.ysu.edu. 86400 IN A 150.134.10.203 mail.ysu.edu. 86400 IN A 150.134.10.203 ldap.ysu.edu. 86400 IN A 150.134.10.203 203.10.134.150.in-addr.arpa. 86400 IN PTR MAIL03.CC.YSU.EDU. I had "150.134.10.203 mail03.cc.ysu.edu mail03" in /etc/hosts. I've changed this to "150.134.10.203 mail03.cc.ysu.edu mail03 mail.ysu.edu ldap.ysu.edu". SFSG. If all goes well the next few days I'll make this NOTABUG. One of the other machines in the cluster started reverse resolving mail03.cc.ysu.edu as mail.ysu.edu. This one didn't have mail03.cc.ysu.edu in /etc/hosts at all. As a workaround I've added mail03 to /etc/hosts on all my machines, but I don't see how this could be a misconfiguration on my part. I'm reopening the bug. Actually, this is a serious security problem. nscd will cache a reverse lookup, and use the result for a forward lookup as well! Look at this: # getent hosts 80.82.160.10 80.82.160.10 localhost # ping localhost PING localhost (80.82.160.10): 56 data bytes 64 bytes from localhost (80.82.160.10): seq=0 ttl=233 time=133 ms. 64 bytes from localhost (80.82.160.10): seq=1 ttl=233 time=136 ms. If someone at 80.82.160.10 tried to connect to, say, my sshd, my system would automatically do a reverse lookup. If they next tried to connect to my MySQL, MySQL would think that 80.82.160.10 is localhost, and allow them in. I'm sure you can think of other ugly ways to exploit this bug. This is all long not the case anymore. Try FC3t2 for the latest code. |