Submit #825315: php-censor <= 2.1.6 OS Command Injectioninfo

Titlephp-censor <= 2.1.6 OS Command Injection
DescriptionPHP Censor (all versions through 2.1.6) allows unauthenticated OS command injection via the webhook endpoint. The WebhookController is whitelisted from authentication checks in Application.php, and the "branch" and "commit" parameters from GET/POST requests to /webhook/git/<projectId> are passed unsanitized through sprintf() into shell commands executed via Symfony Process::fromShellCommandline(). A remote unauthenticated attacker can inject arbitrary OS commands by sending a crafted branch parameter (e.g., ?branch=$(id)), which is executed asynchronously by the Worker process. In the default Docker deployment, commands run as root.
Source⚠️ https://github.com/php-censor/php-censor/issues/442
User
 anch0r (UID 96691)
Submission05/11/2026 08:54 (2 months ago)
Moderation05/31/2026 16:19 (20 days later)
StatusAccepted
VulDB entry367552 [php-censor up to 2.1.6 Webhook Endpoint GitBuild.php commitId os command injection]
Points20

Do you know our Splunk app?

Download it now for free!