Rapid7 Vulnerability & Exploit Database

Agent Tesla Panel Remote Code Execution

Back to Search

Agent Tesla Panel Remote Code Execution



This module exploits a command injection vulnerability within the Agent Tesla control panel, in combination with an SQL injection vulnerability and a PHP object injection vulnerability, to gain remote code execution on affected hosts. Panel versions released prior to Sepetember 12, 2018 can be exploited by unauthenticated attackers to gain remote code execution as user running the web server. Agent Tesla panels released on or after this date can still be exploited however, provided that attackers have valid credentials for the Agent Tesla control panel. Note that this module presently only fully supports Windows hosts running Agent Tesla on the WAMP stack. Support for Linux may be added in a future update, but could not be confirmed during testing.


  • Ege Balcı <ege.balci@invictuseurope.com>
  • mekhalleh (RAMELLA Sébastien)
  • gwillcox-r7






Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/http/agent_tesla_panel_rce
msf exploit(agent_tesla_panel_rce) > show targets
msf exploit(agent_tesla_panel_rce) > set TARGET < target-id >
msf exploit(agent_tesla_panel_rce) > show options
    ...show and set options...
msf exploit(agent_tesla_panel_rce) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security