cbcvebase.
CVE-2019-16667
published 2019-09-26

CVE-2019-16667: diag_command.php in pfSense 2.4.4-p3 allows CSRF via the txtCommand or txtRecallBuffer field, as demonstrated by executing OS commands. This occurs because…

PriorityP269high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
54.54%
98.9th percentile
diag_command.php in pfSense 2.4.4-p3 allows CSRF via the txtCommand or txtRecallBuffer field, as demonstrated by executing OS commands. This occurs because csrf_callback() produces a "CSRF token expired" error and a Try Again button when a CSRF token is missing.

Affected

1 ranges
VendorProductVersion rangeFixed in
netgatepfsense

Detection & IOCsextracted from sources · hover to see the quote

path/diag_command.php
  • Monitor HTTP POST requests to /diag_command.php that are missing a valid CSRF token (i.e., requests where the CSRF token field is absent or tampered), especially those containing shell metacharacters or pipe-chained commands in the txtCommand or txtRecallBuffer parameters.
  • The exploit's two-stage flow produces a 'CSRF token expired' intermediate response followed by a second POST (Try Again button click) that executes the payload. Correlate two rapid sequential POSTs to /diag_command.php from the same session as a high-fidelity indicator.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.