Skip to content

Add PermitRootLogin prohibit-password and forced-commands-only#1111

Open
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:pr-permit-root-login
Open

Add PermitRootLogin prohibit-password and forced-commands-only#1111
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:pr-permit-root-login

Conversation

@stenslae

Copy link
Copy Markdown
Member

Expanded PermitRootLogin configuration to fully support OpenSSH settings prohibit-password (including legacy without-password) and forced-commands-only. Added a constant time mitigation for invalid usernames and added logic that gates password verification after policy enforcement. Also added an explicit null-termination check on user-provided passwords and changed DefaultUserAuthTypes to 0 instead of WS_BAD_ARGUMENT.

Added additional test coverage for this new feature.

@stenslae stenslae self-assigned this Jul 20, 2026

@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 #1111

Scan targets checked: wolfssh-bugs, 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 apps/wolfsshd/auth.c Outdated
Comment thread apps/wolfsshd/auth.c Outdated
@stenslae
stenslae force-pushed the pr-permit-root-login branch 3 times, most recently from 9e1bbd9 to 71e1e28 Compare July 21, 2026 16:18

@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 #1111

Scan targets checked: wolfssh-bugs, wolfssh-src

No new issues found in the changed files. ✅

@stenslae stenslae assigned wolfSSL-Bot and unassigned stenslae Jul 21, 2026
…y modes

Update test keys for authentication testing
@stenslae
stenslae force-pushed the pr-permit-root-login branch from 71e1e28 to 9937fff Compare July 21, 2026 17:41
@stenslae

stenslae commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

Rebased onto latest master, which added a72b944 (roots PermitRootLogin on uid 0). Extracted into a shared IsRootUser() and pointed my prohibit-password / forced-commands-only checks at it too.

Also dropped my fake-crypt timing mitigation for invalid users, will make a dedicated PR for the timing oracle mitigations.

@stenslae stenslae assigned stenslae and unassigned wolfSSL-Bot Jul 21, 2026

@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 #1111

Scan targets checked: wolfssh-bugs, wolfssh-src

No new issues found in the changed files. ✅

@stenslae stenslae assigned wolfSSL-Bot and unassigned stenslae Jul 21, 2026
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.

3 participants