Skip to content

Commit

Permalink
#10 OR filter bypasses all doctrine extensions -> Potential security …
Browse files Browse the repository at this point in the history
…problem

- added warning to readme
  • Loading branch information
metaclass-nl committed Aug 6, 2022
1 parent b7d6686 commit 912d8aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ Combines API Platform ORM Filters with AND, OR and NOT according to client reque
- existing requests keep working unmodified if not using "and", "or" or "not" as query parameters
- works with built in filters of Api Platform, except for DateFilter
with EXCLUDE_NULL. A DateFilter subclass is provided to correct this.


SECURIY WARNING: The current version of LogicFilter allows clients
to bypass criteria set by custom Extensions to limit their access to certain data,
like the examples do in the docs on [Custom Doctrine ORM Extension](https://api-platform.com/docs/core/extensions/#custom-doctrine-orm-extension)
see [Issue 10](https://github.com/metaclass-nl/filter-bundle/issues/10).

Usage
-----
Once the FilterLogic class and service configuration have been installed in you app,
Expand Down

0 comments on commit 912d8aa

Please sign in to comment.