Holy Guacamole! Researchers find Apache remote desktop software was silently pwnable for snooping on sessions

Best get updating pronto, folks

The Apache Project's popular Guacamole open-source remote desktop software contained vulns allowing remote attackers to steal login creds and hijack targeted machines, researchers have said.

Israeli infosec outfit Check Point discovered the reverse RDP flaws, an attack method that allows a compromised host to transmit malware to a clean client machine opening a remote desktop protocol (RDP) session with it.

The Apache Foundation has issued patches for Guacamole following Check Point's research, which resulted in two CVEs (2020-9497 and 2020-9498). Readers who haven't patched it lately should do so immediately.

Guacamole is an open-source RDP gateway product. At its simplest, once installed on a server inside a corporate network, Guacamole lets users point their web browsers at a given address to log in and work on their remote machines as normal.

"Knowing that vulnerabilities in FreeRDP [a similar open-source RDP utility whose protocol is available through Guacamole] were only patched on version 2.0.0-rc4, this means that all versions that were released before January 2020 are using vulnerable versions of FreeRDP," Check Point researcher Eyal Itkin said in a canned statement.

This inspired Check Point to probe older versions of Guacamole, which it surmised would support earlier, vulnerable versions of FreeRDP.

In the reverse attack scenario it tested, Check Point's researchers uncovered a use-after-free memory vuln which, combined with flaws in how Guacamole handled FreeRDP audio (detailed at the link above), gave them arbitrary read and write privileges on the target server.

These, the researchers found, could be linked to a privilege escalation vuln through the guacd Guacamole process. After hijacking a guacd instance on the compromised server, the researchers noticed that new Guacamole connections were spawned using fork() – without using execve().

"A forked process contains the entire memory snapshot of its parent, and that snapshot is replaced with a new image when execve() is called," Check Point said. "Without this crucial call, the child process inherits the entire memory address space of its parent."

With the memory address space thus mapped, the researchers simply added themselves to each and every conversation of interest.

Omri Herscovici, vulnerability research team leader at Check Point, said in a statement: "While the global transition to remote work is a necessity, we cannot neglect the security implications of such remote connections, especially as we enter the post-coronavirus era.

"This research demonstrates how a quick change in the social landscape directly affects what attackers might focus their efforts on. In this case, it's remote work." ®

Tech Resources

The State of Application Security 2020

Forrester analyzed the state of application security in 2020 and found over 75% of external attacks are attributed to web application and software exploits.

How backup modernization changes the ransomware game

If the thrill of backing up your data and wondering if you will ever see it again has worn off, start the new year by getting rid of the lingering pain of legacy backup. Bipul Sinha, CEO of the Cloud Data Management Company, Rubrik, and Miguel Zatarain, Director of Global Infrastructure Technology at PACCAR, Fortune 500 manufacturer of trucks and Rubrik customer, are talking to the Reg’s Tim Phillips about how to eliminate the costly, slow and spotty performance of legacy backup, and how to modernize your implementation in 2021 to make your business more resilient.

Webcast Slide Deck | Three reasons you need a hybrid multicloud

Businesses need their IT teams to operate applications and data in a hybrid environment spanning on-premises private and public clouds. But this poses many challenges, such as managing complex networking, re-architecting applications for the cloud, and managing multiple infrastructure silos. There is a pressing need for a single platform that addresses these challenges - a hybrid multicloud built for the digital innovation era. Just this Regcast to find out: Why hybrid multicloud is the ideal path to accelerate cloud migration.

Anatomy of a Private Cloud

Learn the key elements that combined, build a true Private Cloud

Biting the hand that feeds IT © 1998–2021