Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security]: Don't let falsy usernames slip through impersonation#33799

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chalasr merged 1 commit intosymfony:3.4fromj4nr6n:impersonation_bug
Oct 3, 2019
Merged

[Security]: Don't let falsy usernames slip through impersonation#33799

chalasr merged 1 commit intosymfony:3.4fromj4nr6n:impersonation_bug
Oct 3, 2019

Conversation

@j4nr6n
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

When you try to impersonate users with a falsy username,SwitchUserListener::handle() wouldreturn; and impersonation would fail.

I'm using a third party OAuth provider that allows users to change their usernames with no guaranteed protection against re-use. To overcome that issue, I implementedUserLoaderInterface::loadUserByUsername() and query by aproviderId.

After loading development fixtures, One user has0 as it'sproviderId.

@j4nr6nj4nr6n changed the title[Security]: Don't let falsy usernames slip through[Security]: Don't let falsy usernames slip through impersonationOct 1, 2019
@chalasrchalasr added this to the3.4 milestoneOct 2, 2019
@chalasr
Copy link
Member

Thank you@j4nr6n.

chalasr added a commit that referenced this pull requestOct 3, 2019
…nation (j4nr6n)This PR was merged into the 3.4 branch.Discussion----------[Security]: Don't let falsy usernames slip through impersonation| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |When you try to impersonate users with a falsy username, `SwitchUserListener::handle()` would `return;` and impersonation would fail.I'm using a third party OAuth provider that allows users to change their usernames with no guaranteed protection against re-use. To overcome that issue, I implemented `UserLoaderInterface::loadUserByUsername()` and query by a `providerId`.After loading development fixtures, One user has `0` as it's `providerId`.Commits-------64aecab Don't let falsey usernames slip through
@chalasrchalasr merged commit64aecab intosymfony:3.4Oct 3, 2019
@j4nr6nj4nr6n deleted the impersonation_bug branchOctober 3, 2019 16:05
This was referencedOct 7, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@maxheliasmaxheliasmaxhelias approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

6 participants

@j4nr6n@chalasr@wouterj@xabbuh@maxhelias@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp