Description
OliveTin provides a web interface to run predefined shell commands, called actions. Each action can declare typed arguments that are templated into the shell command string.
In affected versions the argument validation routine checkShellArgumentSafety() only rejects shell metacharacters for the string, int, bool and choice argument types. An argument declared with the password type falls through to a permissive branch, so its value is passed to the shell unsanitised. An operator who can trigger a shell-mode action that has a password-typed argument can inject arbitrary operating system commands that run as the OliveTin service account.
This module injects into a password-typed argument of an action chosen by the operator, starts the action through the StartAction API, then reads the command output back through the ExecutionStatus API. Because self registration and an auth type of none are common defaults, the target is frequently reachable without credentials.
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/http/olivetin/action_command_injectionmsf undefined(action_command_injection) > show actions ...actions...msf undefined(action_command_injection) > set ACTION < action-name >msf undefined(action_command_injection) > show options ...show and set options...msf undefined(action_command_injection) > runPrioritize with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub