RE: Struts 2 performance

2007-07-16 Thread Sullivan, David
Tried this in a webwork app which is internal and it has the same problem. Shut 
down the server. 


David Sullivan - [EMAIL PROTECTED]
Senior Java Developer
ITSA - Insolvency and Trustee Services Australia
(w) 6270 3436
(m) 0402 309 488

-Original Message-
From: Toni Lyytikäinen [mailto:[EMAIL PROTECTED] 
Sent: Monday, 16 July 2007 4:10 PM
To: Struts Users Mailing List
Subject: Re: Struts 2 performance

I tried this too, and I can confirm that it does actually shut down the server. 
The return value of the method that the property tag references is evaluated 
for some reason, which makes the application vulnerable to OGNL injection 
attacks... this is a huge security problem.

On 7/16/07, Aram Mkhitaryan [EMAIL PROTECTED] wrote:

 Maybe it's new just for me, but I found out one of the main reasons of 
 the problem

 try to submit [EMAIL PROTECTED]@exit(0)} in the viewable property 
 for example you submit a text, and it is displayed by s2's tags

 try and have fun ...

 this expression works and my server shuts down!

 the problem I mentioned is that when I say print property it 
 executes it at first ...
 but it should not! I'm right, amn't I?

 why it executes the string value in my property?
 (it's not just a problem, it's a security risk, the users can hack s2
 sites)
 (at least who may read this message will know that he can hack s2 
 sites and the simplest way is given above)

 that's why even when you do not use ognl expressions, it still works 
 and it costs ...

 Best,
 Aram
 
 Aram Mkhitaryan

 52, 25 Lvovyan, Yerevan 375000, Armenia

 Mobile: +374 91 518456
 E-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Technology choice?

2007-04-23 Thread Sullivan, David
Hi,

Does anyone know if I will run into problems (the really hard to solve
kind) using the struts2 framework with EJB3 and the updated servlet2.5
and JSP2.1 jars with java 1.5

I am assuming that I wont. However many of the examples I have seen
using the interceptor framework use Springs IoC container and I probably
wont be using that given the EJB3 specification (Glassfish and Toplink)

If anyone thinks there could be serious problems with these choices of
tech - any help / info would be appreciated?

David.