You are here: Known Vulnerabilities in Mozilla Products (Firefox 126.96.36.199) > MFSA 2006-42
Mozilla Foundation Security Advisory 2006-42
Title: Web site XSS using BOM on UTF-8 pages
Date: June 1, 2006
Reporter: Masatoshi Kimura
Products: Firefox, Thunderbird, SeaMonkey
Fixed in: Firefox 188.8.131.52
Masatoshi Kimura reports that the Unicode Byte-order-Mark (BOM) is
stripped from UTF-8 pages during the conversion to Unicode before
the parser sees the web page. As a result the parser will see and
script tags that web input sanitizers may miss
because they appear as "scr[BOM]ipt" or similar in the comment code
on the web site.
Although Firefox 184.108.40.206 and later will be fixed and no longer accept such script tags, web sites will continue to be visited by older versions of Firefox and Mozilla browsers. Web sites can protect themselves by explicitly setting the character encoding to something other than UTF-8, or by adding the Unicode byte-order marks to the repertoire of the site's input sanitizer.
Sites can protect their users by stripping the BOM from web input or, if appropriate, specifying a character encoding other than UTF-8.