{"vuid":"VU#290915","idnumber":"290915","name":"F5 BIG-IP contains multiple vulnerabilities including unauthenticated remote command execution","keywords":null,"overview":"### Overview\r\nF5 BIG-IP provides a Traffic Management User Interface (TMUI), also referred to as the Configuration utility, that has multiple vulnerabilities including a remotely exploitable [command injection](https://cwe.mitre.org/data/definitions/74.html) vulnerability that can be used to execute arbitrary commands and subsequently take control of a vulnerable system.\r\n\r\n### Description\r\nF5 BIG-IP devices provide load-balancing capability to application services such as HTTP and DNS. The F5 BIG-IP TMUI management web interface improperly neutralizes untrusted user input and can be abused by unauthenticated remote attackers to perform malicious activities such as cross-site scripting (XSS), cross-site request forgery (CSRF), and command injection [CWE-74](https://cwe.mitre.org/data/definitions/74.html). F5 has also announced that BIG-IP devices do not properly enforce access controls to sensitive configuration files that be read and overwritten by an authenticated user via Secure Copy (SCP). The vulnerability identified by CVE-2020-0592 can be abused to achieve arbitrary code execution on the target device with root privileges.\r\n\r\nUnderlying causes and factors in these vulnerabilities include:\r\n\r\n*  Improper configuration and a lack of identify checks, see recent article from NCC Group. [Understanding the root cause of F5 Networks K52145254: TMUI RCE vulnerability CVE-2020-5902](https://research.nccgroup.com/2020/07/12/understanding-the-root-cause-of-f5-networks-k52145254-tmui-rce-vulnerability-cve-2020-5902/)\r\n*  The TMUI fails to enforce proper authentication and authorization, see [OWASP Recommendations](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html)\r\n* The TMUI web interface does not normalize user's input to prevent both XSS and CSRF, allowing a [\"Deadly Combinations of XSS and CSRF\"](https://owasp.org/www-pdf-archive/OTD2011-SK.pdf)\r\n* Lack of role-based access checks allows for for unexpected file access, see [Role-Based Access Control Models](https://csrc.nist.gov/CSRC/media/Projects/Role-Based-Access-Control/documents/sandhu96.pdf)\r\n\r\nF5 recommends that the TMUI web interface should be accessible only from a secure or an out-of-band network and not directly from the Internet ([K13092](https://support.f5.com/csp/article/K13092)). However, many installations, as observed by [Bad Packets](https://badpackets.net/over-3000-f5-big-ip-endpoints-vulnerable-to-cve-2020-5902/), do not seem to follow this recommendation.\r\n\r\n### Impact\r\nAn unauthenticated attacker with network access to the TMUI may be able to execute arbitrary system commands, create or delete files, disable services, and subsequently execute arbitrary code with high privileges such as root. An authenticated user is also be able to perform unexpected activities such as changing configuration files on a vulnerable device.\r\n\r\n### Solution\r\n#### Apply updates\r\nF5 has provided updated software for the several impacted versions of BIG-IP devices.  Note that BIG-IP appliances as well as virtual instances are also vulnerable as identified by F5 advisories. It is highly recommended that you upgrade to the latest secure and stable software provided by F5. These updates are essential to your device's security, even if the TMUI is not accessible over the Internet. The upgrade reduces the risk to your device being compromised using CSRF or XSS attacks.\r\n\r\n#### Workarounds\r\nIn many cases, an attack against BIG-IP's recent vulnerabilities require access to TMUI.  Blocking or disabling access to TMUI from untrusted networks is highly recommended. F5 has also provided multiple temporary workaround options in their advisory.\r\n\r\n### Acknowledgements\r\nSeveral of these vulnerabilities were reported by Mikhail Klyuchnikov of Positive Technologies, who worked with F5 on a coordinated disclosure.\r\n\r\nThis document was written by Vijay Sarvepalli.","clean_desc":null,"impact":null,"resolution":null,"workarounds":null,"sysaffected":null,"thanks":null,"author":null,"public":["https://support.f5.com/csp/article/K52145254","https://support.f5.com/csp/article/K43638305","https://support.f5.com/csp/article/K31301245","https://support.f5.com/csp/article/K07051153","https://support.f5.com/csp/article/K82518062","https://support.f5.com/csp/article/K00091341","https://support.f5.com/csp/article/K33023560","https://github.com/yassineaboukir/CVE-2020-5902","https://research.nccgroup.com/2020/07/12/understanding-the-root-cause-of-f5-networks-k52145254-tmui-rce-vulnerability-cve-2020-5902/"],"cveids":["CVE-2020-5908","CVE-2020-5907","CVE-2020-5904","CVE-2020-5902","CVE-2020-5903","CVE-2020-5905","CVE-2020-5906"],"certadvisory":null,"uscerttechnicalalert":null,"datecreated":"2020-07-08T20:03:28.941046Z","publicdate":"2020-06-30T00:00:00Z","datefirstpublished":"2020-07-08T20:03:28.955730Z","dateupdated":"2020-07-13T14:00:54.190404Z","revision":2,"vrda_d1_directreport":null,"vrda_d1_population":null,"vrda_d1_impact":null,"cam_widelyknown":null,"cam_exploitation":null,"cam_internetinfrastructure":null,"cam_population":null,"cam_impact":null,"cam_easeofexploitation":null,"cam_attackeraccessrequired":null,"cam_scorecurrent":null,"cam_scorecurrentwidelyknown":null,"cam_scorecurrentwidelyknownexploited":null,"ipprotocol":null,"cvss_accessvector":null,"cvss_accesscomplexity":null,"cvss_authentication":null,"cvss_confidentialityimpact":null,"cvss_integrityimpact":null,"cvss_availabilityimpact":null,"cvss_exploitablity":null,"cvss_remediationlevel":null,"cvss_reportconfidence":null,"cvss_collateraldamagepotential":null,"cvss_targetdistribution":null,"cvss_securityrequirementscr":null,"cvss_securityrequirementsir":null,"cvss_securityrequirementsar":null,"cvss_basescore":null,"cvss_basevector":null,"cvss_temporalscore":null,"cvss_environmentalscore":null,"cvss_environmentalvector":null,"metric":null,"vulnote":12}