GHSA-vxq2-p937-3px3

Suggest an improvement
Source
https://github.com/advisories/GHSA-vxq2-p937-3px3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-vxq2-p937-3px3/GHSA-vxq2-p937-3px3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vxq2-p937-3px3
Aliases
Published
2024-03-25T19:39:21Z
Modified
2024-03-25T22:31:16.616196Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
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));
     }

Database specific
{
    "nvd_published_at": "2024-03-25T19:15:57Z",
    "cwe_ids": [
        "CWE-200"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-25T19:39:21Z"
}
References

Affected packages

Packagist / oro/platform

Package

Name
oro/platform
Purl
pkg:composer/oro/platform

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.1.0
Fixed
5.1.4

Affected versions

5.*

5.1.0
5.1.1
5.1.2
5.1.3

Database specific

{
    "last_known_affected_version_range": "<= 5.1.3"
}

Packagist / oro/platform

Package

Name
oro/platform
Purl
pkg:composer/oro/platform

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Last affected
5.0.12

Affected versions

5.*

5.0.0
5.0.1
5.0.2
5.0.3
5.0.4
5.0.5
5.0.6
5.0.7
5.0.8
5.0.9
5.0.10
5.0.11
5.0.12

Packagist / oro/platform

Package

Name
oro/platform
Purl
pkg:composer/oro/platform

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.0
Last affected
4.2.10

Affected versions

4.*

4.2.0
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.9
4.2.10