by bitmage · 10y ago · 0 comments
Not that this in any way absolves the OEM for the utter idiocy of including the telnet port in their forwards at all and the absolute negligence of having it active by default and 'secured' by a single or small combination of well known auth tuples.
But yeah, that's really what they did. Here's the section of Mirai's scanner.c that sets up the destination port. [1]
// Set up TCP header
tcph->dest = htons(23);
tcph->source = source_port;
tcph->doff = 5;
tcph->window = rand_next() & 0xffff;
tcph->syn = TRUE;
They really did just forward port 23. Tempting to call malfeasance but at best massive incompetence.[0] https://www.us-cert.gov/ncas/alerts/TA16-288A
[1] https://github.com/jgamblin/Mirai-Source-Code/blob/master/mi...
Because remote management, and the default state is to have everything opened up to facilitate pain-free setup and config.