Enviar #1076938: Bagisto 2.4.11 Unrestricted Upload of File with Dangerous Typeinformación

TítuloBagisto 2.4.11 Unrestricted Upload of File with Dangerous Type
DescripciónBagisto is affected by an unrestricted file upload vulnerability that leads to authenticated remote code execution. In the admin catalog attribute create and update flow (POST /admin/catalog/attributes/create), the controller Webkul\Admin\Http\Controllers\Catalog\AttributeController validates only an attribute option's text fields (swatch_alt, swatch_file_name) and applies no image, MIME, or extension validation to the uploaded file options.*.swatch_value. The repository method Webkul\Attribute\Repositories\AttributeOptionRepository::uploadSwatchImage then writes the raw bytes to Laravel's default public disk using an extension taken from the client-supplied filename (getClientOriginalExtension), under storage/app/public/attribute_option, which is served at APP_URL/storage. An authenticated admin-panel user with the catalog.attributes.create permission can intercept the save request and replace the swatch image with a PHP file which is stored as, /storage/attribute_option/shell.php for example. The file is executed when requested, yielding command execution as the web server user. Because catalog.attributes.create is a distinct ACL permission, a role granted only attribute management can use this to obtain code execution as well.
Fuente⚠️ https://gist.github.com/k4z01/bca784b98599ee51fe0548af0f80bb11
Usuario
 k4z0 (UID 101097)
Sumisión2026-11-05 20:22 (hace 27 días)
Moderación2026-12-02 18:14 (27 days later)
EstadoAceptado
Entrada de VulDB447949 [Webkul Bagisto hasta 2.4.10 Catalog Attribute Option Swatch Upload AttributeOptionRepository.php uploadSwatchImage swatch_value escalada de privilegios]
Puntos20

Do you need the next level of professionalism?

Upgrade your account now!