LWN: Comments on "A Firefox PDF plugin XSS vulnerability" https://lwn.net/Articles/216223/ This is a special feed containing comments posted to the individual LWN article titled "A Firefox PDF plugin XSS vulnerability". en-us Wed, 24 Sep 2025 19:20:51 +0000 Wed, 24 Sep 2025 19:20:51 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/217241/ https://lwn.net/Articles/217241/ endecotp In your examples, the line art is anti-aliased in Acroread but not in Evince, and I think that the fonts are hinted in Acroread but not in Evince. These examples are consistent with what I've seen: you need to zoom in one or two more steps with xpdf to see the same amount of detail that you'd see in the Adobe product.<br> <p> The anti-aliasing issue should be fixable - plenty of OSS graphics libraries can already do this. Getting the font rendering right is also possible - for example FreeType2 can do hinting - but it is patent-encumbered.<br> <p> Thu, 11 Jan 2007 17:29:53 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216983/ https://lwn.net/Articles/216983/ droundy Are you aware that you can configure kpdf to show nothing but the document? It's hard to beat that, in terms of screen real estate. This is what switched me from gv over to kpdf (that and kpdf is the first pdf viewer to obtain a decent "watch file" capability).<br> Wed, 10 Jan 2007 03:02:09 +0000 server-side solutions https://lwn.net/Articles/216890/ https://lwn.net/Articles/216890/ roelofs <FONT COLOR="#440088"><I>Web browsers don't seem to pay any attention to a "Content-disposition: attachment" header line. The only reliable way we found to stop downloads from displaying in the browser was to add an ONCLICK attribute to the link, something like this:</I></FONT> <P> But the whole point (as I understand it) is that you <I>don't</I> control the link--the bad guy does (e.g., a phishing site or somebody else's cracked site). And <I>his</I> link certainly won't include that onclick/save-to-disk function. <P> (Of course, you were probably referring to historical attempts to prevent inline display, not something in response to this latest threat, which is a useful data point either way.) <P> Greg Tue, 09 Jan 2007 17:19:14 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216846/ https://lwn.net/Articles/216846/ hein.zelle Would it be worth considering a workaround in the browser (firefox in this case) instead of the plugin? It's not firefox's fault, but at least the firefox source code is available so something could potentially be done about it. Firefox also has an update system which might work better than relying on users upgrading their acroread plugin.<br> Tue, 09 Jan 2007 14:50:28 +0000 server-side solutions https://lwn.net/Articles/216810/ https://lwn.net/Articles/216810/ ldo <P>Web browsers don't seem to pay any attention to a "Content-disposition: attachment" header line. The only reliable way we found to stop downloads from displaying in the browser was to add an ONCLICK attribute to the link, something like this: <BLOCKQUOTE>&lt;SCRIPT&gt;<BR> function PleaseSaveToDisk()<BR> {<BR> alert("Please right-click and save the item to disk.")<BR> return false<BR> }<BR> &lt;/SCRIPT&gt;<BR> &lt;A HREF="link-to-whatever" ONCLICK="return PleaseSaveToDisk()"&gt; </BLOCKQUOTE> Tue, 09 Jan 2007 07:51:53 +0000 server-side solutions https://lwn.net/Articles/216791/ https://lwn.net/Articles/216791/ roelofs <FONT COLOR="#880044"><I>Other server-side <A HREF="http://lwn.net/Articles/216216/">solutions</A> are being discussed as there is a concern that users are unlikely to upgrade their browser plugins.</I></FONT> <P> Another one I saw (beyond the linked token_query suggestion) is to have the server mark PDFs as attachments, which forces them to be downloaded. It's not as convenient for users, but it completely bypasses the broken plugin. <P> Greg Mon, 08 Jan 2007 23:43:41 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216790/ https://lwn.net/Articles/216790/ roelofs <FONT COLOR="#008844"><I>Well, here's a comparison of Evince 0.6.1 versus Adobe Reader 7. I think you can see the difference in the quality of the line art.</I></FONT> <P> Very nice, thanks. That matches my own gut impressions: Adobe uses some very nice scaling and interpolation algorithms in its PDF viewers, not only on fonts but also on vector lines (as here) and on embedded bitmaps like scanned US patents. And they're reasonably fast at it, too. I can't tell if it's full multitap resampling, but...<I>nice</I> (to quote Borat). <P> I have no doubts free software will catch up before very long, though I am a little surprised we're not there already. (Different priorities, I guess. :-) ) <P> Greg Mon, 08 Jan 2007 23:35:42 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216524/ https://lwn.net/Articles/216524/ Los__D I'm afraid that I'll have to wait until the 9th to check them out, I'm in Beijing right now, visiting my wife's parents, and since an earthquake took out the Chinese main Internet line, I'm browsing pages at around 2kB/s (On &amp;*^$%@$#*&amp;* IE/Windows)... After 5 minutes, I could more or less only see the top bar, and a little of the windowbar on one of the pictures, still nothing on the other...<br> <p> But about lineart; I did a few comparisons myself a couple of months back, on an e-ticket, there was a little logo, which at 100% looked a bit nicer in acroread, but when you zoomed in, it actually looked nicer in Evince than in acroread... Maybe they just have differing rendering settings at different zoom levels, or something.<br> <p> Dennis<br> Sat, 06 Jan 2007 05:51:06 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216486/ https://lwn.net/Articles/216486/ jwb Well, here's a comparison of Evince 0.6.1 versus Adobe Reader 7. I think you can see the difference in the quality of the line art.<br> <p> <a href="http://tastic.brillig.org/~jwb/evince-vs-adobe.png">http://tastic.brillig.org/~jwb/evince-vs-adobe.png</a><br> <a href="http://tastic.brillig.org/~jwb/evince-vs-adobe2.png">http://tastic.brillig.org/~jwb/evince-vs-adobe2.png</a><br> <p> <p> Fri, 05 Jan 2007 18:15:26 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216484/ https://lwn.net/Articles/216484/ amarjan As mentioned on the WEB SECURITY mailing list, services like tinyurl.com can be used to hide malicious URLs, so user education in this case would be even less effective than usual.<br> Fri, 05 Jan 2007 18:04:46 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216451/ https://lwn.net/Articles/216451/ k8to No, there is basically no advantage to the browser plugin. It used to be that the browswer plugin was more networked than acroread, for things like hyperlinks outbound from the pdf back to the web. But acroread has sprouted sufficient tentacles to fill in such gaps.<br> <p> The plugin has become a clunkier, crashier acroread that takes out your browser with it.<br> Fri, 05 Jan 2007 16:01:50 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216442/ https://lwn.net/Articles/216442/ jschrod Acroread has the ability to add comments, e.g., during review cycles. (One needs to have Acrobat for creation of such PDF documents, though.)<br> <p> I have documents that I can only print in acroread; [xk]pdf just happen to do nothing, without any error message.<br> <p> For some documents, acroread is much faster when one changes pages. One pays with the very long startup time, though.<br> <p> Selecting texts (copy &amp; paste) works better (that means: UI is more intuitive, action is more often successful) in acroread.<br> <p> OTOH, I use xpdf a lot more than acroread due to its fast startup time. I use it also more often than kpdf since its desktop real estate need is smaller. I would never use any of these tools as browser plugin, though -- I want to have such documents in their own top-level windows.<br> <p> Joachim<br> Fri, 05 Jan 2007 14:03:59 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216438/ https://lwn.net/Articles/216438/ wookey I have not used acroread since about 2002 and in the last year or so I have found that just about all PDFs finally render fine under either evince or xpdf (it used to be necessary to try 2 or 3 free viewers and still some docs gave problems). But there are still things that acrobat does better than the free browsers (I have found two bugs in fairly obscure area grouping opacity (or something like that) and clipping in the last two weeks due to some intensive use of therion, which aparently do not occur in acrobat). And there is the form-filling thing, which I have never missed, but some people might.<br> <p> I posit that most users would find the free PDF viewers entirely adequate these days, and certainly if Adobe's has this serious flaw then stopping using it is the obvious thing to do. Hopefully some people who haven't used the free viewers for years will try them again as a result of this and be pleasantly surprised at how well they work now. <br> Fri, 05 Jan 2007 12:14:29 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216424/ https://lwn.net/Articles/216424/ Los__D Strange, I use quite a bit of electronic datasheets, and all of them them has looked perfect in Evince so far. (And yes, I have done comparisons to be sure, as I also have had less than acceptable results in the past).<br> <p> This includes quite a bit of datasheets from Atmel, Micrel, Microchip (damn I hate PICs), Epson, TI, National, and way too many from suppliers that still think that photographs put into PDF's are perfectly acceptable.<br> Fri, 05 Jan 2007 08:35:50 +0000 Can't this be fixed in Firefox? https://lwn.net/Articles/216382/ https://lwn.net/Articles/216382/ spitzak Can't this be fixed by changing whatever code the Adobe plugin calls to retrieve the url? It probably should just get the data and not execute anything. It would seem this may be a good idea in general as it would fix any broken plugin that intends simply to get some info from the net and did not intend to change the state of the browser.<br> <p> <p> Thu, 04 Jan 2007 23:02:15 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216368/ https://lwn.net/Articles/216368/ glettieri If you type "about:plugins" as url, you will get a list of installed plugins. To remove acroread, you should find the directory where firefox plugins are installed (/usr/lib/nsbrowser/plugins on my Gentoo box, but maybe /usr/lib/mozilla-firefox/plugins on other systems) and remove the file or symlink "nppdf.so".<br> Thu, 04 Jan 2007 20:26:14 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216355/ https://lwn.net/Articles/216355/ jwb The quality of the rendering in Adobe Reader is far higher than any of the free clones. I spend a good chunk of my time reading data sheets for electronic components and they are pretty well unreadable in Evince/XPDF/KPDF. In Adobe Reader they look tremendous.<br> <p> That said, I never use the browser plugin.<br> Thu, 04 Jan 2007 19:00:07 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216353/ https://lwn.net/Articles/216353/ emgrasso Two questions (Well, two and a half):<br> <p> Does this vulnerability also affect browsers like Konqueror that can load <br> Firefox plugins?<br> <p> Is there a clean way to uninstall the Adobe plugin if it is present? And a <br> good way to find out whether it is present and active?<br> Thu, 04 Jan 2007 18:59:04 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216352/ https://lwn.net/Articles/216352/ kamil Some PDF documents allow you to fill in some information before printing them out. Many application forms in PDF act that way. Can you fill in PDF documents using k/x/gpdf? You can with acroread.<br> <p> Also, it's been my experience that acroread is in general more reliable in displaying PDF documents properly: no weird formatting problems and such. But I haven't tried recent versions of k/x/gpdf, so they could very well be better in this regard these days.<br> <p> Having said that, I never enable the Adobe PDF browser plugin. It always seemed counterintuitive to me to have PDF documents displayed in a web browser. Last I checked, it also caused problems when switching the PDF viewer to fullscreen and back.<br> Thu, 04 Jan 2007 18:51:35 +0000 A Firefox PDF plugin XSS vulnerability https://lwn.net/Articles/216331/ https://lwn.net/Articles/216331/ pr1268 <p>Just out of curiosity, is there any motivation for GNU/Linux users to even use Adobe's PDF reader/plugin? I'm quite happy with my choice of KPDF, XPDF, and GPDF. I choose to view PDF files downloaded from the Internet in the separate viewer application, and I configure Firefox's MIME handler to open the appropriate application.</p> <p>Is there something I'm missing by avoiding Adobe's PDF viewer?</p> Thu, 04 Jan 2007 17:22:59 +0000