VDB
Sign up
MEDIUM5.3

GHSA-6h7h-m7p5-hjqp

Sulu checks fix permissions for subentities endpoints

Quick fix

GHSA-6h7h-m7p5-hjqp — sulu/sulu: upgrade to the fixed version with the command below.

composer require sulu/sulu:^2.6.22

Details

### Impact

A user which has permission for the Sulu Admin via atleast one role could have access to the subentities of contacts via the admin API without even have permission for contacts.

### Patches

The issue was patched in release 2.6.22 and 3.0.5.

### Workarounds

Create a Symfony Request Listener checking the permissions for the specific roles.

### Resources

Github Advisory: https://github.com/sulu/sulu/security/advisories/GHSA-6h7h-m7p5-hjqp

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/sulu/sulu
Introduced in: 1.0.0Fixed in: 2.6.22
Fixcomposer require sulu/sulu:^2.6.22
Packagist/sulu/sulu
Introduced in: 3.0.0Fixed in: 3.0.5
Fixcomposer require sulu/sulu:^3.0.5

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/sulu/sulu"]}'