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

[Security] Ensure DocumentUserProvider::refreshUser() uses id #56

Merged
merged 2 commits into from Nov 16, 2011
Merged

[Security] Ensure DocumentUserProvider::refreshUser() uses id #56

merged 2 commits into from Nov 16, 2011

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Nov 16, 2011

This is a port of @fabpot's security fix for the Doctrine Bridge: http://symfony.com/blog/security-release-symfony-2-0-6

Fixes a security vulnerability in the DocumentUserProvider where a user might be refreshed by username, which could have been altered during form binding and failed validation. Apart from this fix, it's wise to clone the managed user object before using it in a form if it is also being tracked in security context. Furthermore, you should be careful not to allow document identifiers to be modified by untrusted forms.

See:

 * http://symfony.com/blog/security-release-symfony-2-0-6
 * symfony/symfony@9d2ab9c
stof added a commit that referenced this pull request Nov 16, 2011
[Security] Ensure DocumentUserProvider::refreshUser() uses id
@stof stof merged commit bca3e54 into doctrine:2.0 Nov 16, 2011
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.

None yet

2 participants