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

Adds proxy binding for AjaxProxy component #769

Merged
merged 1 commit into from
Jun 19, 2016

Conversation

paulhoadley
Copy link
Contributor

Adds a single-purpose Proxy object as an inner class of AjaxFlexibleFileUpload which simply wraps the methods that we need to call from the client. Fixes the security issue described in #768.

When the proxy binding is not set, AjaxProxy uses its containing
component (so, in this case, the AjaxFlexibleFileUpload component) as
its server-side proxy object. This exposes all public methods of that
component to the client-side Javascript object. At that point, a
malicious user can fairly easily call some significant methods, such
as Application.terminate() to shut down the application instance.

Here we add a single-purpose Proxy object as an inner class of
AjaxFlexibleFileUpload which simply wraps the methods that we need to
call from the client.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants