Connect with us
X
Categories:

Technology

Remote code execution danger is reduced by JavaScript sandbox vm2

Published

on

Remote code execution danger is reduced by JavaScript sandbox vm2
Share this post:

A bug in vm2, a popular JavaScript sandbox environment, could allow malicious actors to bypass sandbox protections and stage remote code execution (RCE) on the host device.

Vm2, which has more than four million downloads per week, creates a secure context in Node.js servers to run untrusted code without compromising the server.

The potential impact of the vulnerability, which was given a maximum possible CVSS score of 10, was elevated by the fact that vm2 is used in production as well as developer environments.

‘Interesting technique’

The security flaw was discovered by Oxeye Security researchers Gal Goldshtein and Yuval Ostrovsky. “Our usual approach when evaluating a given software’s security is first to analyze the previous security lapses discovered in the same software,” the Oxeye security team told The Daily Swig.

“This helps us better grasp the available attack surface and may also lead to low-hanging bugs stemming from incomplete fixes.

“While reviewing the previous bugs disclosed to the vm2 maintainers, we noticed an interesting technique: the bug reporter abused the error mechanism in Node.js to escape the sandbox.”

Channels between sandbox and host

Like several previous bugs found in vm2, the new bug relies on the channels the sandbox uses to communicate with the host machine. In this case, the bug was caused by improper exception handling.

“The bug we found relies on a technique that is quite common in the VM bypass world, which is to find elements within the sandbox that can cooperate with elements outside of it,” the researchers said.

“This connection, when found, gives the attacker the opportunity to interact with the hosting process.”

This channel allows the attacker to run arbitrary code on the Node.js server, including invoking functions that run system commands.

The team aims to release a technical review of the bug with more details soon. The only way to prevent exploits is to upgrade to the newest version of vm2.

RECOMMENDED  Tanzania orders for shut down of all unregistered bloggers

‘Meant to run untrusted code’

“We weren’t surprised by the fact that this library is used in production environments, mainly due to the fact that it has over 16 million downloads per month,” the researchers said. “We are in the process of responsible disclosure with several companies where we found this vulnerability in.”

In a separate advisory, RedHat has released a list of its services that are affected by the vm2 flaw.

This is not the first time that vm2 has patched a sandbox bypass, which only highlights the difficulties of securing sandbox environments.

“Sandboxes in general are meant to run untrusted code within an application. This means that you shouldn’t automatically assume that they are safe,” the researchers said.

“If the use of a sandbox is unavoidable, we recommend separating the logical, sensitive part of the application from the microservice that runs the sandbox code so if a threat actor successfully breaks out from the sandbox, the attack surface is limited to the isolated microservice.”


Get More Stories Like This On: Facebook: @AllNaijaEntertainment, Twitter: @AllNaijaEntertainment
Lotus Car UK
Automobile15 hours ago

UK Brand Lotus Lowers Production Targets Due To Import Tariffs

Electric G-Wagon
Automobile15 hours ago

Electric G-Wagon Launches In UK With A Price Tag Of Over £180,000

Olumide Akpata
News15 hours ago

Edo guber: I answer to no godfather only Edo people – Olumide Akpata declares

Why Victor Osimhen of Napoli made fun of Verona supporters with a "funny" celebration
Sports15 hours ago

Chelsea: Al Ahli agree €80m fee for Osimhen, player to sign £646,000-a-week deal

Simon Ekpa
News2 days ago

Simon Ekpa fire back at Nigeria govt over extradition him from Finland

Atiku Abubakar
Education2 days ago

Under 18s limit for university, WAEC, NECO policy – Atiku react

Education2 days ago

WAEC, NECO will no longer allow under 18 – Nigerian Govt

Godwin Obaseki
News3 days ago

Group tell Obaseki to beg Oba of Benin for forgiveness

Lagos Red Line Train
Automobile3 days ago

Lagos Red Line To Begin Free Operation on Wednesday

PDP logo
News3 days ago

LG Election: Benue PDP Release Guidelines

WHO World Health Organization
Health3 days ago

WHO Unveil Budget For Monkey Pox

GDP
Business4 days ago

Nigeria’s GDP grew by 3.19% in Q2 2024 amid hardship

NYSC Service Corp Members
Education4 days ago

NYSC launches redeployment option for married female corps members

Black Market
News4 days ago

Fuel Scarcity: FRSC sends warning motorists against travelling with petrol in jerrycans

News4 days ago

Imo APC ward chairman arrested for allegedly selling FG’s palliative

Farm land
News4 days ago

Farmers lament in Adamawa as thieves plunder farms, steal crops

Chinese EVs
Automobile4 days ago

Market: Chinese EVs Are Thriving In Latin American Countries

VW Golf R year 20 Edition
Automobile4 days ago

Huge Fine Plies European Car Manufacturers

Electric Vehicle Charging
Automobile5 days ago

South Korea Bans Fully Charged Electric Vehicles Entering Underground Garages

Non-Tesla vehicles with CCS compatible models include the BMW i3, Kia e-Niro, and Jaguar I-Pace
Automobile5 days ago

Tesla Recalls Over 9,000 Cars In The US To Avoid Parts Falling Off the Roof

Volkswagen
Automobile5 days ago

Volkswagen Lowers Battery Production Targets

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile7 days ago

Market Study: Electric Cars Are Too Expensive

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile7 days ago

