Thank you for this detailed reply.
I think the tools you suggested provide most I need.
A manual code-review might sometimes be too time-consuming.
Therefore I thought about to analyse the javascript to extract the
possible
requests and then manipulate these to find the security holes.
My understanding by the analysis is done by degwt.
I just have to figure out how to test my RPC calls (maybe with one of
the other tools).
Now I have to take a closer look to degwt.
I'd like to get most of the tests automated.
At the moment I have tried to write a java application to examine
the javascript file. With your admission I'd try to port some
functionality
of degwt into my java application.
Best regards
Basdl
On 28 Sep., 21:29, Sripathi Krishnan <
sripathi.krish...@gmail.com>
wrote:
> Lets look at the vulnerabilities one at a time.
>
> *Cross Site Scripting (XSS)*
> With GWT, the attack vectors for XSS are restricted to the following -
>
> 1. Host html/jsp page that has reflected XSS
> 2. Custom Javascript libraries
> 3. JSNI code that you have written within GWT
> 4. Places where you have called eval(), or have used built-in JSONParser
> to parse untrusted JSON
> 5. Code that assigns window.location on untrusted strings
> 6. Code that uses setInnerHtml on untrusted data
>
> This isn't an exhaustive list, but represents the most common attack vectors
> for a GWT app. If you do a manual code-review for these patterns, you will
> catch most of your XSS problems. And if you are GWT app follows best
> practices, you really won't be using most of the above patterns.
>
> *SQL Injection*
> This is largely outside the scope of GWT, but there are a couple of things
> you can do.
>
> - Do a manual code-review for SQL Injection. OWASP website has good
> code-review checklists, that's the best resource.
> - Use an automated scanner to perform the tests. The problem is that GWT
>
http://www.gdssecurity.com/l/b/2010/07/20/gwtenum-enumerating-gwt-rpc...
>
> *Cross Site Request Forgery*
> If you are using the latest GWT version, you are largely protected from
> CSRF. GWT includes a custom http header in each RPC request, and that takes
> care of CSRF on most browsers. The only vulnerable ones are people with
> outdated versions of Flash Player.
>
> If you are paranoid and want to protect the users who don't upgrade their
> browsers, read this post on Lombardi's blog <
http://jectbd.com/?p=1351>.
> IMHO, you should do that only if you are using an older version of GWT and
> can't upgrade.
>
> Lastly, if you want to de-obfuscate some of GWTs code to perform security
> analysis, you might want to check out degwt<
http://code.google.com/p/degwt/>.
> >
google-web-tool...@googlegroups.com<
google-web-toolkit%2Bunsu...@googlegroups.com>
> > .