Rapid7

module

OS Command Exec, Add user with useradd

Disclosed
N/A

Description

Execute an OS command from PHP.

Creates a new user. By default the new user is set with sudo
but other options exist to make the new user automatically
root but this is not automatically set since the new user will
be treated as root (and login may be difficult). The new user
can also be set as just a standard user if desired.
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.