CVE-2022-23935 Analysis: Command Injection in Exiftool [HackTheBox - Investigation]

0xdf

CVE-2022-23935 Analysis: Command Injection in Exiftool [HackTheBox - Investigation] by 0xdf

In the video "CVE-2022-23935 Analysis: Command Injection in Exiftool [HackTheBox - Investigation]", the vulnerability found in Exiftool is explored. Through examining the source code versions before 12.38 and analyzing the Git image info function, the video explains how an attacker could use the Pearl open command to inject commands and potentially gain control of the system. The vulnerability is demonstrated through an example and the video showcases how it was fixed in version 12.38 by explicitly setting the mode with the trusted_pipe variable. The speaker recommends using an explicit mode set instead of relying on the filename.

00:00:00

section of the video explores the Pearl open command and its ability to execute commands and read from and write to file handles. This unique functionality is then exploited in the CVE-2022-23935 vulnerability found in Exiftool. By examining the Exiftool source code versions before 12.38 and analyzing the vulnerable code found in the Git image info function, the video shows how an attacker could take advantage of the vulnerability to execute commands and potentially gain full control of the system. The video also showcases a legitimate use case for the Pearl open command's functionality through an example in the Exiftool source code.

00:05:00

In this section, the speaker goes deeper into the vulnerability they discovered in exiftool and shows how an attacker can inject commands by getting a file name that ends in a pipe. They explain that they can exploit this vulnerability by tampering with the open sub open function and passing a filename that ends in a pipe to execute the command of their choice. The speaker further demonstrates how this vulnerability was fixed in exiftool's update to version 12.38 by using the trusted_pipe variable to prevent command injection by explicitly setting the mode instead of allowing it to be set in the filename. Despite this, the speaker notes that using the filename as a mode is still not a good practice and recommends using an explicit mode set instead.

More from
0xdf

No videos found.

Related Videos

No related videos found.

Trending
AI Music

No music found.