Bypassing character blocklists with unicode overflows

Executive Summary

The article explains how Unicode codepoint truncation—also called a Unicode overflow attack—can be used to generate specific ASCII characters when a server or JavaScript function stores or processes Unicode values beyond the supported range. It provides examples that produce the character "A" by overflowing codepoints and notes that bug‑bounty hunters are actively exploiting this technique. PortSwigger Research has responded by adding these truncation attacks to its ActiveScan++ scanner, creating a Hackvertor tag for reproducing the characters, and updating the Shazzer Unicode table to highlight potential truncation points. The discussion is framed as research findings rather than confirmed exploitation incidents.

Original Overview

Unicode codepoint truncation - also called a Unicode overflow attack - happens when a server tries to store a Unicode character in a single byte. Because the maximum value of a byte is 255, an overflow can be crafted to produce a specific ASCII character. Here are a couple of examples that end with 0x41 which represents A: If you perform a modulus operation on the code points above you'll see they produce the character "A": It's not only bytes that have this problem, JavaScript itself has a codepoint overflow in the fromCharCode() method. This method allows you to generate a character between 0-0xffff but if you go above this range it will be overflowed and produce a character by the overflow amount. The above code uses the hex value 0x10000 which is one above the maximum codepoint...