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-ldap-name-collision — pfSense CE 2.9.0-DEVELOPMENT - High - Remote - Privilege leftover - LDAP admin name | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-ldap-name-collision
Authentication & AuthorizationPrivilege EscalationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLabs & Practice

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHubabraxas/pfsense-ldap-name-collision

pfsense-ldap-name-collision

pfSense CE 2.9.0-DEVELOPMENT - High - Remote - Privilege leftover - LDAP admin name

View Repository
25 days agoNot yet reviewed

Abraxas Labs - pfsense-ldap-name-collision

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-ldap-name-collision

pfsense-ldap-name-collision

Class: Privilege leftover Reach: Remote

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

getUserEntry($name) returns the local row on name match. isAdminUID() then sees uid 0 and isAllowedPage allows every page. passwordmg treats the session as local and writes that user's hash. uid == 0 is a loose compare.

IDno CVE yet
ClassPrivilege leftover
ReachRemote (authenticated WebGUI unless noted)
CWECWE-269
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 remote WebGUI login when authmode != Local; passwordmg is not warn-root
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:19010.

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

What an attacker can do

MethodSinkPrivilege
LDAP/RADIUS bind as local admin name, then POST passwordmggetUserEntry / isAdminUID / local_user_set_passwordIntegrity: Lab-proven: remote admin is isAdminUID; all pages including diag_command; passwordmg set the uid 0 hash. Stub-only remote names fail closed.
same leftoversame sinkRecon: Lab-proven: allow flag for every page.
same leftoversame sinkAvailability: None shown.

Requires: remote WebGUI login when authmode != Local; passwordmg is not warn-root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: remote WebGUI login when authmode != Local; passwordmg is not warn-root. 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

Stub-only remote names. usermanager itself is warn-root. SA-26_22 xmlrpc uid skip is a different bug.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:19010. Compose project pfsense-ldap-name-collision. Witness PFSENSE-LDAP-NAME-COLLISION-WITNESS. Loopback only: 127.0.0.1:19010. Compose project pfsense-ldap-name-collision. Witness PFSENSE-LDAP-NAME-COLLISION-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-LDAP-NAME-COLLISION control-isadmin=no control-diag=no control-hash-unchanged=yes trigger-isadmin=yes trigger-all-pages=yes trigger-hash-set=yes uid-loose-eq=yes PFSENSE-LDAP-NAME-COLLISION-WITNESS

Fix

Do not map a remote name onto a local uid 0 row. Use strict uid === '0' plus auth source. Make passwordmg warn-root.

References

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