Skip to content

Fenrir High Fixes#250

Open
aidankeefe2022 wants to merge 1 commit into
wolfSSL:mainfrom
aidankeefe2022:fenrir-fixes
Open

Fenrir High Fixes#250
aidankeefe2022 wants to merge 1 commit into
wolfSSL:mainfrom
aidankeefe2022:fenrir-fixes

Conversation

@aidankeefe2022

@aidankeefe2022 aidankeefe2022 commented Jun 11, 2026

Copy link
Copy Markdown
Member

F-4829 fixed possibility of overflow https://fenrir.wolfssl.com/finding/4829

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #250

Scan targets checked: wolfclu-bugs, wolfclu-src

No new issues found in the changed files. ✅

@cconlon cconlon requested a review from Copilot June 11, 2026 21:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Addresses two Fenrir findings by hardening certificate signing behavior and preventing integer overflow in SCGI request parsing.

Changes:

  • Prevents potential integer overflow when validating SCGI contentLength against the remaining buffer space.
  • Avoids silent success when certificate signing cannot proceed due to an invalid/unsupported signing method.
  • Adjusts CA key handling in wolfCLU_CertSignSetCA, including freeing previous keys and handling unsupported key types.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/x509/clu_x509_sign.c Tightens signing failure handling and updates CA key ownership/freeing behavior.
src/tools/clu_scgi.c Fixes potential overflow in SCGI content-length bounds checking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/x509/clu_x509_sign.c
Comment thread src/x509/clu_x509_sign.c Outdated
Comment thread src/tools/clu_scgi.c Outdated

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #250

Scan targets checked: wolfclu-bugs, wolfclu-src

No new issues found in the changed files. ✅

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread tests/ocsp-scgi/ocsp-scgi-test.py Outdated
Comment thread tests/ocsp-scgi/ocsp-scgi-test.py
Comment thread src/tools/clu_scgi.c Outdated
Comment thread src/tools/clu_scgi.c Outdated
removed fix in x509_sign.c due to upcomming mldsa implimentaion

added test to make content len is caught

added gaurd at top of function so we can be sure all checks will catch bad behavior

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #250

Scan targets checked: wolfclu-bugs, wolfclu-src

No new issues found in the changed files. ✅

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.

4 participants