CVE-2026-55676
Beschrijving NL
Malcolm is een hulpprogramma voor netwerkverkeeranalyse. De bestandsuploadcomponent (FilePond PHP-backend) accepteert uploads op `POST /server/php/submit.php' en slaat ze op in een map die wordt bediend door dezelfde nginx- en php-fpm-instantie. De allow-list die geaccepteerde bestandstypen moet beperken, is standaard een lege array (`file-upload/php/config.php:16`), dus de typecontrole is een no-op en elke extensie wordt geaccepteerd. Het ontsmettingsmiddel voor bestandsnamen houdt de `.php` -extensie intact. Vastgelegde bestanden komen terecht in `/var/www/upload/server/php/files` (`file-upload/php/config.php:7`), en de nginx van de component leidt elke URL die eindigt op `.php` naar php-fpm. Een geverifieerd `GET /server/php/files/.php` voert vervolgens de geüploade code uit als `www-data`. Voorafgaand aan versie 26.06.1 is het upload-eindpunt in de RBAC-modus bereikbaar via de granulaire ROL `ROLE_UPLOAD' (`nginx/lua/nginx_auth_helpers.lua:71`), een rol die alleen bedoeld is voor het indienen van opnamebestanden. Als gevolg hiervan voert een gebruiker met de uploadfunctie willekeurige PHP uit als `www-gegevens` in de bestandsuploadcontainer. Versie 26.06.1 lost het probleem op.
Origineel (Engels) tonen
Malcolm is a network traffic analysis tool suite. The file-upload component (FilePond PHP backend) accepts uploads at `POST /server/php/submit.php` and stores them in a directory served by the same nginx and php-fpm instance. The allow-list that should restrict accepted file types is an empty array by default (`file-upload/php/config.php:16`), so the type check is a no-op and every extension is accepted. The filename sanitizer keeps the `.php` extension intact. Committed files land in `/var/www/upload/server/php/files` (`file-upload/php/config.php:7`), and the component's nginx routes any URL ending in `.php` to php-fpm. An authenticated `GET /server/php/files/.php` then executes the uploaded code as `www-data`. Prior to version 26.06.1, in RBAC mode, the upload endpoint is reachable by the granular `ROLE_UPLOAD` role (`nginx/lua/nginx_auth_helpers.lua:71`), a role intended only for submitting capture files. As a result, a user holding the upload-only role runs arbitrary PHP as `www-data` inside the file-upload container. Version 26.06.1 fixes the issue.