Rivenwry1,
Sorry, it seems to be taking too long for me to write the original article on web site security. Mainly because I am busy with some other issues.
Till I get around to finishing it, let me get you the main resources pertinent to your JSP security issues.
A. Here is a very good article on JSP Security for Limiting Access to Application-Internal URLs at:
[http://www.onjava.com/pub/a/]
onjava/2001/06/27/java_security.html
Covers a technique to design and build simple JSP applications that provides some security benefits.
B. Another tutorial on:
[http://www.developer.com/java/article.php/883381]
Discusses the problem of trust management on the low implementation level (code and configuration), as pertaining to the Java Server Pages environment. Accordingly, explains the ways in which malicious user input can manifest itself and alter the intended behavior of an application, and we will consider methods to validate input and reduce undesirable exposure of information and programming interfaces.
C. Another link on JSP development. Discusses security issue breifly:
[http://www.visualbuilder.com/]
jsp/design/ejb_or_jsp_design.asp
D. An article on How to read a Properties file and IP address of a remote machine:
[http://www.visualbuilder.com/sourcecode/viewcode.asp?id=60]
This servlet could be used for basic security in servlet.
When you want to limit the computers that can call a specific servlet.
You read the valid IP address from a properties file.
The IP of the computer calling the servlet (static IP) is compared with value in the property file.If the values are the same then it is called from the correct computer. Otherwise a message is displayed showing the error.
E. A relevent case study, includes authenticating users, getting user preferences, getting current orders, and adding/modifying/deleting orders from the system:
[http://www.theserverside.com/]
discussions/thread.tss?thread_id=24781
Hope this will get you going for now. More Later.
_________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Last edited by quantum on Tue Jun 29, 04 9:00 pm; edited 1 time in total