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

fix: remove auth login endpoint #1007

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Jun 16, 2023

Description of change

When working on the auth service we created some endpoints that would be called by the console, but that the console was not ready to use yet at the time of implementation. When we did this we missed the admin guard on one of these routes, meaning it was callable by anyone. If this endpoint was called with a users ID it would return their user data (user ID, api-key and account tier). When we realized this was the case we closed the endpoint and deployed the fix to production immediately.

This was an oversight on our part, but we have verified with our telemetry data that this vulnerability has never been exploited, as the endpoint has never been called successfully outside of our testing. We have also reviewed our auth service for other vulnerabilities and ensured all sensitive endpoints are guarded and covered by integration tests.

This PR plugs the leak and the fix has already been deployed to production. This PR does not remove the entire session flow, since the auth service is being refactored to a tonic gRPC service on the https://github.com/shuttle-hq/shuttle/tree/feat/shuttle-runtime-scaling branch.

How has this been tested? (if applicable)

Tested with curl after the fix was deployed.

@oddgrd oddgrd merged commit b69e7ef into shuttle-hq:main Jun 16, 2023
AlphaKeks pushed a commit to AlphaKeks/shuttle that referenced this pull request Jun 20, 2023
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.

1 participant