Rapid7 Vulnerability & Exploit Database

Ajenti auth username Command Injection

Back to Search

Ajenti auth username Command Injection

Disclosed
10/14/2019
Created
12/01/2019

Description

This module exploits a command injection in Ajenti == 2.1.31. By injecting a command into the username POST parameter to api/core/auth, a shell can be spawned.

Author(s)

  • Jeremy Brown
  • Onur ER <onur@onurer.net>

Platform

Python

Architectures

python

Development

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

;