Any program which uses gethostbyname() with user-defined input is vulnerable to a buffer overflow attack. These overflows come with various eases of exploitability. The demonstration program happens to be "arp", but any program calling this function will do. When exploiting the dozens of programs vulnerable to this hole, don't forget to check your /etc/security/tcb/privs file for other non-suid programs which may allow you to elevate your privileges as well.
Exploit code:
--- uwarp.c ---
/**
** UnixWare 7.1 arp exploit yields gid of sys
** Demonstrates overflow in uw71's gethostbyname()
** use offsets of +-100
** Brock Tellier btellier@usa.net
**
**/