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-dyndns-cache-path — pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - File write - DynDNS cache path | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-dyndns-cache-path
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingPapers & ResearchLabs & Practice
GitHubabraxas/pfsense-dyndns-cache-path

pfsense-dyndns-cache-path

pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - File write - DynDNS cache path

View Repository
84 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-dyndns-cache-path

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-dyndns-cache-path

pfsense-dyndns-cache-path

Class: File write Reach: Remote

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

Custom host skips is_domain(). updatedns builds the cache path as /conf/dyndns_{if}{type} plus escapeshellarg($FQDN) plus {id}.cache. Quotes are filename bytes; / still splits the path. Content is IP|epoch, not a shell.

IDno CVE yet
ClassFile write
ReachRemote (authenticated WebGUI unless noted)
CWECWE-22
CVSSMedium: 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
ProductpfSense CE
Affected2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9)
AuthWebGUI session with page-services-dynamicdnsclient
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:19270.

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

What an attacker can do

MethodSinkPrivilege
POST services_dyndns_edit.php custom hostname with /file_put_contents cache path using escapeshellarg($FQDN)Integrity: Lab-proven: hostname with / wrote IP
same leftoversame sinkRecon: None. Content is IP
same leftoversame sinkAvailability: Inferred: overwrite a file whose name matches the quoted suffix.

Requires: page-services-dynamicdnsclient. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: page-services-dynamicdnsclient. 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. mwexec of FQDN. cron/php exec of *.cache. Non-Custom dyndns rejects that host.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:19270. Compose project pfsense-dyndns-cache-path. Witness PFSENSE-DYNDNS-CACHE-PATH-WITNESS. Loopback only: 127.0.0.1:19270. Compose project pfsense-dyndns-cache-path. Witness PFSENSE-DYNDNS-CACHE-PATH-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-DYNDNS-CACHE-PATH control-under-conf=yes trigger-outside-conf=yes PFSENSE-DYNDNS-CACHE-PATH-WITNESS

Fix

Do not use escapeshellarg as a filename. basename / is_domain the host.

References

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