Skip to content

Require admin authorization for POST /users #426

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

Merged
merged 1 commit into from
Mar 25, 2025
Merged

Require admin authorization for POST /users #426

merged 1 commit into from
Mar 25, 2025

Conversation

omkar-ethz
Copy link
Member

Vulnerability

The POST /users endpoint in SciLog is unauthenticated, hence, an attacker is able to create a user (functional account) with admin rights.
https://scilog.psi.ch/api/v1/explorer/#/UserController/UserController.create

Logging in with the created functional account https://scilog.psi.ch/login (username: scilog-admin@YOURDOMAIN and password: xxx). Able to view / delete all Logbooks

Fix

Added admin authorization to /users endpoint. Fixed and added corresponding tests

@minottic minottic merged commit 5fb8e00 into main Mar 25, 2025
1 check passed
@minottic minottic deleted the users-fix branch March 25, 2025 11:56
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

Successfully merging this pull request may close these issues.

2 participants