GHSA-vxq2-p937-3px3medium4.3
Pinned entity creation form shows wrong data
The advisory, in context
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
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
oro/platform Packagist
Ecosystem versions
From 5.1.0 before 5.1.4
Fixed in 5.1.4
4 explicitly affected versions
5.1.0, 5.1.1, 5.1.2, 5.1.3
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.1.0",
"5.1.1",
"5.1.2",
"5.1.3"
]
}oro/platform Packagist
Ecosystem versions
From 5.0.0 through 5.0.12 (inclusive)
No fix recorded for this interval.
13 explicitly affected versions
5.0.0, 5.0.1, 5.0.10, 5.0.11, 5.0.12, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 5.0.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "5.0.0"
},
{
"last_affected": "5.0.12"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.0.0",
"5.0.1",
"5.0.10",
"5.0.11",
"5.0.12",
"5.0.2",
"5.0.3",
"5.0.4",
"5.0.5",
"5.0.6",
"5.0.7",
"5.0.8",
"5.0.9"
]
}oro/platform Packagist
Ecosystem versions
From 4.2.0 through 4.2.10 (inclusive)
No fix recorded for this interval.
11 explicitly affected versions
4.2.0, 4.2.1, 4.2.10, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, 4.2.8, 4.2.9
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "4.2.0"
},
{
"last_affected": "4.2.10"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"4.2.0",
"4.2.1",
"4.2.10",
"4.2.2",
"4.2.3",
"4.2.4",
"4.2.5",
"4.2.6",
"4.2.7",
"4.2.8",
"4.2.9"
]
}