module

Mercurial Custom hg-ssh Wrapper Remote Code Exec

Disclosed
2017-04-18
Created
2018-05-30

Description

This module takes advantage of custom hg-ssh wrapper implementations that don't
adequately validate parameters passed to the hg binary, allowing users to trigger a
Python Debugger session, which allows arbitrary Python code execution.

Author

claudijd

Platform

Python

Architectures

python

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/linux/ssh/mercurial_ssh_exec
msf exploit(mercurial_ssh_exec) > show targets
...targets...
msf exploit(mercurial_ssh_exec) > set TARGET < target-id >
msf exploit(mercurial_ssh_exec) > show options
...show and set options...
msf exploit(mercurial_ssh_exec) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.