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-voucher-expire-sqli — pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - SQLi - voucher_expire WHERE | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-voucher-expire-sqli
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLabs & Practice
GitHubabraxas/pfsense-voucher-expire-sqli

pfsense-voucher-expire-sqli

pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - SQLi - voucher_expire WHERE

View Repository
124 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-voucher-expire-sqli

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-voucher-expire-sqli

pfsense-voucher-expire-sqli

Class: SQLi Reach: Remote

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

voucher.inc captiveportal_read_db("WHERE username = '{$voucher}'") then first-row sessionid into captiveportal_remove_entries. Unauth login INSERT uses SQLite3::escapeString.

IDno CVE yet
ClassSQLi
ReachRemote (authenticated WebGUI unless noted)
CWECWE-89
CVSSMedium: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
ProductpfSense CE
Affected2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9)
AuthWebGUI session with page-status-captiveportal-expire / page-services-captiveportal-vouchers
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:19280.

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

What an attacker can do

MethodSinkPrivilege
POST voucher expire tokencaptiveportal_read_db WHERE username = '{$voucher}'Integrity: Lab-proven: UNION selected another sessionid and stacked-UPDATE rewrote that row. CONTROL expire only deleted A. Unauth login path stayed escaped.
same leftoversame sinkRecon: Inferred: UNION can read other session columns from captiveportal{zone}.db.
same leftoversame sinkAvailability: Lab-proven: disconnect of the injected first row; can delete/rewrite another session on that zone DB.

Requires: page-status-captiveportal-expire / page-services-captiveportal-vouchers. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: page-status-captiveportal-expire / page-services-captiveportal-vouchers. 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

Unauth login escape. voucher_auth still escapeshellarg. No shell. No other-zone DB. No GUI cookie.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:19280. Compose project pfsense-voucher-expire-sqli. Witness PFSENSE-VOUCHER-EXPIRE-SQLI-WITNESS. Loopback only: 127.0.0.1:19280. Compose project pfsense-voucher-expire-sqli. Witness PFSENSE-VOUCHER-EXPIRE-SQLI-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-VOUCHER-EXPIRE-SQLI control-expire-only-a=yes control-login-escaped=yes trigger-rewrite-b=yes PFSENSE-VOUCHER-EXPIRE-SQLI-WITNESS

Fix

Bind parameters. Stop concatenating voucher into SQL.

References

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