Skip to content

v9.9

Latest

Choose a tag to compare

@vanhauser-thc vanhauser-thc released this 27 Nov 12:42

Release 9.9

  • security fixes (some reported by Elpe Pinillo and TristanInSec):
    • hydra.restore deserialization: validate ownership, clamp length/count/
      offset fields before driving malloc and loop bounds
    • parent IPC: NUL-terminate after read_safe to stop strcpy past the stack
      buffer (CodeQL cpp-unbounded-write)
    • hydra.restore / segment / -o output files: open 0600 with O_NOFOLLOW;
      segment file uses mkstemps
    • signal handlers: replace exit with async-signal-safe _exit
    • argv parser: -W and -T reject negative values; refuse -t > 30 on
      Cygwin per the long-documented stack-smash issue
    • HYDRA_PROXY parsing: fe80 link-local check now tests the resolved
      address rather than the previous proxy-table entry
    • module overflows fixed: ICQ icq_login, IRC OPER sprintf
      , rlogin/rsh/rexec buffer2, telnet IAC walk
      , SMB1 SMBSessionSetup login bound + szOSName sizeof
      , NCP password, PCNFS encoded loops,
      pcAnywhere clogin/cpass, AFP servername off-by-one
      , SNMP password_to_key_sha, LDAP simple-bind
      , SOCKS5 length bytes, Oracle-listener VLA
    • NULL-deref hardening for hydra_receive_line callers: POP3 STLS/NTLM,
      SMTP STARTTLS, HTTP DIGEST, HTTP-proxy
      strchr, rpcap/mongodb/memcached/asterisk/cisco-enable/cvs/
      redis/svn, SAPR3 missing -m, SIP get_iface_ip
    • HTTP-form: clear cookie jar and drop operator-supplied Authorization
      header on cross-host redirect; skip pair on hydra_strrep
      overflow rather than crash; cap urlpath_extracted strncpy
      ; apply PCRE2 match_limit/depth_limit
      ; a malformed h=/H= header (missing "Name:Value" colon or an empty
      name/value) now reports the real format error instead of the
      misleading "Out of memory for HTTP headers" (issue #954)
    • NTLM: NDEBUG-disabled assertions replaced with runtime caps in
      unicodeToString/strToUnicode/toString; challenge-offset
      bounds in GetUnicodeString/GetString/DumpBuffer macros to refuse
      server-controlled offsets > 4096
    • SMB1 short-reply uninit-stack: zero buffer and require >=42 bytes
      before reading the response code
    • target-spoof success-indicator hardening: PCNFS structural RPC
      checks, Adam6500 logic-inversion fixed, MySQL
      parse_response requires OK packet header, VNC recv length
      • loop bound, TeamSpeak recv-length validation,
        RPCAP NULL check
    • SSH: warn at runtime if linked libssh < 0.10.6 (CVE-2025-4877)
    • SAPR3 / postgres connection-string injection refused on quote chars
    • dpl4hydra: switch to HTTPS; sanitize VENDOR and pass via awk -v
      rather than literal interpolation (/630)
    • hydra-wizard.sh: build a properly-quoted argv array
    • xhydra: refuse SMB2 workgroup containing '}'
    • NTLM encoding vulnerabilties
    • SVN URLBRANCH NUL-termination + 255-byte miscptr cap;
      CVS encryption-table OOB-read clamp; IMAP DIGEST-MD5
      prefix + capability accumulator; SIP external_ip_addr
      NUL-termination; strip-trailing-CRLF off-by-one in
      pop3/imap/smtp/nntp
  • more buffer overflow fixes
  • fixed -o output file open flags
  • ftp: report servers that require TLS ("530 ... must use encryption")