Vulnerabilities/

When setting EntityOptions.apiPrefilter to a function, the filter is not applied to API requests for a resource by Id

Severity:
Medium

Description

If you used the apiPrefilter option of the @Entity decorator, by setting it to a function that returns a filter that prevents unauthorized access to data, an attacker who knows the id of an entity instance she is not authorized to access, can gain read, update and delete access to it.

Recommendation

Update the remult package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
remult
Anything's wrong? Let us know Last updated on November 09, 2023

This issue is available in SmartScanner Professional

See Pricing