Repository navigation
bugfix: Forged OCSP responses can pass signer authorization checks - #2555
Merged
zhuizhuhaomeng merged 1 commit intoNov 28, 2026
Merged
Conversation
zhuizhuhaomeng
marked this pull request as ready for review
November 28, 2026 06:42
zhuizhuhaomeng
deleted the
codex-security/arp_619b9baf34ce152d81724b5d052cf2c8
branch
November 28, 2026 07:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OCSP validation now authenticates responders against the supplied issuer.
ngx_http_lua_ffi_ssl_validate_ocsp_responsebuilds a local trust store from the expected issuer and permits intermediate trust anchors.OCSP_NOVERIFYmakes OpenSSL enforce signer-chain and delegated OCSP-signing authorization before status handling.GOODsuccess path.nextUpdate, error, and resource-cleanup behavior.Static Verification Checks
Signer authorization enforced (Passed) — ngx_http_lua_ssl_ocsp.c passes an issuer-backed trust store and zero bypass flags to OCSP_basic_verify, blocking unauthorized embedded signers.
Authorized responders preserved (Passed) — X509_V_FLAG_PARTIAL_CHAIN lets issuer-signed and properly delegated responders terminate at the supplied issuer, preserving legitimate OCSP validation.
Status checks preserved (Passed) — ngx_http_lua_ffi_ssl_validate_ocsp_response still requires matching CertID, GOOD status, freshness, and valid nextUpdate handling for legitimate responses.
Static assessment scope (Passed) — Static inspection of src/ngx_http_lua_ssl_ocsp.c was performed without runtime checks, establishing source-level closure of the attack path.
Finding:
acf_59c9b12704eaf49e80504f8cce334e0ePatch:
arp_619b9baf34ce152d81724b5d052cf2c8Base commit:
a7733460bc1052e7eedb5240dfbc1cdb98527950Patch SHA-256:
a6906f4c044d9a99036cd00ab2fdadf1da46b0253c405fccc2e9c0ad0a0b1edb