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
opnsense-wlan-wpa-line — OPNsense 26.7.6 - High - Remote - Config line injection - WLAN WPA identity | Kitploit
Tools/GitHubGitHub/abraxas/opnsense-wlan-wpa-line
Vulnerability AnalysisExploitationConfiguration AuditingWeb SecurityNetwork SecurityPenetration TestingLabs & Practice
GitHubabraxas/opnsense-wlan-wpa-line

opnsense-wlan-wpa-line

OPNsense 26.7.6 - High - Remote - Config line injection - WLAN WPA identity

View Repository
125 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 - opnsense-wlan-wpa-line

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  opnsense-wlan-wpa-line

opnsense-wlan-wpa-line

Class: Config line injection Reach: Remote

OPNsense core 26.7.6 (a842fe48) - opnsense.org

Leftover of GHSA-fq94. Wireless SSID got AllowNewlines=N. identity, passphrase, and RADIUS auth_server_shared_secret stayed bare TextField (newlines on by default) and dump into /var/etc/wpa_supplicant_*.conf and /var/etc/hostapd_*.conf. interfaces.inc interpolates identity="{identity}" into the wpa_supplicant stanza. Newline or quote break adds extra directives as root. Privilege is page-interfaces-wireless-edit, not page-all.

IDno CVE yet
ClassConfig line injection
ReachRemote (authenticated WebGUI)
CWECWE-93
CVSSHigh: 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
ProductOPNsense core (Deciso B.V.)
AffectedOPNsense core 26.7.6 (a842fe48c21288d11a422cb944678e8eb308becf) Wlan.xml identity / passphrase
AuthWebGUI session with page-interfaces-wireless-edit
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only

I pinned tag 26.7.6. The lab is a PHP gadget of pinned interfaces_wlan_configure, loopback HTTP on 127.0.0.1:18840. Identity CR/LF wrote extra # OPNSENSE-WLAN-WPA-LINE-WITNESS. SSID stayed one line.

What an attacker can do

MethodSinkPrivilege
identity CR/LFpin interfaces_wlan_configure extra directive in wpa_supplicant confIntegrity (lab-proven): extra # OPNSENSE-WLAN-WPA-LINE-WITNESS after identity. Lab: identity-newline=yes extra-directive=yes.
honor of extra network / ssid / ap_scan / ctrl_interfacewpa_supplicant / hostapd as rootIntegrity (inferred): extra daemon directives. wpa_supplicant not started in the gadget.
SSID CR/LFAllowNewlines=NNegative (lab-proven): SSID stayed one line. ssid-control=single-line.
passphrase / RADIUS secret CR/LFhostapd_*.conf / wpa_supplicantIntegrity (inferred): same class. Gadget ran the identity path.
invalid extra directivewireless daemonsAvailability (inferred): hostapd / wpa_supplicant can fail to start.
this pathnoneRecon: no extra read of config.xml secrets.

Lab-proven vs inferred: identity newline extra directive and SSID single-line control are lab SUCCESS. hostapd and live daemon apply are inferred.

Requires: page-interfaces-wireless-edit. POST /api/interfaces/wireless_settings/*. Not page-all. CSRF token. Browser <input type="text"> will not keep CR/LF; a direct POST from that session will.

Adjacent surface that stays closed

SurfaceLab
SSID newlineconstrained (ssid-control=single-line)
Unauthclosed
page-all wireless adminintended radio config; leftover is extra directives a delegated editor was not meant to mint
CVE-2025-50989 bridge span cmdinow configdRun with no request token
WEP keysescapeshellarg into ifconfig

No unauth. SSID already rejects CR/LF. Full admin already has root by design.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:18840. Compose project opnsense-wlan-wpa-line. Witness OPNSENSE-WLAN-WPA-LINE-WITNESS. Last line:

SUCCESS opnsense-wlan-wpa-line identity-newline=yes extra-directive=yes ssid-control=single-line OPNSENSE-WLAN-WPA-LINE-WITNESS

The fix

Set AllowNewlines=N on identity, passphrase, and RADIUS secrets, same as SSID. Strip CR/LF and quotes inside interfaces_wlan_configure so every caller is covered. Extra hostapd / wpa_supplicant directives belong behind page-all.

References

  • github.com/opnsense/core a842fe48c21288d11a422cb944678e8eb308becf
  • Wlan.xml
  • interfaces.inc interfaces_wlan_configure
  • Named fields (not this leftover): GHSA-fq94 timeserver / other GUI text; SSID AllowNewlines=N
  • CWE-93
Download Tool