RCE Vulnerability in VirusTotal

Security researchers have disclosed a security issue that could
have allowed attackers to weaponize the VirusTotal platform as a
conduit to achieve remote code execution (RCE) on unpatched
third-party sandboxing machines employed antivirus engines.

The flaw, now patched, made it possible to “execute commands
remotely within [through] VirusTotal platform and gain access to
its various scans capabilities,” Cysource researchers Shai Alfasi
and Marlon Fabiano da Silva said in a report[1]
exclusively shared with The Hacker News.

VirusTotal[2], part of Google’s
Chronicle security subsidiary, is a malware-scanning service that
analyzes suspicious files and URLs and checks for viruses using
more than 70 third-party antivirus products.

The attack method involved uploading a DjVu file via the
platform’s web user interface[3]
that when passed to multiple third-party malware scanning engines
could trigger an exploit for a high-severity remote code execution
flaw in ExifTool[4], an open-source utility
used to read and edit EXIF metadata information in image and PDF
files.

CyberSecurity RCE Vulnerability in VirusTotal

Tracked as CVE-2021-22204[5]
(CVSS score: 7.8), the high-severity vulnerability[6]
in question is a case of arbitrary code execution that arises from
ExifTool’s mishandling of DjVu files. The issue was patched by its
maintainers in a security
update
[7] released on April 13,
2021.

A consequence of such an exploitation, the researchers noted,
was that it granted a reverse shell to affected machines linked to
some antivirus engines that had not yet been patched for the remote
code execution vulnerability.

RCE Vulnerability in VirusTotal

To be noted, the vulnerability doesn’t affect VirusTotal and in
a statement shared with The Hacker News, Bernardo Quintero, the
founder of VirusTotal, confirmed that it’s the intended behavior
and that the code executions are not in the platform itself but in
the third-party scanning systems that analyze and execute the
samples. The company also said it’s using a version of ExifTool
that’s not vulnerable to the flaw.

CyberSecurity

Cysource said it responsibly reported the bug through Google’s
Vulnerability Reward Programs (VRP[8]) on April 30, 2021,
following which the security weakness was immediately
rectified.

This is not the first time the ExifTool flaw emerged as a
conduit to achieve remote code execution. Last year, GitLab fixed a
critical flaw (CVE-2021-22205[9], CVSS score: 10.0)
related to an improper validation of user-provided images, leading
to arbitrary code execution.

Update: The story has been revised based on a
statement from VirusTotal to clarify the nature of the
exploitation.

References

  1. ^
    report
    (www.cysrc.com)
  2. ^
    VirusTotal
    (support.virustotal.com)
  3. ^
    web user
    interface
    (www.virustotal.com)
  4. ^
    ExifTool
    (en.wikipedia.org)
  5. ^
    CVE-2021-22204
    (nvd.nist.gov)
  6. ^
    vulnerability
    (devcraft.io)
  7. ^
    security
    update
    (exiftool.org)
  8. ^
    VRP
    (security.googleblog.com)
  9. ^
    CVE-2021-22205
    (thehackernews.com)

Read more