
Cloud Vulnerability DB
A community-led vulnerabilities database
The fix for GHSA-4qrp-9h7g-2ppj protects existing upload values sent back by the client with a server-generated path_signature (HMAC of disk and path). The embed form endpoints could be used as a signing oracle for this signature.
ApiEmbedsFormController::show() (POST .../embeds/{embedKey}/{entityKey}/form/init) only checks the entity / view ability on the entityKey of the route, then passes the raw request body through the embed transformers and applyFormatters():
UploadFormatter::toFront() adds a valid path_signature to any {disk, path} value without one;SharpUploadModelFormAttributeTransformer::dynamicInstance() transformer, the response also contains a signed download_url (and large_thumbnail URL) for that {disk, path};<x-sharp-image file="..."> / <x-sharp-file file="..."> in the slot, or upload attributes of nested embeds) are transformed the same way.ApiEmbedsFormController::update() (POST .../embeds/{embedKey}/{entityKey}/form, create / update ability) behaved the same way through the embed's transformDataForTemplate().
The embed class is resolved from the URL and not bound to the form the caller is editing, so any embed with an upload field can be used under any entity the caller can view.
As a result, an authenticated Sharp user with only a view permission on any entity could:
downloads.allowed_disks), directly through the signed download_url returned by the endpoint, or by replaying the minted path_signature on an upload field of a record they can update, then downloading it;transformed flag of an image upload field configured to transform the original file, overwrite an arbitrary image with a transformed version of itself.
Upload attributes of embed tags injected directly in the editor text, and files referenced in embed editor slots, were also persisted without signature check when a form was saved, and signed back when the form was rendered.path_signature; otherwise a validation error is returned. Newly uploaded files (uploaded: true) are only referenced by their temporary name.UploadFormatter::toFront() no longer signs values flagged as uploaded.No workaround short of upgrading. Restricting downloads.allowed_disks (configureDownloads(allowedDisks: [...])) to the disks actually used for uploads limits the reachable files.
src/Http/Controllers/Api/Embeds/ApiEmbedsFormController.phpsrc/Form/Fields/Formatters/UploadFormatter.php (toFront)src/Form/Eloquent/Uploads/Transformers/SharpUploadModelFormAttributeTransformer.php (dynamicInstance)src/Utils/Fields/Formatters/FormatsEditorEmbeds.php, src/Form/Fields/Formatters/EditorEmbedsFormatter.phpSource: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."