module

Maltrail Unauthenticated Command Injection

Disclosed
2023-07-31
Created
2023-08-17

Description

Maltrail is a malicious traffic detection system, utilizing publicly
available blacklists containing malicious and/or generally suspicious trails.
The Maltrail versions The `subprocess.check_output` function in `mailtrail/core/http.py` contains
a command injection vulnerability in the `params.get("username")` parameter.
An attacker can exploit this vulnerability by injecting arbitrary OS commands
into the username parameter. The injected commands will be executed with the
privileges of the running process. This vulnerability can be exploited remotely
without authentication.

Successfully tested against Maltrail versions 0.52 and 0.53.

Authors

Ege BALCI egebalci@pm.me
Chris Wild

Platform

Linux,Unix

Architectures

cmd, x86, x64

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/unix/http/maltrail_rce
msf exploit(maltrail_rce) > show targets
...targets...
msf exploit(maltrail_rce) > set TARGET < target-id >
msf exploit(maltrail_rce) > show options
...show and set options...
msf exploit(maltrail_rce) > 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.