Cyber Security News

PfSense Stored XSS Vulnerability Leads To RCE Attacks, PoC Published

A critical security vulnerability has been discovered in pfSense version 2.5.2, potentially allowing attackers to execute arbitrary code on affected systems.

The flaw, identified as CVE-2024-46538, is a stored cross-site scripting (XSS) vulnerability that could be exploited to achieve remote code execution (RCE).

The vulnerability stems from insufficient input validation in the interfaces_groups_edit.php file, where user-supplied data is stored in the $pconfig variable without proper sanitization.

This allows malicious actors to inject and store arbitrary JavaScript code executed when an administrator views the affected page.

Build an in-house SOC or outsource SOC-as-a-Service -> Calculate Costs

Security researchers have published a proof-of-concept (PoC) exploit demonstrating how the vulnerability can be leveraged to gain unauthorized access and execute system commands. The attack scenario involves two stages:

1. An attacker with limited privileges (WebCfg – Interfaces: Groups: Edit) injects malicious JavaScript code into the interface group’s configuration.

2. When an administrator with higher privileges views the compromised page, the stored JavaScript executes, potentially leading to remote code execution via the diag_command.php endpoint.

The published PoC by EQST Lab includes a Python script that automates the exploitation process, allowing attackers to easily craft and inject malicious payloads. This development significantly increases the risk for pfSense users still running vulnerable versions.

Netgate, the company behind pfSense, has addressed this vulnerability in subsequent releases. Users are strongly advised to upgrade to pfSense CE 2.7.1 or pfSense Plus 23.09 or later versions to mitigate the risk.

This incident highlights the importance of proper input validation and output encoding in web applications, especially for security-critical systems like firewalls.

It also underscores the need for regular security audits and prompt patching to address newly discovered vulnerabilities.

Organizations using pfSense are urged to assess their exposure, apply the necessary updates, and review their firewall configurations for any signs of compromise.

Additionally, implementing defense-in-depth strategies, such as network segmentation and least privilege access, can help minimize the potential impact of such vulnerabilities.

As the security landscape evolves, staying vigilant and maintaining up-to-date systems remains crucial for protecting against emerging threats and vulnerabilities like CVE-2024-46538.

Run private, Real-time Malware Analysis in both Windows & Linux VMs. Get a 14-day free trial with ANY.RUN!

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

3 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

3 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

4 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

5 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

5 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

6 hours ago