FreeBSD getnameinfo() Denial of Service Vulnerability
BID:1894
Info
FreeBSD getnameinfo() Denial of Service Vulnerability
| Bugtraq ID: | 1894 |
| Class: | Input Validation Error |
| CVE: |
CVE-2000-1066 |
| Remote: | Yes |
| Local: | No |
| Published: | Nov 01 2000 12:00AM |
| Updated: | Jul 11 2009 03:56AM |
| Credit: | First published in FreeBSD advisory SA-00:63 on November 1, 2000. |
| Vulnerable: |
FreeBSD FreeBSD 4.1.1 -RELEASE FreeBSD FreeBSD 4.1.1 FreeBSD FreeBSD 4.1 FreeBSD FreeBSD 4.0 alpha FreeBSD FreeBSD 4.0 |
| Not Vulnerable: | |
Discussion
FreeBSD getnameinfo() Denial of Service Vulnerability
The getnameinfo() function is used by network programs to retrieve the resolved names for the address and port values in socket address structures (it returns hostname and service name strings). The implementation of this fuction that ships with BSD systems contains an off-by-one vulnerability that can lead to a remotely caused denial of service. If a malicious user controlling the victims DNS server has the service return an "extra long" hostname in response to a query made through the use of getnameinfo(), the program calling the function will crash. This attack can be used to disable a "one time" service not spawned by inetd that uses getnameinfo() before forking any children to deal with clients.
The getnameinfo() function is used by network programs to retrieve the resolved names for the address and port values in socket address structures (it returns hostname and service name strings). The implementation of this fuction that ships with BSD systems contains an off-by-one vulnerability that can lead to a remotely caused denial of service. If a malicious user controlling the victims DNS server has the service return an "extra long" hostname in response to a query made through the use of getnameinfo(), the program calling the function will crash. This attack can be used to disable a "one time" service not spawned by inetd that uses getnameinfo() before forking any children to deal with clients.
Exploit / POC
FreeBSD getnameinfo() Denial of Service Vulnerability
Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].
Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].