forked from wocommunity/wonder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds proxy binding for AjaxProxy component. wocommunity#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.
- Loading branch information
1 parent
be7b7ca
commit 9813d1e
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Frameworks/Ajax/Ajax/Components/AjaxFlexibleFileUpload.wo/AjaxFlexibleFileUpload.wod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters