# Using overlapping CSS fragments to extract long tokens

DevFeed: [Using overlapping CSS fragments to extract long tokens](<https://devfeed.tech/articles/smashing-the-token-limit-with-overlapping-fragments-65177.md>)

Original publisher: [Read original article](<https://portswigger.net/research/smashing-the-token-limit>)

Author: Gareth Heyes

Published: 2026-10-05T15:04:55Z

Content type: article

Language: en

Sources: [PortSwigger Research](<https://devfeed.tech/sources/portswigger-research.md>)

Topics: [homomorphic encryption](<https://devfeed.tech/topics/homomorphic-encryption.md>), [Headless Browser](<https://devfeed.tech/topics/headless-browser.md>)

Tags: [csrf](<https://devfeed.tech/tags/csrf.md>), [csrf-token](<https://devfeed.tech/tags/csrf-token.md>), [token](<https://devfeed.tech/tags/token.md>)

## AI overview

The article describes a method for reconstructing long tokens from CSS injection by collecting overlapping chunks and joining them as a graph. In randomized URL tests, a stylesheet within the original CSS budget reconstructed 210-character tokens with one candidate in 29,753 of 30,000 runs, and 640-character tokens with five or fewer candidates in 27,158 runs. The author also notes that the tested configurations are not proven to be optimal.

## Source excerpt

I'm delighted to introduce Alex, my fellow swigger who I've collaborated with in the past with tools like DOM Invader. He showed me that it's possible to exfiltrate larger tokens than demonstrated in