Skip to content

v2.5.53

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 07:34
· 1 commit to main since this release

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 -i was enough), no longer aborts with Floating point exception (core dumped). The signal was SIGFPE from glibc, not the TLS stack: the name went to getaddrinfo, NSS dlopened the module from /etc/nsswitch.conf (libnss_mdns on Ubuntu hosts with libnss-mdns), and loading it pulled a second libc.so.6 into the statically linked (+crt-static) binary. glibc's early init then ran roundup(_dl_tls_static_size, _dl_tls_static_align) with a _dl_tls_static_align the 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 of getaddrinfo/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 a TrustDnsResolver as the reqwest DNS 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 (Host header and TLS SNI preserved).

Changed

  • Linux GNU x86_64 asset built dynamically (#125): make build_linux_x86_64 and the release workflow drop -C target-feature=+crt-static and ship a dynamic glibc binary as defence in depth, since a dependency can still resolve names itself (the adws crate connects to -t adws targets by name). build_linux_musl remains the fully static option, and Windows and macOS keep +crt-static.
  • --ldapip help text now mentions that a hostname is accepted.

Note: ADWS (-t adws) connects to the target by name for the TCP connect, the net.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 in adws.

Thanks to @bandrel for the root-cause analysis and the fix.

Full Changelog: v2.5.52...v2.5.53