Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6986591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:49:44+00:00 2026-05-27T18:49:44+00:00

Given a database (MySQL) driven webapp written entirely in vanilla J2EE (no frameworks etc),

  • 0

Given a database (MySQL) driven webapp written entirely in vanilla J2EE (no frameworks etc), which has no attempts at security (except a basic database login system). What steps should you take to secure it?

Any resources about this would also be handy. (I’ve found OWASP).

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:49:45+00:00Added an answer on May 27, 2026 at 6:49 pm

    That seems to be a loaded question.

    The Spring Security framework is the first thing that comes to my mind, but it appears you might not be inclined to using any frameworks.

    If you want to manage the security yourself using a set of database tables, then you would probably want to spend some time designing a proper data model that accounts for users and roles.

    You would probably want to create some sort of Servlet filter that will check to see if a logged in user exists for protected resources. If the user exists, then the filter would forward to the protected resource. If the user is not authenticated, then the filter would capture the target page and redirect the user to authentication page.

    Some other things to consider:

    a). You would probably need to setup ssl for any page that passes login credentials.

    b). You would probably want to look into some encryption facility for storing a users password.

    c). Being that you are writing a Java EE app, you want probably want to look into managing user principles.

    d). if you are deploying to a distributed environment, how will you handle session management. In other words, should the sessions be sticky? or will you employ some sort of shared memory space for authenicated users( i.e. WebSessions, Database persistance, etc)

    e). Pay special attention to sql injection attacks; if you are using jdbc prepared statements, this wouldn’t be much of a concern.

    f). If you are processing credit card transactions, you would want to make sure that you are PCI compliant

    g). Beware of evil bots, try to limit bot activity wherever possible. This can usually be done by employing some sort of captcha utility

    h). If you are using any third party tools/frameworks be sure that you are always updated with the latest releases to avoid vulnerabilities

    Here are some resources that come to mind:

    http://static.springsource.org/spring-security/site/

    http://docs.oracle.com/javase/1.4.2/docs/guide/security/jce/JCERefGuide.html

    http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html

    http://docs.oracle.com/javaee/5/tutorial/doc/bnbwk.html

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a [mysql] database with a given schema, is it possible to generate an
I was given a MySQL database file that I need to restore as a
I have 10 tables in my database(MySQL). two of them is given below tbl_state
Given a table named person (in a MySQL database/schema), kind of like this one:
Given a database that has numerous repeating columns used for auditing and versioning, what
The Database Engine Tuning Advisor has finally given up the ghost and can't help
I'm building a MySQL movie posters/fan art database driven by a PHP script. I
From a stored procedure or function in a given MySQL database, is it possible
Given a mysql-database with tables as follows: author: +----+----------+ | id | name |
I have a query to filter the result in mysql database into given letter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.