Tiny Fragment Attacks: When a Filter Is Missing Part of the Header
A tiny fragment attack abuses the way network packets can be split into smaller pieces. By making the first piece unusually short, an attacker can leave a packet filter without some of the control information it needs to decide whether traffic should pass.
The classic explanation concerns IPv4, one version of Internet Protocol, which carries data across networks. It was documented in the 1995 Security Considerations for IP Fragment Filtering. The weakness lies in how a filter handles incomplete information.
A packet can carry more than one header
A packet is a unit of network data. Its header carries instructions and other control information; its payload is the data inside. The payload may include another protocol's header.
For example, an IP packet can carry information for the Transmission Control Protocol, or TCP. TCP helps applications exchange an ordered stream of data. Its header contains details about that exchange, including control flags, markers that help manage connections.
Why Big Packets Get Chopped Up
With IP fragmentation, a packet's data is split across smaller packets called fragments. Each fragment has IP information so it can travel and be placed into the right position when the destination puts the pieces back together. That process is reassembly.
Ordinary fragmentation isn't evidence of an attack. It can be needed when an IPv4 packet is too large for a network link. The tiny-fragment technique deliberately chooses the split so that the first piece doesn't contain all the TCP header fields a filter expects to inspect.
The filter reaches a decision too soon
Imagine a filter has a rule that depends on a TCP control flag. It examines the first fragment to decide whether the packet is allowed, but the fragment ends before that flag appears.
The later fragment carries the missing information. If the filter lets it through without applying the intended check, the destination may reassemble a packet that would have been blocked had the filter examined the relevant fields together.
The filter admits forbidden traffic because it doesn't have a field its rule needs and fails to handle that gap. Reassembly restores the packet's contents; it doesn't, by itself, execute a program or create extra traffic from nothing.
A firewall applies rules to communications. For a rule about TCP fields to work on fragmented traffic, its fragment handling has to preserve the meaning of that rule. How much information is enough depends on the protocol and the check being performed.
- Skip the install: pfSense Plus comes preloaded, so you can start writing rules right away.
- Get a firewall, router and VPN in one silent box that sips power.
- Keep receiving pfSense Plus updates for the life of the product.
Why one old fragment rule wasn't enough
The 1995 analysis discussed ways to keep necessary header information available for filtering. A 2001 follow-up showed a variant that combined tiny fragments with overlapping fragments and defeated one of the earlier document's indirect countermeasures.
Overlapping fragments claim some of the same positions in the reassembled data. That creates a different problem from simply placing a field in a later fragment. The variant joined the two mechanisms, exposing limits in a rule intended to address the earlier attack.
These historical documents describe a failure in which the filter's view could differ from the packet the receiving computer reconstructed. A filtering decision made without the fields it depends on can admit traffic the rule was meant to reject.
Fragment Offset: Where the Pieces of a Packet Belong

Fragment Overlap Attacks: When Two Pieces Claim the Same Space

What Does a Firewall Actually Protect You From?

QUOTE:
"Amateurs hack systems, professionals hack people."
