In a recent interview I was asked:
An open source web application (such as built on Struts / Spring) is more prone to hacking, as anyone can access the source code and modify it. How do you prevent it?
My answer:
The java source code is not directly accessible. It is compiled into class files, which are then inserted into a war file and deployed to a secure container, such as a Weblogic application server. The application server is located behind the corporate firewall and is not directly accessible.
At that time, I didn’t mention anything about XSS and SQL injections, which could affect a COTS-based web application similar to open source.
My questions:
a) Is the answer to the question correct?
b) What additional items can I add to the response?
early.
EDIT:
As I digest your answers, let me also point out that the question also had in mind such frameworks as Liferay and Apache OFBiz.
java security web-applications
newtoallthis
source share