Cloudflare has deployed a new managed rule protecting customers against a remote code execution vulnerability that has been found in F5 BIG-IP’s web-based Traffic Management User Interface (TMUI). Any customer who has access to the Cloudflare Web Application Firewall (WAF) is automatically protected by the new rule (100315) that has a default action of BLOCK.
Initial testing on our network has shown that attackers started probing and trying to exploit this vulnerability starting on July 3.
F5 has published detailed instructions on how to patch affected devices, how to detect if attempts have been made to exploit the vulnerability on a device and instructions on how to add a custom mitigation. If you have an F5 device, read their detailed mitigations before reading the rest of this blog post.
The most popular probe URL appears to be /tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp
followed by /tmui/login.jsp/..;/tmui/util/getTabSet.jsp,
/tmui/login.jsp/..;/tmui/system/user/authproperties.jsp
and /tmui/login.jsp/..;/tmui/locallb/workspace/tmshCmd.jsp.
All contain the critical pattern ..; which is at the heart of the vulnerability.
On July 3 we saw O(1k) probes ramping to O(1m) yesterday. This is because simple test patterns have been added to scanning tools and small test programs made available by security researchers.
The Vulnerability
The vulnerability was disclosed by the vendor on July 1 and allows both authenticated and unauthenticated users to perform remote code execution (RCE).
Remote Code Execution is a type of code injection which provides the attacker the ability to run any arbitrary code on the target application, allowing them, in most scenarios such as this one, to gain privileged access and perform a full system take over.
The vulnerability affects the administration interface only (the management dashboard), not the underlying data plane provided by the application.
How to Mitigate
If updating the application is not possible, the attack can be mitigated by blocking all requests that match the following regular expression in the URL:
.*\.\.;.*
The above regular expression matches two dot characters (.) followed by a semicolon within any sequence of characters.
Customers who are using the Cloudflare WAF, that have their F5 BIG-IP TMUI interface proxied behind Cloudflare, are already automatically protected from this vulnerability with rule 100315
. If you wish to turn off the rule or change the default action:
Head over to the Cloudflare Firewall, then click on Managed Rules and head over to the advanced link under the Cloudflare Managed Rule set,
Search for rule ID:
100315
,Select any appropriate action or disable the rule.