开发者

json-rpc exposes backend program?

开发者 https://www.devze.com 2023-03-15 14:23 出处:网络
I plan to implement jab开发者_如何学JAVAsorb in my project to call Java method from Javascript by registering Java Class. Hence, the backend\'s partial Java class and methods would be exposed to users

I plan to implement jab开发者_如何学JAVAsorb in my project to call Java method from Javascript by registering Java Class. Hence, the backend's partial Java class and methods would be exposed to users if they review javascript code of web page, right? Does it have security issues?


Does it have security issues?

Of course it does!

If you do this, you should assume that people will try to compromise your system by calling the exposed methods. So your server side needs to be written to perform comprehensive access control checks on use of those methods, and the methods themselves need to thoroughly check the call arguments to ensure that they don't do harmful things when called with unexpected argument values.

0

精彩评论

暂无评论...
验证码 换一张
取 消