Skip to content

[Security] Fix division by zero #46309

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
May 11, 2022
Merged

Conversation

tvlooy
Copy link
Contributor

@tvlooy tvlooy commented May 10, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

Given: CSRF token abc.def.ghi was returned
When: I change the value of this token in my browser to abc..ghi
Then: the key becomes '' and the xor that is called in denormalize results in a division by zero and http 500

@tvlooy tvlooy requested review from wouterj and chalasr as code owners May 10, 2022 14:24
@carsonbot carsonbot added this to the 5.4 milestone May 10, 2022
@carsonbot carsonbot changed the title Fix division by zero [Security] Fix division by zero May 10, 2022
@tvlooy tvlooy force-pushed the div_by_zero_in_xor branch from dfcea36 to 8b3d42f Compare May 11, 2022 14:27
@chalasr chalasr force-pushed the div_by_zero_in_xor branch from c54eda3 to 5028662 Compare May 11, 2022 16:56
@chalasr
Copy link
Member

chalasr commented May 11, 2022

Good catch, thanks @tvlooy.

@chalasr chalasr merged commit 5584221 into symfony:5.4 May 11, 2022
@fabpot fabpot mentioned this pull request May 14, 2022
This was referenced May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants