GitHub Advisory Database
GHSA-vxq2-p937-3px3
Pinned entity creation form shows wrong data
Details
Impact
Logged in user can access page state data of pinned pages of other users by pageId hash.
Patch
--- src/Oro/Bundle/NavigationBundle/Controller/Api/PagestateController.php
+++ src/Oro/Bundle/NavigationBundle/Controller/Api/PagestateController.php
@@ -158,6 +158,13 @@
AbstractPageState::generateHash($this->get('request_stack')->getCurrentRequest()->get('pageId'))
);
+ if ($entity) {
+ $entity = $this->getEntity($entity->getId());
+ }
+ if (!$entity) {
+ return $this->handleNotFound();
+ }
+
return $this->handleView($this->view($this->getState($entity), Response::HTTP_OK));
}
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | oro/platform | From 5.1.0 before 5.1.4 (fixed in 5.1.4) |
| Packagist | oro/platform | From 5.0.0 up to and including 5.0.12 |
| Packagist | oro/platform | From 4.2.0 up to and including 4.2.10 |