Repository navigation
RustHound-CE v2.5.53
This release fixes a crash in the Linux x86_64 release binary: resolving a Domain Controller by hostname killed the process with a Floating point exception before the bind. Every name lookup that feeds a socket connect now goes through the in-tree trust-dns resolver instead of glibc's NSS, and the published GNU asset is built dynamically as defence in depth. No new flags, no behaviour change where name resolution already worked.
Fixed
- Static-glibc NSS SIGFPE on hostname lookups (#125): passing a hostname to
-i/--ldapip, or any name lookup made deeper in a run (the GPO SYSVOL module connects to the DC by its FQDN, so a numeric-iwas enough), no longer aborts withFloating point exception (core dumped). The signal was SIGFPE from glibc, not the TLS stack: the name went togetaddrinfo, NSSdlopened the module from/etc/nsswitch.conf(libnss_mdnson Ubuntu hosts withlibnss-mdns), and loading it pulled a secondlibc.so.6into the statically linked (+crt-static) binary. glibc's early init then ranroundup(_dl_tls_static_size, _dl_tls_static_align)with a_dl_tls_static_alignthe static startup never set, divided by zero, and every tokio thread died at once.- Every name lookup that feeds a socket connect now uses the in-tree trust-dns resolver (
src/modules/resolver/resolv.rs, pure Rust, system resolver configuration) instead ofgetaddrinfo/NSS — wired into the LDAP URL,smb::connect_authenticated,smb::is_reachable, the local-group reachability check, the Kerberos KDC connect (TCP/88) and the ESC8 port check. The ESC8 web-enrollment and CES HTTP(S) probes install aTrustDnsResolveras thereqwestDNS resolver, so redirects are covered too. - IP literals are passed through untouched and a failed lookup falls back to the hostname, so behaviour is unchanged wherever NSS was working and the SMB session still authenticates against the original hostname/SPN (
Hostheader and TLS SNI preserved).
- Every name lookup that feeds a socket connect now uses the in-tree trust-dns resolver (
Changed
- Linux GNU x86_64 asset built dynamically (#125):
make build_linux_x86_64and the release workflow drop-C target-feature=+crt-staticand ship a dynamic glibc binary as defence in depth, since a dependency can still resolve names itself (theadwscrate connects to-t adwstargets by name).build_linux_muslremains the fully static option, and Windows and macOS keep+crt-static. --ldapiphelp text now mentions that a hostname is accepted.
Note: ADWS (
-t adws) connects to the target by name for the TCP connect, thenet.tcp://URL and the SPN. The dynamic build avoids the SIGFPE for it; a fully static (+crt-static) build would still need an address override inadws.
Thanks to @bandrel for the root-cause analysis and the fix.
Full Changelog: v2.5.52...v2.5.53