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-ovpn-learn-cn — pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - OpenVPN learn-address CN | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-ovpn-learn-cn
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRemote Access ToolLabs & Practice
GitHubabraxas/pfsense-ovpn-learn-cn

pfsense-ovpn-learn-cn

pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - OpenVPN learn-address CN

View Repository
54 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-ovpn-learn-cn

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-ovpn-learn-cn

pfsense-ovpn-learn-cn

Class: RCE Reach: Remote

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

openvpn.learn-address.sh interpolates CN into su -m unbound -c "... local_data ${CN}.${DOMAIN} ..." unquoted. Gated on unbound/regovpnclients. A CN without a shell char still plants local-data.

IDno CVE yet
ClassRCE
ReachRemote (authenticated WebGUI unless noted)
CWECWE-78
CVSSHigh: 8.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
ProductpfSense CE
Affected2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9)
AuthWebGUI session with OpenVPN cert client CN when Unbound Register OpenVPN clients is on
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:19080.

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

What an attacker can do

MethodSinkPrivilege
OpenVPN learn-address with a hostile CNopenvpn.learn-address.sh su -m unbound -c ... ${CN}Integrity: Lab-proven: CN $(w) ran extra w as the su -c string. CONTROL also planted unsanitized local-data.
same leftoversame sinkRecon: Inferred: commands as unbound.
same leftoversame sinkAvailability: Inferred: poison resolver local-data.

Requires: OpenVPN cert client CN when Unbound Register OpenVPN clients is on. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: OpenVPN cert client CN when Unbound Register OpenVPN clients is on. 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

Off unless Register OpenVPN clients is enabled. Local CN charset may still allow some chars.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:19080. Compose project pfsense-ovpn-learn-cn. Witness PFSENSE-OVPN-LEARN-CN-WITNESS. Loopback only: 127.0.0.1:19080. Compose project pfsense-ovpn-learn-cn. Witness PFSENSE-OVPN-LEARN-CN-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-OVPN-LEARN-CN control-local-data=yes control-no-witness=yes m24-local-data-plant=yes trigger-exec=yes PFSENSE-OVPN-LEARN-CN-WITNESS

Fix

Quote CN. Reject shell metacharacters. Keep local-data through unbound-control without a shell.

References

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