We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,617 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

JSP/Java/Tomcat Website Hacking

Hi,

Does anyone know where I can read about ways to protect a website from potential threats? i.e. SQL Injection, etc. In particular, a website using HTML/JSP/Servlets/Java/Tomcat.

Thanks,
Ashton.

4
Contributors
9
Replies
4 Days
Discussion Span
2 Years Ago
Last Updated
13
Views
AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 0

1. Your Tomcat should be running on Apache server, do not expose Tomcat directly to user
2. Do not run servers as root user, create specific user for it with certain set of privileges
3. Close connection to your database from outside and use localhost for connection
4. If you need to manipulate database learn how to do it from command line or learn how to use ssh to get you in touch with DB and set GUI tool access
5. You can always google for sql injection test, sql injection prevention java. First step ca be using PreparedStatement instead of plane statement, or even better learn Hibernate (HTML or PDF tutorial)

peter_budo
Code tags enforcer
Moderator
15,812 posts since Dec 2004
Reputation Points: 2,871
Solved Threads: 944
Skill Endorsements: 52

Thanks.

I was hoping for something more though. I know that there's a list of possible ways that you didn't mention, for example "Cookie Poisoning" - I just want to know all the possible risks out there.

AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 0
~s.o.s~
Failure as a human
Administrator
12,247 posts since Jun 2006
Reputation Points: 3,307
Solved Threads: 787
Skill Endorsements: 55

That doesn't exactly help...

AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 0

You asked:

Does anyone know where I can read about ways to protect a website from potential threats?

from the link I posted:

This codelab shows how web application vulnerabilities can be exploited and how to defend against these attacks

Post a more specific question and you'll get a better reply. I hope you realize that without posting what you are already aware of, your question is open to all sorts of suggestions/links, no?

~s.o.s~
Failure as a human
Administrator
12,247 posts since Jun 2006
Reputation Points: 3,307
Solved Threads: 787
Skill Endorsements: 55

lol if you can't answer the question let someone else answer.

AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 0

Indeed, I shouldn't have answered this question; from your posting history it seems that you have a knack for biting the hand which tries to help you. Enjoy the ignorance and the bliss which comes with it I guess...

~s.o.s~
Failure as a human
Administrator
12,247 posts since Jun 2006
Reputation Points: 3,307
Solved Threads: 787
Skill Endorsements: 55

Haha

AshtonHogan
Posting Whiz in Training
210 posts since Jul 2009
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 0

Well I gave my guidance, but guess this guy need spoon-feeding. No thank you, I'm not babysitter.
Ashton continue behave like this and you will see only doors of this forum

peter_budo
Code tags enforcer
Moderator
15,812 posts since Dec 2004
Reputation Points: 2,871
Solved Threads: 944
Skill Endorsements: 52

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.3126 seconds using 2.78MB