Combinations of keys pressed on the keyboard into New Tab Page(about:newtab) which is into a very small window leads to Arbitrary Code execution.
A crafted webpage can trick a user into pressing a key combination while a very small popup window showing the new tab page is focused, causing hidden JavaScript to run with elevated privileges and execute arbitrary code. The attacker could also steal cookies, saved passwords, and keystrokes.
Originally disclosed on Mozilla
- Fixed in 3.0 years
- Paid in 22 days
- Disclosed after 3.0 years
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150826023504
Steps to reproduce:
(My exploit is exploitable only on MAC OS X but can be adapted for Windows, Linux, and others web browser).
When you have convinced a lambda user to press multiple keys on the keyboard on "about:newtab" which is into a very small window popup leads to Remote Code execution.
With a specific webpage it's possible to insert data into the clipboard using a webpage specialy crafted.
Step 1 : Go to : http://www.alternativ-testing.fr/~f98g4hfh8bugsalternativtesting1fg56j8y9f46~/index.html
---
Step 2 : Realize the instructions on this web page (which consist to press multiple keys on the keyboard after that the steps 1 and 2 have been effected)
Actual results:
A malicious arbitrary code is executed like the TestCase demonstrates that [/Applications/Calculator.app/Contents/MacOS/Calculator] is executed .
Explanation:
Malicious JavaScript Code : [javascript:file=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);file.initWithPath("/Applications/Calculator.app/Contents/MacOS/Calculator");process=Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);process.init(file);args=[];process.run(false,args,args.length);] is executed into "about:newtab" using web console which is not visible and leads to execute : [/Applications/Calculator.app/Contents/MacOS/Calculator].
This vulnerability can be also used for use a XSS attack type on all website where an attacker wants steal sensitive informations (cookie / saved password & login / webpage content / register all key pressed / ... ).
Expected results:
The browser page "About:newtab" shouldn't be able to execute arbitrary code by the Firefox web console for security reason.
Vulnerability found by security researcher Jordi Chancel
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the new tab page (about:newtab) does not properly restrict the execution of privileged JavaScript when triggered by keyboard shortcuts in a small popup window.
Impact
A malicious arbitrary code is executed, such as launching the Calculator app, and the vulnerability could also be used for XSS to steal sensitive information like cookies and saved passwords.
What the attacker needed
Victim uses Firefox on Mac OS X; victim visits a malicious webpage; victim presses specific key combination
How it was found
- Go to the provided webpage.
- Follow the instructions on that page, which involve pressing multiple keys on the keyboard.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
The new tab page in Firefox is supposed to be safe and not run dangerous code. By making a tiny popup and getting the user to press certain keys, the attacker can make hidden code run that can start programs on the computer or steal private information.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.