{"vuid":"VU#213092","idnumber":"213092","name":"Pulse Connect Secure contains a use-after-free vulnerability","keywords":null,"overview":"### Overview\r\nPulse Connect Secure (PCS) gateway contains a use-after-free vulnerability that can allow an unauthenticated remote attacker to execute arbitrary code.\r\n\r\n### Description\r\n**CVE-2021-22893**\r\n\r\nA use-after-free vulnerability that can be reached via a license server handling endpoint may allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable Pulse Connect Secure gateway system. \r\n\r\nEvery system that is running PCS 9.0R3 or higher or 9.1R1 through 9.2R11.3 is affected. Having the license server configuration enabled is **NOT** a prerequisite to being vulnerable. The vulnerable endpoints are present regardless of whether the system is an actual license server or not.\r\n\r\nThis vulnerability is being [exploited in the wild](https://www.fireeye.com/blog/threat-research/2021/04/suspected-apt-actors-leverage-bypass-techniques-pulse-secure-zero-day.html).\r\n\r\n### Impact\r\nBy making a crafted request to a vulnerable Pulse Connect Secure system, an unauthenticated remote attacker may be able to execute arbitrary code on the gateway with root privileges.\r\n\r\n\r\n### Solution\r\n\r\n#### Apply an update\r\nThis vulnerability and others are [addressed](https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44784/) in Pulse Connect Secure 9.1R11.4.\r\n\r\n#### Apply a workaround\r\n\r\nIf you are not using the features that the following workaround disables, we recommend applying the XML workaround even on systems that have been upgraded to 9.1R11.4 to reduce attack surface. Pulse Secure has published a [Workaround-2104.xml](https://my.pulsesecure.net/) file that contains mitigations to protect against this and other vulnerabilities.  [Importing this XML workaround](https://docs.pulsesecure.net/WebHelp/PCS/9.1R1/AG/Content/PCS/PCS_AdminGuide_9.1R1/Importing_an_XML_Configuration.htm) will activate the protections immediately and does not require any downtime for the VPN system. This workaround will block requests that match the following URI patterns:  \r\n```\r\n^/+dana/+meeting\r\n^/+dana/+fb/+smb\r\n^/+dana-cached/+fb/+smb\r\n^/+dana-ws/+namedusers\r\n^/+dana-ws/+metric\r\n```\r\n\r\nNote that installing this workaround will block the ability to use the following features:\r\n\r\n* Windows File Share Browser\r\n* Pulse Secure Collaboration\r\n* License Server\r\n\r\nInstead of using the workaround to protect a PCS that is being used as a license server, we recommend updating such systems to PCS 9.1R11.4. If this is not possible, restrict which IP addresses are allowed to communicate with the system.\r\n\r\n#### Run the PCS Integrity Assurance utility\r\n\r\nA PCS administrator should run the [PCS Integrity Assurance](https://kb.pulsesecure.net/articles/Pulse_Secure_Article/KB44755) utility to help determine if a system has evidence that it has been compromised. Please be aware of two limitations of this tool:\r\n\r\n1. Upon completion of the Integrity Assurance tool, the PCS device will automatically reboot.\r\n2. Because running the Integrity Assurance tool relies on the use of the administrative web interface of the PCS device itself, it is reasonable to assume that it may be possible for a compromised device to display misleading results.\r\n\r\n#### Enable Unauthenticated Request logging\r\n\r\nBy default, PCS devices do not log unauthenticated web requests. Additionally, the administrative interface for a PCS device will warn that: *Selecting this can quickly fill up User access log space in case of attack*.\r\n\r\nBecause this vulnerability is exploitable via an unauthenticated request to the PCS, evidence of exploitation may only be present if the \"Unauthenticated Requests\" logging option is enabled. Enable this feature in the PCS administrative web interface by visiting:\r\nSystem -> Log/Monitoring -> User Access -> Settings\r\nand enabling the \"Unauthenticated Requests\" option.\r\n\r\n#### Enable remote logging\r\n\r\nAttackers who have compromised a PCS device may delete on-device logs in the process. For this reason, [configure a remote Syslog server](https://kb.pulsesecure.net/articles/Pulse_Secure_Article/KB22227) to ensure that PCS log entries are not modified or deleted.\r\n\r\n\r\n### Acknowledgements\r\nThis vulnerability was publicly reported by Pulse Secure with additional details and context published by Fireye.\r\n\r\nThis document was written by Chuck Yarbrough and Will Dormann.","clean_desc":null,"impact":null,"resolution":null,"workarounds":null,"sysaffected":null,"thanks":null,"author":null,"public":["https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44784/","https://blog.pulsesecure.net/pulse-connect-secure-security-update/","https://www.fireeye.com/blog/threat-research/2021/04/suspected-apt-actors-leverage-bypass-techniques-pulse-secure-zero-day.html","https://www.bleepingcomputer.com/news/security/pulse-secure-vpn-zero-day-used-to-hack-defense-firms-govt-orgs/"],"cveids":["CVE-2021-22893"],"certadvisory":null,"uscerttechnicalalert":null,"datecreated":"2021-04-20T21:52:54.587118Z","publicdate":"2021-04-20T00:00:00Z","datefirstpublished":"2021-04-20T21:52:54.610886Z","dateupdated":"2021-05-19T13:05:47.983959Z","revision":13,"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":42}