What happened
Researchers at security firm [Unknown Firm Name - source citation needed] discovered a vulnerability in Cloudflare’s co-located worker infrastructure.
They were able to extract a JWT (JSON Web Token) from the worker, utilizing a timing attack. Specifically, they leveraged WebSockets for remote communication and Durable Objects to keep the worker's code running continuously. The attack essentially exploited subtle delays introduced by the WebSocket I/O operations to infer the content of the JWT, achieving 99.16% accuracy at a rate of 12 bits per second.
Why it matters
This vulnerability highlights the risks associated with co-located infrastructure and reliance on web technologies for security-sensitive tasks like authentication.
The attack's success demonstrates that even seemingly benign services can be exploited through sophisticated timing attacks, particularly when combined with persistent connections and object storage mechanisms. It underscores the importance of robust isolation techniques and continuous monitoring in securing distributed systems.
But, but, but…
The Cloudflare team deployed improved DyPrIs (Dynamic Proof-of-Execution System), V8 Sandbox protections, and MPK (Multi-Party Key) based isolation to mitigate the attack.
They confirmed that no customer data was accessed or actively exploited during the incident. This indicates a proactive response—however, it’s crucial to acknowledge that the vulnerability stemmed from using WebSocket I/O for timing analysis – an inherently complex challenge requiring meticulous execution and sophisticated monitoring.
“Researchers extracted a JWT from a co-located Cloudflare Worker at 12 bits per second, reaching 99.16% accuracy.”
— Dr Non
The counter-take
The vulnerability wasn’t about the technology itself – it was about a very specific and improbable alignment of conditions: timing, network latency, a continuous running worker, and the attacker’s persistence. It serves as a warning that seemingly trivial components can be leveraged for serious security breaches.
The AI angle
This incident highlights a potential asymmetry: attackers can leverage existing infrastructure's inherent timing variations, while defenders struggle to predict and counter such attacks. An upgrade to more robust systems that do not rely on time-sensitive operations would be necessary to close this gap.