206 points · by ghuntley · 2y ago · 126 comments
Apparently the attack was done this way: someone modified an open source font library by removing bounds checking from one of its functions. They then waited 12 months to see if anyone had noticed or fixed the change. They then created a PDF with the font in question, including the embedded jailbreak code. The PDF was then released.
The fact that they released the updated font to the public means everyone using that font became vulnerable if they had a similar lack of bounds checking inside the pdf reader (which is incredibly likely).
Like rendering actual text?
To use an SVG as an actual element, it gets way more complicated than your average Wordpress user is going to want to deal with. It's one of those very interesting formats that can do some very impressive things...that very people want/need/use.
at least it did subset the font
I want to draw. With pixels. Not huge bezier curves.
The point is, they likely used their own tool and that tool's support for SVG is lacking.
Makes the file larger, but makes it render (mostly) correctly on any system. There can still be discrepancies, however.
javascript:void(document.body.style.imageRendering='pixelated')~ Cheers
TrueType was FREELY licensed. You could use TrueType fonts in Windows 3.1. (I know, I was there.)
What Apple didn't license was their Advanced Type Tech (Quickdraw GX?) which allowed for further refinements to glyph positioning.
a truetype vulnerability that's been around for decades was part of the exploit
Perhaps CH is short for Cheese with Holes.
Indeed, my takeaway from your LangSec link is that formats shouldn't have complex grammars that leave holes open in parsers, not that formats can't represent powerful semantics. If you reach an exploitable hole in the parser, then you've likely already lost, short of the parser itself being sandboxed. Meanwhile, a TM bounded in time and space is just a finite state machine, not unlike all the other state machines in a typical processor.
If you have ever worked in design the absolute horror is if you designed something well and then the boss of the org tou did it for opens it on their IE6 and it looks like shit. This is a similar problem.
I love good design. I really do. And it truly is a critical piece of good software. Yet the most painful experiences I've had in my careers are from working with designers who who push their idealized design philosophies onto a reality where they aren't the right answer. Designers need to be as focused as anyone else on understanding the customers and solving the customer's problems.
> Implement sandboxing for anything that processes fonts
I don't believe the author is referring "your web browser"
I see it more as a tracking tool from spying companies like Google.
it's also missing hershey fonts, which are public-domain vector stroke fonts from 01967, and knuth's computer modern fonts, which are bézier outline fonts from 01979 with the final version published in i think 01983. one origin of the concept of outline fonts seems to be from p. j. m. coueignoux's 01973 master's thesis at mit, which he elaborated on in his doctoral dissertation in 01975 (including many examples of fonts he'd represented with bézier splines). even earlier, urw founder karow's outline font design system 'ikarus' was in use starting in 01972, and a very substantial fraction of the fonts people use every day were originally outlined in it. from 01974 the fred system on the alto at xerox parc was also being actively used to design outline fonts, though knuth doesn't seem to have known about the parc work or karow's work. a couple of people who worked on the parc project went on to found adobe
coueignoux's dissertation cited out mergler and vargo's 01968 program for making parametric outline fonts, called 'itsylf', but it was not able to produce a complete font (just 24 letters), and its objective was just plotting out the characters on a plotter for later use with more traditional typefounding approaches, not computerized typesetting. even coueignoux doesn't seem to have attempted computerized typesetting; the letters in the specimen sheets in his dissertation are not even aligned on a common baseline. hershey did write a full typesetting system, although unlike his fonts it has fallen entirely out of use, and of course the typesetting system knuth wrote at the time remains in wide use to this day, often using the outline fonts he designed at the time
so 'adobe introduces the concept of outline fonts' in 01984 is a bald-faced lie, and the authors should be ashamed of themselves for publishing such ignorant tripe, which is contradicted by the very page they link to on the history of computerized typography
The extra flexibility of is not worth the compromise of clarity to me.
I use the different sizes too:
"unreadable" when I need to copy-paste huge amounts of text
"default" for most stuff
and "huge" when I need a bit more focus.
This is also the reason I prefer 1920x1200 px display rather than higher resolutions at the same size. Higher DPIs makes the characters too small for my old eyes, and switching to a vector font only to try and reproduce the shapes I already know seem idiotic.
It doesn't help that TTF and OTF are decades old formats that predate Unicode code points having more than 16 bits, or needing color for emoji glyphs.
is probably because Canva is a tool for the larger crowd of designers. (I mean, I am not gonna start digging into what type of designer, that's a diff story)
and designers LOVE goofin' around with fonts, right?
The reason is control. If you want your stuff to align neatly and look good in the details you need to define a font. And there is no single system font you can truly rely on, so you just bring your own.
I'd be very happy if OS creators could agree on one set of universally supported system fonts, preferably open source, that work on all systems — until then your two options are:
- not caring about good design, giving up control and using whatever (sometimes this is a feasible option)
- caring about design and using your own font
I still think most of the time sticking to system is good enough. But I can see the custom font point of view if you strive for something more.
It’s a question of both accessibility and UX productivity. Switching to a different application shouldn’t be a jarring context switch. The user should be in control of their desktop environment, not the branding department at company X who insists that everything they release should be using font Y this year and then font Z the next. These changes bring no user benefits.
It’s different for software and content that actually tells a story. Games and web sites have a lot more freedom for custom design, and typeface choices are an elemental part of that.
I just wish more designers understood the distinction between telling a story and enabling people to be productive.
Nobody ever commented about this because it just looks good.
When you are building a web experience I can understand the need for other fonts (although I block downloading external fonts). But I totally agree with you when it comes to (web) apps.
If you're Vignelli, you can tell the MTA which font to pick. If you're not him (or someone of equally high standing), you will most likely have to work with a style guide someone else thought out, and use whatever font(s) the style guide says you should use...
Plus, that was back in the seventies. Nowadays, every self-respecting company wants to have their own font (even if it's indistinguishable from Hel(l)vetica/Arial/whatever for >99% of people) - https://www.hvdfonts.com/custom-cases
I have my mono-spaced typefaces, my variable-width typefaces, my serif, and my sans serif.