|
|
|
|
|
by pcdoodle
1370 days ago
|
|
1. Client micro computer connects to my server over internet. 2. They exchange some secret sauce to make sure they're sure of each other (I have no room for TLS on micro computer). 3. The connection is never severed. How does this get attacked over WAN? IP Spoofing or something? Let's assume the LAN of the client is secure. |
|
So by spoofing the source address, it's trivial to send packets to your target host. However, to have them actually accepted, the sequence numbers need to be right (or right enough) to slot that packet into the ongoing stream.
But ... packets with bad sequence numbers don't break a connection, they're just assumed to be retransmissions of something that already arrived (if the number is low) or an indication that a bunch of packets were lost (if high). This is a little complicated by the fact that the session is bi-directional, but not too much.
So, especially if you're able to monitor the packets of the session, it's fairly simple to hijack it by sending sequence numbers a bit ahead of the legitimate sender, causing its packets to be discarded as duplicates, and yours to be accepted.