Paul Scott

Paul Scott
on October 27, 2020

CVE spotlight: MobileIron RCE CVE-2020-15505

CVE spotlight: MobileIron RCE CVE-2020-15505

How did a security researcher infiltrate Facebook’s internal network?

Through the MDM server.

What’s that? An MDM server, or Mobile Device Management server, is used to manage employee mobile devices, install apps, certificates, modify settings, and wipe phones from a central location. MDM servers require employee phones to be able to reach the server for updates, meaning they risk being exposed over the internet.

In a time when more employees are working from home, organizations are looking for remote management products. An MDM’s ability to push code onto corporate devices makes them an excellent target for allowing threat actors to gain a foothold.

On April 3, 2020, Cheng-Da Tsai, also as known as Orange Tsai, the principal security researcher of DEVCORE and member of the CHROOT security group from Taiwan, reported three severe vulnerabilities in MobileIron’s MDM. MobileIron released product updates and disclosed the vulnerabilities publicly on June 15.

On September 12, Tsai published a write-up describing how they infiltrated Facebook’s internal network as part of Facebook’s bug bounty program. Tsai leveraged MobileIron vulnerability CVE-2020-15505 to access Facebook’s MobileIron MDM server and pivot to the internal network around July 2.

Here is a video demo. Wait until the end to see the non-interactive shell demonstrated.

Facebook must be looking at what failed in its patch management efforts. Perhaps, the patch management team didn’t realize the bug’s criticality, and it wasn’t correctly prioritized. Or, maybe, they didn’t realize the criticality of the asset. Either way, Facebook failed to patch the 9.8 CVSS score vulnerability before it was exploited.

The National Security Agency disclosed that MobileIron CVE-2020-15505 was one of the top 25 vulnerabilities exploited by Chinese state-sponsored hackers since the vulnerability was disclosed.

Facebook is lucky that Tsai got to them first.

As defenders, we should have an impact analysis for different assets we manage. Your MDM is a critical asset. It should be a high priority for your patch management team. You should also monitor the logs and network-related traffic for threats. Hook up your MDM to your SIEM and monitor it with an IDS to detect threats.

In Perch’s 2020 Threat Report, we warned about attackers using software vulnerabilities in remote management servers to deploy ransomware. Attacking the MDM fits perfectly into this vector.

CVE-2020-15505 vulnerability details

Based on the vulnerability description from MobileIron, we don’t have much to go on:

A remote code execution vulnerability in MobileIron Core & Connector versions 10.3.0.3 and earlier, 10.4.0.0, 10.4.0.1, 10.4.0.2, 10.4.0.3, 10.5.1.0, 10.5.2.0 and 10.6.0.0; and Sentry versions 9.7.2 and earlier, and 9.8.0; and Monitor and Reporting Database (RDB) version 2.0.0.1 and earlier that allows remote attackers to execute arbitrary code via unspecified vectors.

This leaves a blue teamer with lots of questions about how to detect both exploit attempts and successful exploitation.

After the bug bounty write-up, we got a few more details. The vulnerability exists in a Tomcat Web Service that deserializes user input with Hessian format. The endpoint is located on both:

  • User enrollment interface - https://mobileiron/mifs/services/
  • Management interface - https://mobileiron:8443/mics/services/

The deserialization can only be reached through the management interface, but most enterprises won’t have their management interface exposed to the internet.

A way to bypass the controls and access the vulnerable endpoint is required. So how are they blocking it, and how can we get around?

To block access to the Tomcat server, MobileIron relied on Apache rewrite rules:

RewriteRule ^/mifs/services/(.*)$ https://%{SERVER_NAME}:8443/mifs/services/$1 [R=307,L]
RewriteRule ^/mifs/services [F]

Tsai has previously published research on breaking parser logic in 2015 and at Black Hat USA 2018. This technique leverages inconsistencies between Apache and Tomcat to bypass the ACL control and access the vulnerable service. A POST HTTP request to a URL, like below, could be used to bypass controls:

  • https://mobileiron/mifs/.;/services/LogService

Flock vision

After Tsai’s bug bounty write-up, red team security researchers used the new details to create proof-of-concept (PoC) exploits for CVE-2020-15505. The proof of concept was first published on 9/13 with a final commit on 9/21.

Tsai’s write-up and the PoCs also allowed the blue team to write threat detection signatures and uncover the secrets that only attackers knew, balancing the field.

Perch’s first sighting of recon and exploitation for CVE-2020-15505 occurred on Sep 24, 2020, just 3 days after the final PoC commits were added to GitHub. Perch has evidence that multiple threat actors are exploiting these bugs to take over critical assets and infiltrate internal networks.

The first round of attacks was launched from an Azure instance and used the Nuclei scanning tool to recon possible victims.

Perch automates the deployment of Indicators of Compromise from free and paid threat intelligence providers on behalf of licensed customers. On October 12, Emerging Threats added a signature to detect exploit attempts against this vulnerability. If you’re running your own IDS, look at adding this signature:

alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET EXPLOIT Possible MobileIron RCE Attempt Inbound (CVE-2020-15505)"; flow:established,to_server; content:"|2f 2e 3b 2f|"; http_uri; fast_pattern; reference:url,blog.orange.tw/2020/09/how-i-hacked-facebook-gain-mobileiron-mdm-rce.html; reference:cve,2020-15505; classtype:attempted-admin; sid:2030997; rev:2; metadata:created_at 2020_10_12, cve CVE_2020_15505, former_category EXPLOIT, signature_severity Major, updated_at 2020_10_12;)

This signature is really focused on detecting the Apache RuleRewrite bypass and not the actual exploit of the attack. But, as noted, it’s unlikely that companies are leaving the management interface exposed. So, this rule is not covering attempts against directly exposed management interfaces.

MobileIron estimates its clients at 20,000. However, based on internet scans reviewed by Perch, only 5,000 patched and unpatched MobileIron servers were found, with more than 60 percent of them being patched.

If you’re using an MDM, make sure it’s current on patches. What are you doing to monitor your MDM? Contact Perch today for help in monitoring your MDM.


We'd love to hear your thoughts. Find us on Twitter, LinkedIn or write in to hello@perchsecurity.com

Next: Shifting gears: A cybersecurity journey for MSPs (Part 3)

Share this on:

Paul Scott

Paul Scott
on October 27, 2020


Perchy Subscribe to our blog