Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: only support Closures for callbacks in DefaultFieldResolver #38

Merged

Conversation

simstern
Copy link
Contributor

When resolving an object through the "magic" ObjectAccess returning a property value that is callable, the resolver previously called this function. This was a risk when working with user input, or even lead to misbehaviour. E.g. user Max resolved and then called as max() function.

When resolving an object through the "magic" ObjectAccess returning a property value that is callable, the resolver previously called this function. This was a risk when working with user input, or even lead to misbehaviour. E.g. user Max resolved and then called as max() function.
@Sebobo
Copy link
Contributor

Sebobo commented Jan 17, 2022

Hi @johannessteu can you check this and merge if possible?
Would resolve an issue we have with the Neos media ui package and a general security issue :)

@johannessteu johannessteu merged commit 9f1f909 into t3n:master Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants