Mozilla has released Firefox 58.0.1 to fix a security issue that was hiding in the browser's UI code and would have allowed an attacker to run code on the user's computer, allowing a quick and easy path to delivering malware or even taking over the entire PC.
The flaw, tracked under the identifier
CVE-2018-5124, was discovered by Berlin-based Mozilla engineer Johann Hofmann. The engineer
says the issue resides in the
Firefox "Chrome" component.
This confusingly-named component has been available in Firefox even before Google launched its Chrome browser, and is responsible for "the set of user interface elements of the application window that are outside the window's content area."
Firefox "chrome" components include the likes of menu bars, progress bars, window title bars, toolbars, or UI elements created by add-ons.
Main issue: Firefox runs unsanitized HTML code
These components aren't separated from the code that runs in web pages. Hoffman says that a malicious website could run code meant for Firefox UI elements.
The attacker could hide unsanitized HTML inside this code that breaks the execution chain away from the Firefox chrome UI component and runs commands on the underlying browser/computer.
The code runs with the current user's privileges. If the user is using an admin account, then the code can run SYSTEM-level commands.