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

Issue 1768: make behaviour of SetValue consistent when using interfaces #1790

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tom-b-iodigital
Copy link
Contributor

When passing an instance of a C# object using one of its interfaces into the engine using SetValue, the interpreter incorrectly allowed method calls to class methods not defined in the interface. This behavior violates the principle of least privilege and can lead to unintended side effects or security vulnerabilities, as users could execute methods that were meant to be inaccessible through the interface abstraction. This PR fixes that and ads a more descriptive exception message to avoid users considering it a bug.

@tom-b-iodigital
Copy link
Contributor Author

@lahma you closed the issue, but I think this is how SetValue should behave

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.

1 participant