Description
Cotonti 1.0.0 passes the base64-decoded cb parameter to unserialize() without allowed_classes restriction in the comments plugin EditAction. Registered users with comment write permissions can instantiate arbitrary PHP objects and potentially achieve file write or code execution through gadget chains.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Cotonti | Cotonti | 1.0.0 – ≤ 1.0.0 | — |
References
- https://github.com/Cotonti/Cotonti/issues/1894 issue-tracking
- https://github.com/Cotonti/Cotonti/pull/1897 patch issue-tracking
- https://github.com/Cotonti/Cotonti/blob/1.0.0/plugins/comments/controllers/actions/EditAction.php technical-description
- https://github.com/Cotonti/Cotonti/blob/1.0.0/system/cache.php technical-description
- https://github.com/Cotonti/Cotonti product
- VulnCheck Advisory: Cotonti 1.0.0 PHP Object Injection via Comments Plugin Edit Action cb Parameter third-party-advisory