Skip to content

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