Metasploit Framework user exposes Metasploit to same deserialization issue that is exploited by that module
High severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated May 5, 2023
Description
Published by the National Vulnerability Database
Apr 23, 2021
Published to the GitHub Advisory Database
May 24, 2022
Last updated
May 5, 2023
Reviewed
May 5, 2023
By launching the drb_remote_codeexec exploit, a Metasploit Framework user will inadvertently expose Metasploit to the same deserialization issue that is exploited by that module, due to the reliance on the vulnerable Distributed Ruby class functions. Since Metasploit Framework typically runs with elevated privileges, this can lead to a system compromise on the Metasploit workstation. Note that an attacker would have to lie in wait and entice the Metasploit user to run the affected module against a malicious endpoint in a "hack-back" type of attack. Metasploit is only vulnerable when the drb_remote_codeexec module is running. In most cases, this cannot happen automatically.
References