I had these odd message on my server before it crashed:
[ (org.jboss.seam.core.Interpolator)] exception interpolating string: #{(expressions.getClass().forName('java.lang.Runtime').getDeclaredMethods()[6]).invoke(expressions.getClass().forName('java.lang.Runtime')).exec('ls')}
javax.el.ELException: java.io.IOException: Cannot run program "ls": java.io.IOException: error=12, Cannot allocate memory
It seams to me that someone tried to execute something, through Interpolator class. I found these code, from an earlier version of seam:
I found these post
How to solve "java.io.IOException: error=12, Cannot allocate memory" calling Runtime#exec()?
But in my case, I'm not trying to solve it, I want to restrict it.
Can I prevent systems execution through a Security Manager? Do you have any suggestion to prevent these kind of execution?
Thanks in advance.