Project

General

Profile

Actions

Bug #16312

closed

``sshguard`` does not trigger for GUI logins from usernames containing unexpected characters

Added by Jim Pingle 6 months ago. Updated 28 days ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
User Manager / Privileges
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
25.11
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

We currently patch the sshguard port to match pfSense login messages like so:

.+": webConfigurator authentication error for user '"{WORD}"' from: " { return PFSENSE_AUTH_FAIL; }

However, sshguard defines WORD as:

WORD        [a-zA-Z0-9][-_a-zA-Z0-9]+

As a consequence, if the username contains a character not in that list, such as a period (.) in a valid username like first.last, then sshguard would not trigger for a login failure message involving that account.

The login message format should be changed to use a different pattern such as .+, .*, or [^ ]


Files

16312_16314.patch (2.18 KB) 16312_16314.patch Jim Pingle, 11/11/2025 06:18 PM

Related issues

Blocks Bug #16314: GUI login events from usernames containing special characters or long strings can cause ambiguous or confusing log messagesResolvedJim Pingle

Actions
Actions

Also available in: Atom PDF