Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
pfsense-sshguard-crlf — pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - sshguard THRESHOLD CRLF | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-sshguard-crlf
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRed TeamingRemote Access Trojan
GitHubabraxas/pfsense-sshguard-crlf

pfsense-sshguard-crlf

pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - sshguard THRESHOLD CRLF

View Repository
25 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Abraxas Labs - pfsense-sshguard-crlf

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-sshguard-crlf

pfsense-sshguard-crlf

Class: RCE Reach: Remote

pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org

sshguard_threshold / blocktime / detection_time are not is_numericint. system_sshguard_start writes THRESHOLD= raw. Extra BACKEND= is the executable sshguard runs. Save restarts sshguard. Sibling class of SA-26_06, different file.

IDno CVE yet
ClassRCE
ReachRemote (authenticated WebGUI unless noted)
CWECWE-78
CVSSHigh: 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
ProductpfSense CE
Affected2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9)
AuthWebGUI session with page-system-advanced-admin
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only

I pinned public master 9363ac5. The lab is a PHP gadget of the pinned sink, loopback HTTP on 127.0.0.1:18950.

Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers

What an attacker can do

MethodSinkPrivilege
POST system_advanced_admin.php sshguard_thresholdsyslog.inc system_sshguard_start THRESHOLD= then sshguard BACKEND execIntegrity: Lab-proven: extra BACKEND= last-wins; stub sourced sshguard.conf and exec'd that backend, which wrote the witness.
same leftoversame sinkRecon: Inferred: backend runs as root.
same leftoversame sinkAvailability: Inferred: replace sshguard firewall backend.

Requires: page-system-advanced-admin. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: page-system-advanced-admin. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Adjacent surface that stays closed

Whitelist is is_subnet. SA-25_09 is a different sshguard bug.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:18950. Compose project pfsense-sshguard-crlf. Witness PFSENSE-SSHGUARD-CRLF-WITNESS. Loopback only: 127.0.0.1:18950. Compose project pfsense-sshguard-crlf. Witness PFSENSE-SSHGUARD-CRLF-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-SSHGUARD-CRLF control-single-backend=yes trigger-backend-exec=yes PFSENSE-SSHGUARD-CRLF-WITNESS

Fix

is_numericint the three sshguard fields. Reject CR/LF.

References

  • github.com/pfsense/pfsense 9363ac5b8651a1c7a333180425ce7719070f95f9
  • CWE-78
  • Series: https://abraxaslabs.tech/research/pfsense-ce-leftovers
Download Tool