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

  • SEARCH
  • Home
  • 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 8340701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:15:11+00:00 2026-06-09T05:15:11+00:00

I am working on an existing Web based application. Now, I need to secure

  • 0

I am working on an existing Web based application.

Now, I need to secure the application against what I think is called url hacking. For instance, if the customer with customerId 1 is logged in and viewing his profile, the following http get variable will be visible in the address field: customerId=1.
I need to prevent a customer from being able to set customerId=2 and see the profile of another customer.

The problem is that, the application is already in production and in good working condition, so the changes should be minimal with respect to this change.

How is this best achieved?

Any sugggestions/comments?

  • 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-06-09T05:15:12+00:00Added an answer on June 9, 2026 at 5:15 am

    why do you give the id in the URL when the user should only be allowed to change his profile? I don’t see any need for this. Rather get the current user from SecurityConext and display its profile on an URL without the id.

    with the new information you gave in the comments I suggest sth. like this:

    just check if the given orderid in the URL belongs to the current user.
    You’re saying you use “normal web based Application” so I assume Servlet/jsp based. In your servlet you would do something like this:

    int orderId = Integer.parseInt(request.getParameter("orderId"));
    String username = request.getUserPrincipal().getName();
    /*now you need to check if username match with the username of the order e.g. by using hibernate to get the order by id and check its user and if not throw PermissionDeniedException or similiar*/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project to convert an existing Java web application to use
I'm working on replacing an existing web grid in an ASP.NET web application, with
I start working at an existing project (an web application) that was created by
I am working on a web application with an existing code base that has
I am currently working on converting an existing web application to support an additional
I am working on a tool which audits access to existing web application. Existing
I have an existing and working java web application. I want to make this
I'm working on an existing magento web site that is in french. The link
I am working on re-writing an existing web site using Node.js with Express. Front-end
I've integrated ASP.NET MVC 3 project into existing Web Forms project. It was working

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.