Categories: Security News

Hackers Can Abuse Plugins for Popular Unix Text Editors to Escalate Privileges

Advanced Unix Text Editors offers extensibility by allowing users to install third-party plugins for ease of use and to enhance the Text Editors functionalities.

Server administrators often run text editors with elevated privileges “sudo gedit” to edit root-owned configuration files. If the text editor contains vulnerable third-party plugin it enlarges attack surface.

A vulnerable third-party text editor plugin could be abused by attackers to escalate the privileges of your system/server.

Also Read Top 5 Best Text Editors For Linux

According to recent safebreach research, “they found the inadequate separation of regular and elevated modes. Folder permissions integrity is not maintained and that opens the door for an attacker with regular user permissions to get the elevated execution of arbitrary code and to gain privilege escalation on the machine“.

Researchers tested the attacks the well known highly-ranked text editors Sublime, Vim, Emacs, Gedit, pico/nano. They have published a research paper with examples.

Here is the scenario “Imagine that an attacker can run the arbitrary code as a sudoer but not elevated, all he needs is to write the malicious plugin in user folder that uses the text editor and wait for the execution of plugin in elevated status”.

The vulnerability has been notified by researchers to vendors and it still remain’s unpatched. Researchers suggested monitoring modifications to the key files and folders presented by adding OSSEC rules.

Also Read Most Important Computer Forensics Tools for Hackers and Security Professionals

Below is the list of mitigations suggested – Unix Text Editors

  • Implement OSEC monitoring rules.
  • Deny write permissions for non-elevated users.
  • Change folders and file permission models to ensure separation between regular and elevated modes.
  • Prevent loading of 3rd party plugins when an editor is elevated.
  • Provide a manual interface to approve the elevated loading of plugins.
Gurubaran

Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Recent Posts

Hackers Exploiting DNS Poisoning to Compromise Active Directory Environments

A groundbreaking technique for Kerberos relaying over HTTP, leveraging multicast poisoning, has been recently detailed…

1 hour ago

New Android Malware Exploiting Wedding Invitations to Steal Victims WhatsApp Messages

Since mid-2024, cybersecurity researchers have been monitoring a sophisticated Android malware campaign dubbed "Tria Stealer,"…

1 hour ago

500 Million Proton VPN & Pass Users at Risk Due to Memory Protection Vulnerability

Proton, the globally recognized provider of privacy-focused services such as Proton VPN and Proton Pass,…

2 hours ago

Arcus Media Ransomware Strikes: Files Locked, Backups Erased, and Remote Access Disabled

The cybersecurity landscape faces increasing challenges as Arcus Media ransomware emerges as a highly sophisticated…

2 hours ago

Hackers Impersonate Top Tax Firm with 40,000 Phishing Messages to Steal Credentials

Proofpoint researchers have identified a marked increase in phishing campaigns and malicious domain registrations designed…

2 hours ago

Cybercriminals Exploit Public-Facing IIS, Apache, and SQL Servers to Breach Gov & Telecom Systems

A recent investigation by Unit 42 of Palo Alto Networks has uncovered a sophisticated, state-sponsored…

2 hours ago