Skip to main content

Plugins for Popular Text Editors Could Help Hackers Gain Elevated Privileges


Whether you're a developer, designer or a writer, a good text editor always help you save time and make you work more efficiently.

For example, I use Sublime a lot while programming because it includes some useful tools like 'syntax highlighting' and 'autocomplete' that every advanced text editor should have.

Moreover, these advanced text editors also offer users extensibility, allowing users to install and run third-party plugins to extend the editor's functionality and most importantly its scope.

However, it's a known fact that third-party plugins always pose a significant risk of hacking, whether it's about WordPress plugins or Windows' extensions for Chrome, Firefox or Photoshop.

SafeBreach researcher Dor Azouri analyzed several popular extensible text editors for Unix and Linux systems, including Sublime, Vim, Emacs, Gedit, and pico/nano, and found that except for pico/nano, all of them are vulnerable to a critical privilege escalation flaw that could be exploited by attackers to run malicious code on a victims’ machines.
"This method succeeds regardless of the file being opened in the editor, so even limitations commonly applied on sudo commands might not protect from it," the paper reads [pdf]
"Technical users will occasionally need to edit root-owned files, and for that purpose they will open their editor with elevated privileges, using ‘sudo.’ There are many valid reasons to elevate the privileges of an editor."
The issue resides in the way these text editors load plugins. According to the researcher, there's inadequate separation of regular and elevated modes when loading plugins for these editors.

Their folder permissions integrity is not maintained correctly, which opens the door for attackers with regular user permissions to elevate their privileges and execute arbitrary code on the user's machine.

A simple malvertising campaign could allow attackers spread malicious extension for vulnerable text editors, enabling them to run malicious code with elevated privileges, install malware and remotely take full control of targeted computers.

Azouri suggests Unix users can use an open-source host-based intrusion detection system, called OSSEC, to actively monitoring system activity, files integrity, logs, and processes.

Users should avoid loading 3rd-party plugins when the editor is elevated and also deny write permissions for non-elevated users.

Azouri advised developers of text editors to change the folders and file permission models to complete the separation between regular and elevated modes and if possible, provide a manual interface for users to approve the elevated loading of plugins.

YOU MAY ALSO LIKE:
Download 10 Best Android Hacking Apps for Android Mobile

Comments

Popular posts from this blog

How To Turn Off Facebook Face Recognition System On App And PC?

When it comes to privacy features, Facebook probably has gone where no company has gone before. It includes unchartered territories like asking people’s naked pictures to help victims of revenge porn. Now, Facebook has introduced another privacy feature that can tell whether someone has uploaded your photo to Facebook’s network. Although it was first announced in December last year, recently the company has reached out Facebook users through their News Feed, notifying them that the face recognition system is being used “for more features.” Analyzing people’s faces and storing them has its benefits. For instance, people can know if someone has uploaded their picture, regardless of whether they’re tagged in it or not. Also, Facebook could tell you whether a stranger is using your photo as their profile picture and help visually impaired users identify people in photographs. Facebook doesn’t store people’s images directly; it creates a blueprint or face...

New Product Launches , CES 2018

CES is the launching pad for innovators and historic innovation In over 50 years, CES has witnessed more than 700,000 product launches. Check out what products are launching right now at CES 2018 from more than 3,900 exhibitors. Mindtronic AI NOAH We build and designed NOAH, to a belief that an Ark Made by artificial intelligence is missioned to revolutionize how vehicles infer and interact with human. MODEL 3 Water Heater This item is currently in production. The tentative ship date is February 2018. You’ll want to go ahead and pre-order the world’s most advanced tankless electric water heater. With purer, endless hot water, precise temperature control and zero maintenance required, the MODEL 3 will have you singing love songs in the shower. Powered by our patented Ohmic Array Technology, it’s also 99% energy efficient, which means you will reduce the overall cost of heating your family’s water by about 40%. For the average family of four, that’s $11...

iOS 11.3 coming this spring with battery and performance settings, ARKit 1.5, new Animoji

In a sign that Apple will continue to update iOS regularly instead of withholding features for its next major point-zero release, Apple on Wednesday revealed new features coming to an iOS 11.3 update this spring, including the ability to toggle the power management feature for iPhone models with aging batteries. Apple will implement new battery health information and the ability to customize power settings after it was revealed that the company  throttles CPU performance on older devices  where the battery is deteriorating. Apple's throttling is done to prevent random shutdowns of the device and ensure smooth operation, but some customers took offense to the fact that the slowdowns were occurring without transparency to the user. In a press release issued on Wednesday, Apple said that the iOS 11.3 update this fall will show battery health, and recommend to users if their battery needs to be serviced. The capabilities will be available for iPhone 6 and later. Users will...