Intel

AIKIDO-2024-10291

zenstack is vulnerable to Exposure of Sensitive Information

Exposure of Sensitive Information Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 23, 2024

95

Critical Risk

This Affects:

jszenstack
1.0.1 - 2.5.1
Fixed in 2.6.0
Are you affected? Scan for Free

TL;DR

Affected versions of the package may expose sensitive information due to improper enforcement of access policies in a polymorphic model hierarchy. Both the base and concrete models in the hierarchy can have access policies, but the access policies directly defined on the concrete models are not properly enforced. As a result, fields that should be excluded, may still be returned, as those marked with @omit on the concrete models, potentially exposing sensitive information.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges and if you are using the polymorphic models feature.

Background info

zenstack is vulnerable to Exposure of Sensitive Information in versions 1.0.1 - 2.5.1.

How to fix this

Upgrade the zenstack library to the patch version.