Skip to content

Search function exposes data leakage and a security issue #49

Closed
@ernsyn

Description

@ernsyn

Hi Matt,

First of all, good work on 21-points. Been using your project to learn up on JHipster and it really helps.

Anyway, was going through the code and it occurred to me that even if I'm logged in as myself (john), and if I go to "Daily Points" and do a search with the following search parameter - o*, all points that match that parameter will appear. Not just mine. (See screenshot below)

screenshot 2018-10-27 at 12 19 47 am

I was even able to edit the fields of a Point entry that belongs to others and save successfully. (I reverted what I edited so as not to tamper with other user's data).

So there are 2 issues here -

  1. Searching allows a user to search for all items that belongs to all users; not just himself/herself (Not sure how to fix this)
  2. Once I was able to see other user's data, I was able to edit and save successfully. (Should be easily fixable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions