Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vuln: ability to access/modify arbitrary user's full information from another user's session #22

Open
talbenari1 opened this issue Oct 9, 2018 · 0 comments

Comments

@talbenari1
Copy link

To preface this: yes, I'm aware that this is a sample application that's not designed to be secure or anything like that (y'know, what with the auto-filled default values and everything). I just wanted to make sure that people who planned on using this application as inspiration for a real-world application would be aware of this issue.

By taking advantage of the sessionid cookie given to users, any user is able to access any other user's information. This is because the application doesn't associate sessions with users.

An example of exploiting this:

  1. Log into the application as [email protected]
  2. Grab the sessionid cookie given by the server
  3. Send a request to /rest/api/customer/byid/[email protected] with the cookie (e.g. curl localhost:9080/rest/api/customer/byid/[email protected] --cookie "sessionid=<your sessionid cookie>", or just visit the page in your browser if it has the cookie)

The same technique can be used to modify any arbitrary user as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant