Advisory

GHSA-9cw3-j7wg-jwj8

Also known as: None

Summary

Neos Flow Information disclosure in entity security

Details

If you had used entity security and wanted to secure entities not just based on the user's role, but on some property of the user (like the company he belongs to), entity security did not work properly together with the doctrine query cache. This could lead to other users re-using SQL queries from the cache which were built for other users; and thus users could see entities which were not destined for them.

Am I affected?

  • Do you use Entity Security? if no, you are not affected.
  • You disabled the Doctrine Cache (Flow_Persistence_Doctrine)? If this is the case, you are not affected.
  • You use Entity Security in custom Flow or Neos applications. Read on.
  • If you only used Entity Security based on roles (i.e. role A was allowed to see entities, but role B was denied): In this case, you are not affected.
  • If you did more advanced stuff using Entity Security (like checking that a customer only sees his own orders; or a hotel only sees its own bookings), you very likely needed to register a custom global object in Neos.Flow.aop.globalObjects. In this case, you are affected by the issue; and need to implement the CacheAwareInterface in your global object for proper caching.

All Flow versions (starting in version 3.0, where Entity Security was introduced) were affected.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-17 22:54 UTC
Modified
2024-12-02 05:43 UTC

Affected packages and fixes

neos/flow

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.0.12 (ecosystem)

Fixed versions

3.0.12

Fix

The export has no generic command for this ecosystem.

neos/flow

Packagist · All systems

Affected

  • introduced 3.1.0, fixed 3.1.10 (ecosystem)

Fixed versions

3.1.10

Fix

The export has no generic command for this ecosystem.

neos/flow

Packagist · All systems

Affected

  • introduced 3.2.0, fixed 3.2.13 (ecosystem)

Fixed versions

3.2.13

Fix

The export has no generic command for this ecosystem.

neos/flow

Packagist · All systems

Affected

  • introduced 3.3.0, fixed 3.3.13 (ecosystem)

Fixed versions

3.3.13

Fix

The export has no generic command for this ecosystem.

neos/flow

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.0.6 (ecosystem)

Fixed versions

4.0.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences