Article View: comp.lang.java.programmer
Article #473Re: Servlet security with database access
From: Stephen Tenberg
Date: Mon, 17 Jan 2000 00:00
Date: Mon, 17 Jan 2000 00:00
29 lines
1923 bytes
1923 bytes
I am not familiar with that implementation but servlets should *not* be accessible from casual http users, obviously. Just because the servlet engine needs access to the servlet classes doesn't not mean that the web server should grant read access to the world for the servlet classes. If that is really the case, I would look for another way to run the servlets. If that is not possible, put secure information in a file in a secured directory, and read the data into memory when the servlet is inited. Obviously that opens up even another security hole, which is no worse then putting plain text passwords into Java source code, though. Steve <eherebonus@my-deja.com> wrote in message news:8608ne$2ii$1@nnrp1.deja.com... > I am using Apache Jserv for servlet engine, my servlet will access > databases on the web server, so I have to program the database login > and password into the servlet! The problem: is this secure? Since the > servlet directory has to be readable and execuable, some strangers can > just get the servlet class, decompile it, and get the login/password > for my database? > > Any response will be appreciated. > > > Sent via Deja.com http://www.deja.com/ > Before you buy.
Technical Details
Message-ID:
<860ioq$bi5$1@nntp2.atl.mindspring.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8608ne$2ii$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,da65d672b0892627 X-Google-Attributes: gid10a146,public X-Google-Thread: 115238,da65d672b0892627 X-Google-Attributes: gid115238,public From: "Stephen Tenberg" <STenberg@fcs-usa.com> Subject: Re: Servlet security with database access Date: 2000/01/17 Message-ID: <860ioq$bi5$1@nntp2.atl.mindspring.net> X-Deja-AN: 574039218 References: <8608ne$2ii$1@nnrp1.deja.com> X-Priority: 3 X-Server-Date: 18 Jan 2000 02:22:18 GMT X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: MindSpring Enterprises X-MSMail-Priority: Normal Newsgroups: comp.lang.java.programmer,borland.public.jbuilder.servlet