forbid @font-face still necessary?

Bug reports and enhancement requests
Post Reply
mach
Posts: 1
Joined: Tue Jun 14, 2011 9:32 am

forbid @font-face still necessary?

Post by mach »

Hi

NoScript forbids @font-face because a maliciously crafted font could exploit the font parsers that are rather old. Indeed, there has been such a vulnerability, see MFSA 2010-08: WOFF heap corruption due to integer overflow (see also hackademix.net » Why NoScript Blocks Web Fonts).

But is this precaution still necessary? With Firefox 3.6.13, Firefox has added the OTS font sanitizer, see MFSA 2010-78: Add support for OTS font sanitizer. This means that potentially vulnerable parts of fonts are blocked. Would this not mean that it is now safe for NoScript to switch on @font-face support by default?

--
grüess
mach
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: forbid @font-face still necessary?

Post by dhouwn »

IMHO, a good opportunity for NoScript 3 which won't work on Firefox versions without the OTS.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
schisch
Posts: 1
Joined: Mon Jul 11, 2011 12:04 pm

Re: forbid @font-face still necessary?

Post by schisch »

Hi,

Do you know how to detect users with noscript extensions which are blocking web fonts (e.g. loaded from googleusercontent.com)?

Since many noscript users do not know that fonts get blocked by this extension it seems to be the webdesigner's task to create a workaround for it.

Thanks for your hints!
Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: forbid @font-face still necessary?

Post by Giorgio Maone »

schisch wrote:it seems to be the webdesigner's task to create a workaround for it.
Why? Don't they already provide a fallback for browsers not supporting this feature, and any browser displaying the text anyway with the default font?

However, if you've got scripts enabled on the main page, you can use window.getComputedStyle("#some-test-element-with-styled-text", "").width to check for differences between your preferred font and fallbacks.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: forbid @font-face still necessary?

Post by dhouwn »

What workaround?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Post Reply