A recently discovered vulnerability in the Adobe Reader browser plugin interface for Firefox and Opera has created quite a stir amongst security experts. Presenting at the 23rd Chaos Communication Congress, security researchers Stefano Di Paola and Giorgio Fedon highlighted a way a hacker could perform a Universal Cross Site Scripting (UXSS) attack in Firefox or Opera merely by presenting a user with a specially crafted URL pointing to a hosted PDF.
The vulnerability stems from the way the plugin utilizes URL parameters known as "Open Parameters." Using Open Parameters, a developer can specify to the plugin exactly what to display and how to display a document in Adobe Reader. A simple example of Open Parameters would be the "page" and "pagemode" parameters on the following URL:
http://example.org/MyDocument.pdf#page=10&pagemode=bookmarks
In Firefox or Opera, JavaScript code can be appended as an Open Parameter to a hosted PDF's URL, essentially creating a possible UXSS attack vector because the code is executed in the browser when the PDF is requested. A proof of concept of how this works can be found in Di Paola and Fedon's paper (PDF). The two men also note that Remote Code Execution (RCE) attacks and Cross-Site Request Forgeries (CSRF) are also possible thanks to the way Adobe's Reader plugin handles Open Parameters.