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

Account fix #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rafaelklaessen
Copy link

Problem

The createAccount method on oauth/account/createAccount wouldn't actually check wether an account existed before creating the new one.

Implications

Because of this, everyone can change another's account data by simply making a request to oauth/account/createAccount with that person's username and different userdata.

Solution

I added an account exists check so that it first verifies that the account doesn't exist yet. If the account does exist, it doesn't create the new user.

Please note: this code isn't actually tested.

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