Description (CNA)
grav-plugin-api (getgrav/grav-plugin-api) versions >= 1.0.0-beta.10 and <= 1.0.14 contain a path traversal vulnerability in the PagesController::batchCopy() method. An incomplete fix for GHSA-qjq4-jp55-4mx2 left the user-controlled 'suffix' parameter (via POST /api/v1/pages/batch) unvalidated. An authenticated user with the api.pages.write permission (editor-level, not super-admin) can supply path traversal sequences (e.g. /../../../) in the suffix parameter to escape the intended user/pages/ directory and write attacker-controlled page content and page media to arbitrary filesystem locations writable by the web server process. The vulnerability is fixed in 1.0.15.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| getgrav / grav | affected 0 before 1.0.15; unaffected 1.0.15 |
CWE
CWE-73
References
- https://github.com/getgrav/grav/security/advisories/GHSA-g6j3-8jv9-ch5f
- https://www.vulncheck.com/advisories/grav-plugin-api-before-path-traversal-via-batchcopy
ADP enrichment
No English description supplied.