Java security weaknesses