Thursday, July 20, 2017

Critical Code Injection Flaw In Gnome File Manager Leaves Linux Users Open to Hacking

Critical Code Injection Flaw In Gnome File Manager Leaves Linux Users Open to Hacking





Dubbed Bad Taste, the vulnerability (CVE-2017-11421) code injection vulnerability resides in "gnome-exe-thumbnailer" — a tool to generate thumbnails from Windows executable files (.exe/.msi/.dll/.lnk) for GNOME, which requires users to have Wine application installed on their systems to open it.

Moskopp discovered that while navigating to a directory containing the .msi file, GNOME Files takes the filename as an executable input and run it in order to create an image thumbnail.

For successful exploitation of the vulnerability, an attacker can send a crafted Windows installer (MSI) file with malicious VBScript code in its filename, which if downloaded on a vulnerable system would compromise the machine without further user interaction.

"Instead of parsing an MSI file to get its version number, this code creates a script containing the filename for which a thumbnail should be shown and executes that using Wine," Moskopp explains while demonstrating his PoC. 
"The script is constructed using a template, which makes it possible to embed VBScript in a filename and trigger its execution."
Moskopp advised users to:

  • Delete all files in /usr/share/thumbnailers.
  • Do not use GNOME Files.
  • Uninstall any software that facilitates automatically execution of filenames as code.

No comments:

Post a Comment