China Considers Import Tariffs On Foreign Vehicles

Everything To Know About Nigeria New Presidential Jet, Previous Users, Age & Cost
Automobile7 days ago

Everything To Know About Nigeria’s New Presidential Jet, Previous Users, Age & Cost

BMW Becomes Europe Most Popular EV Brand Overtakes Tesla
Automobile1 week ago

BMW Becomes Europe’s Most Popular EV Brand Overtakes Tesla

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile1 week ago

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids

Benefits of Partnering with a Managed Security Service Provider
Technology3 months ago

Benefits of Partnering with a Managed Security Service Provider

Diya Cant Have Enough
Music4 months ago

[Music] Diya – “Can’t Have Enough” Feat G-Wills

Email Newsletter Marketing Online Website
Technology4 months ago

The Vital Role of Email Fraud Detection Software

Roisea: Most Advanced Crypto Trading Platform for Bitcoin
Business5 months ago

The Role of Regulation in Crypto Investment: Navigating Legal Frameworks

Volatility in Commodities and How to Deal with It
Business5 months ago

Volatility in Commodities and How to Deal with It

Expanding Living Space
Lifestyle7 months ago

Expanding Living Space: Prefabricated Workshop Building Kits for Extra Rooms

BeBe Winans
Lyrics7 months ago

BeBe Winans – It All Comes Down to Love [Lyrics]

BeBe Winans
Music7 months ago

[Music] BeBe Winans – It All Comes Down to Love

The Countdown Begins to the Tournament That Has It All
ANE Football Analytical8 months ago

AFCON 2023: A Sporting Spectacle Set to Captivate the World

Litecoin: What Makes It The Crypto Winner?
Technology9 months ago

Runny Inflation Can Drive Cryptocurrency Adoption

Black and White French Bulldog puppies Frenchie Joy
Lifestyle9 months ago

Black and White French Bulldog puppies Frenchie Joy

3 Serious Reasons to Keep Your Teenager Away From Social Media
Lifestyle9 months ago

3 Serious Reasons to Keep Your Teenager Away From Social Media

Boxing vs MMA What Makes Them So Different
Sports10 months ago

Boxing vs MMA: What Makes Them So Different

Roisea: Most Advanced Crypto Trading Platform for Bitcoin
Technology10 months ago

NFTs and Intellectual Property Rights: Shaping Creative Ownership

Everything To Know About Nigeria New Presidential Jet, Previous Users, Age & Cost
Automobile7 days ago

Everything To Know About Nigeria’s New Presidential Jet, Previous Users, Age & Cost

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile7 days ago

Market Study: Electric Cars Are Too Expensive

Ford Cancels Its Three-Row Electric SUV Focuses On Hybrids
Automobile7 days ago

China Considers Import Tariffs On Foreign Vehicles

Chinese EVs
Automobile4 days ago

Market: Chinese EVs Are Thriving In Latin American Countries

Non-Tesla vehicles with CCS compatible models include the BMW i3, Kia e-Niro, and Jaguar I-Pace
Automobile5 days ago

Tesla Recalls Over 9,000 Cars In The US To Avoid Parts Falling Off the Roof

Electric Vehicle Charging
Automobile5 days ago

South Korea Bans Fully Charged Electric Vehicles Entering Underground Garages

VW Golf R year 20 Edition
Automobile4 days ago

Huge Fine Plies European Car Manufacturers

Farm land
News4 days ago

Farmers lament in Adamawa as thieves plunder farms, steal crops

Volkswagen
Automobile5 days ago

Volkswagen Lowers Battery Production Targets

NYSC Service Corp Members
Education4 days ago

NYSC launches redeployment option for married female corps members

Black Market
News4 days ago

Fuel Scarcity: FRSC sends warning motorists against travelling with petrol in jerrycans

News4 days ago

Imo APC ward chairman arrested for allegedly selling FG’s palliative

GDP
Business4 days ago

Nigeria’s GDP grew by 3.19% in Q2 2024 amid hardship

WHO World Health Organization
Health3 days ago

WHO Unveil Budget For Monkey Pox

PDP logo
News3 days ago

LG Election: Benue PDP Release Guidelines

Lagos Red Line Train
Automobile3 days ago

Lagos Red Line To Begin Free Operation on Wednesday

Education2 days ago

WAEC, NECO will no longer allow under 18 – Nigerian Govt

Why Victor Osimhen of Napoli made fun of Verona supporters with a "funny" celebration
Sports15 hours ago

Chelsea: Al Ahli agree €80m fee for Osimhen, player to sign £646,000-a-week deal

Atiku Abubakar
Education2 days ago

Under 18s limit for university, WAEC, NECO policy – Atiku react

Olumide Akpata
News15 hours ago

Edo guber: I answer to no godfather only Edo people – Olumide Akpata declares

Electric G-Wagon
Automobile15 hours ago

Electric G-Wagon Launches In UK With A Price Tag Of Over £180,000

Godwin Obaseki
News3 days ago

Group tell Obaseki to beg Oba of Benin for forgiveness

Simon Ekpa
News2 days ago

Simon Ekpa fire back at Nigeria govt over extradition him from Finland

Lotus Car UK
Automobile15 hours ago

UK Brand Lotus Lowers Production Targets Due To Import Tariffs

ANE Billboard Hots