| 标题 | php-censor <= 2.1.6 OS Command Injection |
|---|
| 描述 | PHP 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. |
|---|
| 来源 | ⚠️ https://github.com/php-censor/php-censor/issues/442 |
|---|
| 用户 | anch0r (UID 96691) |
|---|
| 提交 | 2026-05-11 08時54分 (25 日前) |
|---|
| 管理 | 2026-05-31 16時19分 (20 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 367552 [php-censor 直到 2.1.6 Webhook Endpoint GitBuild.php commitId 权限提升] |
|---|
| 积分 | 20 |
|---|