Skip to content
XSS Write-up Intermediate

“Not a Security Issue” in PFSense Firewall(Netgate)

The pfSense diagnostics tables page reads comment lines from alias table cache files and renders them into the admin dashboard without HTML encoding, so a comment containing a script tag executes as stored cross-site scripting. An attacker who can influence an alias table file could run JavaScript in an administrator's session.

medium.com

Published on medium.com

pfsense/pfsense: Main repository for pfSense

dark-haxor, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the comment lines read from the alias table file are concatenated into HTML and passed to a layout helper that does not HTML-encode its output.

Impact

JavaScript runs in the authenticated administration workspace, which could allow session token replay or redirecting administrators to phishing pages; the report also suggests an external alias list could poison the source for multiple administrators.

What the attacker needed

Ability to write to the alias table cache file; administrator opens the diagnostics tables page; administrator clicks to show table comments

The fix

The text says the issue was fixed, but the vendor refused to call it a vulnerability or issue an advisory.

How it was found

  1. Create an alias table and add an entry to it.
  2. Write a comment line containing a script tag into the table's cache file.
  3. Open the diagnostics tables page for that table.
  4. Click the link to show table comments, which triggers the script.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A firewall's admin page shows comments taken from a local file. The page puts those comments straight into the web page without cleaning them, so if a comment contains code, the browser runs it as if the admin had typed it. That lets someone run code inside the admin's logged-in session.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.