| 标题 | Trilby Media Grav CMS >= 1.7.44, <= 1.7.49.5 Deserialization |
|---|
| 描述 | ## Description
`FileCache::doGet()` deserializes cached values with `unserialize(..., ['allowed_classes' => true])`. If cache files are attacker-controlled, this allows object instantiation and enables object-injection primitives.
## Impact
Potential object injection and possible code execution through gadget chains, when cache storage tampering is possible.
## Mitigation
- Avoid object deserialization for cache data; use strict JSON/primitive formats.
- Enforce integrity controls and strict permissions on cache directories.
- If deserialization is required, use a strict class allowlist. |
|---|
| 来源 | ⚠️ https://github.com/devsamuelsantiago/grav-cms-filecache-object-injection |
|---|
| 用户 | s4nnty (UID 95917) |
|---|
| 提交 | 2026-04-07 17時09分 (2 月前) |
|---|
| 管理 | 2026-04-28 15時13分 (21 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 359965 [Grav CMS 直到 1.7.49.5/2.0.0-beta.1 Cache Value FileCache.php FileCache::doGet 权限提升] |
|---|
| 积分 | 20 |
|---|