Two out-of-bounds reads in NTLM hash capture (Responder)
extractAndPrintHash() reads 8 length/offset fields at ntlm+20 through ntlm+51, but the only check made before the function is called verifies just one byte (ntlm+8).
More seriously: further down the same function, the NTLMv2 response hex-dump loop reads pkt[base + ntRespOff + i] with no bound check at all. ntRespOff/ntRespLen are fully attacker-controlled. Confirmed as a wild-pointer read (SEGV), independent of the first bug. The result gets written to /BruceResponder/ntlm_hashes.txt and Serial, so a bad read can produce output that looks like a real captured hash but is unrelated process memory.
Location: src/modules/wifi/responder.cpp, lines 233-273
Suggested fix: extend the call-site gate to ntlmIndex + 52 <= smbLength, and guard the hex-dump loop the same way readUTF16() is already guarded two lines above it: if (base + ntRespOff + ntRespLen <= smbLength). Both fixes are needed; fixing only the first leaves the second fully exploitable.
Source: BruceDevices/firmware