提出 #1076938: Bagisto 2.4.11 Unrestricted Upload of File with Dangerous Type情報

タイトルBagisto 2.4.11 Unrestricted Upload of File with Dangerous Type
説明Bagisto 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.
ソース⚠️ https://gist.github.com/k4z01/bca784b98599ee51fe0548af0f80bb11
ユーザー
 k4z0 (UID 101097)
送信2026年11月05日 20:22 (27 日 ago)
モデレーション2026年12月02日 18:14 (27 days later)
ステータス承諾済み
VulDBエントリ447949 [Webkul Bagisto 迄 2.4.10 Catalog Attribute Option Swatch Upload AttributeOptionRepository.php uploadSwatchImage swatch_value 特権昇格]
ポイント20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!