#VU21372 Cross-site request forgery in pfsense


Published: 2021-06-17

Vulnerability identifier: #VU21372

Vulnerability risk: Medium

CVSSv3.1: 6.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2019-16667

CWE-ID: CWE-352

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
pfsense
Server applications / IDS/IPS systems, Firewalls and proxy servers

Vendor: Rubicon Communications

Description

The vulnerability allows a remote attacker to perform cross-site request forgery attacks.

The vulnerability exists due to insufficient validation of the HTTP request origin in diag_command.php script. A remote attacker can trick the victim to visit a specially crafted web page and and update "txtCommand" and "txtRecallBuffer" fields.

Successful exploitation of the vulnerability may allow an attacker to execute arbitrary OS commands on the system.

Example:












Mitigation
Install update from vendor's website.

Vulnerable software versions

pfsense: 2.3.0 - 2.4.4_3


External links
http://pastebin.com/TEJdu9LN
http://redmine.pfsense.org/issues/9799


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability