A significant security threat has emerged with the release of a proof-of-concept exploit code targeting vulnerabilities in Juniper SRX firewalls. These vulnerabilities, when combined, allow unauthenticated attackers to achieve remote code execution in Juniper’s JunOS on devices lacking necessary patches.
Furthermore, the vulnerabilities were exposed in Juniper’s EX switches and SRX firewalls, prompting the release of security patches a mere two weeks ago. These vulnerabilities were discovered within the PHP-based J-Web interface, a management tool used by administrators to configure and manage Juniper devices within their networks.
The attack vector leverages a specific unauthenticated request to upload arbitrary files via the J-Web interface, resulting in a loss of integrity within a specific portion of the file system. This vulnerability can potentially be chained with others, enabling attackers to remotely execute code on affected devices.
WatchTowr Labs, a cybersecurity research group, has taken the initiative to develop and release a proof-of-concept (PoC) exploit, chaining the vulnerabilities found in SRX firewalls, including a missing authentication flaw and a PHP external variable modification bug. By exploiting these vulnerabilities, unauthorized PHP file uploads are facilitated, and attackers can manipulate environment variables to execute malicious code.
Additionally, the experts at WatchTowr Labs anticipate that unpatched Juniper devices could become targets for widespread attacks in the near future, considering the simplicity of exploitation and the privileged network position of JunOS devices. They recommend administrators promptly apply Juniper’s security patches, upgrade to the latest JunOS release, or implement the suggested mitigation measures provided by the vendor.
The researchers emphasize that the potentially large-scale exploitation of these vulnerabilities underscores the urgency of securing affected devices by either patching or limiting access to the vulnerable J-Web interface. This incident highlights the ongoing risks of supply chain attacks and the need for swift action in response to vulnerabilities in critical networking equipment.