Skip to content

bugfix: Forged OCSP responses can pass signer authorization checks - #2555

Merged
zhuizhuhaomeng merged 1 commit into
masterfrom
codex-security/arp_619b9baf34ce152d81724b5d052cf2c8
Nov 28, 2026
Merged

zhuizhuhaomeng merged 1 commit into
masterfrom
codex-security/arp_619b9baf34ce152d81724b5d052cf2c8

Conversation

@zhuizhuhaomeng

Copy link
Copy Markdown
Contributor

OCSP validation now authenticates responders against the supplied issuer.

  • ngx_http_lua_ffi_ssl_validate_ocsp_response builds a local trust store from the expected issuer and permits intermediate trust anchors.
  • Removing OCSP_NOVERIFY makes OpenSSL enforce signer-chain and delegated OCSP-signing authorization before status handling.
  • A response-embedded self-signed or unrelated signer can no longer reach the CertID and GOOD success path.
  • Issuer-signed and properly delegated responses retain existing CertID, freshness, 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_59c9b12704eaf49e80504f8cce334e0e

  • Patch: arp_619b9baf34ce152d81724b5d052cf2c8

  • Base commit: a7733460bc1052e7eedb5240dfbc1cdb98527950

  • Patch SHA-256: a6906f4c044d9a99036cd00ab2fdadf1da46b0253c405fccc2e9c0ad0a0b1edb

@zhuizhuhaomeng
zhuizhuhaomeng marked this pull request as ready for review November 28, 2026 06:42
@zhuizhuhaomeng zhuizhuhaomeng changed the title [Codex Security] Forged OCSP responses can pass signer authorization checks bugfix: Forged OCSP responses can pass signer authorization checks Nov 28, 2026
@zhuizhuhaomeng
zhuizhuhaomeng merged commit 9c61e3d into master Nov 28, 2026
6 of 7 checks passed
@zhuizhuhaomeng
zhuizhuhaomeng deleted the codex-security/arp_619b9baf34ce152d81724b5d052cf2c8 branch November 28, 2026 07:19
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