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

Get criticals data with a simple token #7806

Closed
techerjeansebastienpro opened this issue Nov 13, 2017 · 1 comment
Closed

Get criticals data with a simple token #7806

techerjeansebastienpro opened this issue Nov 13, 2017 · 1 comment

Comments

@techerjeansebastienpro
Copy link

Bug

REST endpoint /users/{id} is not secure

Environment

  • Version: [6.0.2]
  • OS: [dolibarr docker container tugxgasy/dolibarr]
  • Web server: [Apache]
  • PHP: [5.6.31]
  • Database: [MariaDB 10.2.10]
  • URL(s): [api/index.php/users/{id}]

Expected and actual behavior

I can get informations about several users using a token from a simple user
The container clone the official repository
The endpoints is not documented in the explorer

Steps to reproduce the behavior

enable REST api
use a token for a simple user (no admin rights)
request GET api/index.php/users give a 401
request GET api/index.php/users give 200 with criticals informations: token, etc.,

@eldy
Copy link
Member

eldy commented Nov 25, 2017

Can you check the permission of the user used for the api call.
Don't you have permission "Read other users and groups" ?

eldy added a commit that referenced this issue Nov 25, 2017
@eldy eldy closed this as completed in 38c770f Nov 25, 2017
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

2 participants