Skip to content

Add validation for accept request and reply#902

Merged
ejohnstown merged 1 commit intowolfSSL:masterfrom
padelsbach:request-validation
Apr 8, 2026
Merged

Add validation for accept request and reply#902
ejohnstown merged 1 commit intowolfSSL:masterfrom
padelsbach:request-validation

Conversation

@padelsbach
Copy link
Copy Markdown
Contributor

Fixes F-604

@padelsbach padelsbach marked this pull request as ready for review April 1, 2026 02:15
ejohnstown
ejohnstown previously approved these changes Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds stricter validation around SSH service negotiation messages to ensure that only the expected ssh-userauth service is accepted during the service request/accept phase (Fixes F-604).

Changes:

  • Validate incoming MSGID_SERVICE_REQUEST service name against ssh-userauth and disconnect when unsupported.
  • Validate incoming MSGID_SERVICE_ACCEPT service name against ssh-userauth and fail when unexpected.

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

Comment thread src/internal.c Outdated
Comment thread src/internal.c Outdated
Comment thread src/internal.c Outdated
Copy link
Copy Markdown

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

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #902

Scan targets checked: wolfssh-bugs, wolfssh-compliance, wolfssh-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/internal.c
@ejohnstown ejohnstown self-requested a review April 6, 2026 21:16
@padelsbach padelsbach force-pushed the request-validation branch from e69bdab to ffa646a Compare April 7, 2026 15:52
@ejohnstown ejohnstown merged commit 3075b72 into wolfSSL:master Apr 8, 2026
131 checks passed
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