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

Appearance settings

[Security/Core] require libsodium >= 1.0.14 #32169

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
Jun 25, 2019

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jun 25, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32166
License MIT
Doc PR -

@nicolas-grekas nicolas-grekas changed the title [Security/Core] cleanup Argon2-related code [Security/Core] require libsodium >= 1.0.14 Jun 25, 2019
@fabpot
Copy link
Member

fabpot commented Jun 25, 2019

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 4fed5d3 into symfony:4.3 Jun 25, 2019
fabpot added a commit that referenced this pull request Jun 25, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

[Security/Core] require libsodium >= 1.0.14

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32166
| License       | MIT
| Doc PR        | -

- bump libsodium to >=1.0.14
- Minimum opscost must be 3, as described in https://wiki.php.net/rfc/libsodium and in https://github.com/jedisct1/libsodium/releases/tag/1.0.15
- ParagonIE_Sodium_Compat [explicitly doesn't implement Argon2](https://github.com/paragonie/sodium_compat#features-excluded-from-this-polyfill), so it makes no sense to check for it.

Commits
-------

4fed5d3 [Security/Core] require libsodium >= 1.0.14
@fabpot fabpot mentioned this pull request Jun 26, 2019
@mbabker
Copy link
Contributor

mbabker commented Jun 26, 2019

@nicolas-grekas The checks for the sodium_compat library are actually needed because the library exposes the functions but has stubs that only throw Exceptions if neither ext/sodium or ext/libsodium are installed, #25412 for reference.

@nicolas-grekas
Copy link
Member Author

Seriously, wow.
I would not load the polyfill to ensure it's not here.
Instead let's use extensio_loaded('sodium') || extension_loaded('libsodium') as additional checks?

@mbabker
Copy link
Contributor

mbabker commented Jun 26, 2019

That seems fair, as long as it's not relying purely on the function checks you're probably OK.

nicolas-grekas added a commit that referenced this pull request Jun 26, 2019
…rekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Security/Core] work around sodium_compat issue

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

As reported by @mbabker in #32169
1.0.9 per https://github.com/jedisct1/libsodium/releases/tag/1.0.9

Commits
-------

df50685 [Security/Core] work around sodium_compat issue
@nicolas-grekas nicolas-grekas deleted the sec-argon branch July 4, 2019 14:15
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.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.