Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Vulnerabilities

Remote Code Execution Vulnerability Found in AWS WorkSpaces

Rhino Security Labs researchers have identified a vulnerability in the AWS WorkSpaces desktop client that could allow an attacker to execute arbitrary code remotely.

Tracked as CVE-2021-38112, the security bug could be triggered when the user opens a malicious WorkSpaces URI from the browser, allowing a remote attacker to execute arbitrary code on the vulnerable system.

Rhino Security Labs researchers have identified a vulnerability in the AWS WorkSpaces desktop client that could allow an attacker to execute arbitrary code remotely.

Tracked as CVE-2021-38112, the security bug could be triggered when the user opens a malicious WorkSpaces URI from the browser, allowing a remote attacker to execute arbitrary code on the vulnerable system.

A fully managed desktop virtualization service, AWS WorkSpaces provides users with fast access to remote resources. Deployed within an Amazon Virtual Private Cloud (VPC), WorkSpaces can be deployed as a desktop client, on both Windows and Linux machines.

When installed on Windows, the client registers a custom URI that allows users to launch WorkSpaces from their browser.

What researchers with Rhino Security discovered was that, when launched using the URI, the WorkSpaces application did not properly sanitize parameters passed to the command line for authentication to the Amazon service, which could allow for the execution of arbitrary commands.

“Since the WorkSpaces client is based on the Chromium Embedded Framework (CEF) this allows arguments to be injected into the command line which abuse a known debugging CEF command line argument (–gpu-launcher), allowing arbitrary commands to be executed,” the researchers explain.

Modern browsers prevent command and argument injection by URL encoding special characters in the URI, but in WorkSpaces the issue resides in the URL decoding, because parameters in the URI argument are used to launch a new command without sanitization.

The researchers note that the RegCode parameter is validated at startup, thus ensuring it is a valid WorkSpaces registration code, meaning that an attacker could use any valid code for that, and then inject the “–gpu-launcher” argument in the URI, specifying a command that CEF will execute.

Advertisement. Scroll to continue reading.

“This vulnerability could also allow an attacker to potentially pivot into an AWS WorkSpaces host by configuring proxy settings in the WorkSpaces client itself or keylogging usernames and passwords when a victim legitimately accesses their WorkSpaces environment,” the researchers explain.

Rhino Security reported the vulnerability to Amazon on May 25. The issue was addressed with the release of AWS WorkSpaces version 3.1.9, on June 29.

Related: Amazon Sidewalk Mesh Network Raises Security, Privacy Concerns

Related: Amazon Awards $18,000 for Exploit Allowing Kindle E-Reader Takeover

Related: Amazon Alexa Vulnerabilities Could Have Exposed User Data

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...

Vulnerabilities

A researcher at IOActive discovered that home security systems from SimpliSafe are plagued by a vulnerability that allows tech savvy burglars to remotely disable...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Vulnerabilities

Patch Tuesday: Microsoft warns vulnerability (CVE-2023-23397) could lead to exploitation before an email is viewed in the Preview Pane.

Vulnerabilities

The latest Chrome update brings patches for eight vulnerabilities, including seven reported by external researchers.