Skip to content

Fix #50713: openssl_pkcs7_verify() may ignore untrusted CAs #12499

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

Closed
wants to merge 1 commit into from

Conversation

bukka
Copy link
Member

@bukka bukka commented Oct 23, 2023

The signers were not correctly retrieved if additional (untrusted) certs were used as they were not used for retrieving the signers. The main part of this work was to create a properly verified certs tests. The sign operation does not include the cert in envelope so it is passed explicitly (main use case for untrusted certs). Before the function would return -1 and empty signers file. This is now fixed.

@bukka bukka force-pushed the openssl_pkcs7_verify_signers_certs branch from cfbb49e to 415507d Compare November 17, 2023 18:03
@bukka bukka changed the base branch from PHP-8.1 to PHP-8.2 November 17, 2023 19:38
@bukka bukka closed this in f90b404 Nov 17, 2023
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