Skip to content
CORS Write-up Intermediate

Weak CORS Configuration: CVE-2018-15655

The SureMDM mobile device management system had a permissive CORS policy and a weak Silverlight access policy that allowed cross-origin requests, plus an access control flaw where session validation was done in client-side JavaScript, exposing over 100 API endpoints. An attacker could combine these with CSRF to perform sensitive actions such as retrieving call logs and SMS logs, and an unauthenticated SSRF endpoint allowed reading local files including configuration files with SQL credentials.

research.digitalinterruption.com

Published on research.digitalinterruption.com

A few months ago during a penetration test, we stumbled upon a Windows based mobile device management [MDM] system named SureMDM. MDM systems aim to provide an efficient means of managing a large number of mobile devices, ensuring that they are all configured to the same standard and kept secure.

The author, on research.digitalinterruption.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a combination of overly permissive cross-origin policies, client-side-only authentication checks, and an unvalidated URL parameter in a server-side request handler.

Impact

An attacker could perform actions as a victim via CSRF, exfiltrate sensitive data such as call logs and SMS logs, enumerate registered email addresses, and read local files including configuration files with SQL credentials.

What the attacker needed

Victim visits attacker-controlled site; victim is logged into SureMDM; attacker knows a valid email address; network access to the SureMDM instance

The fix

The vendor issued a patch and began reaching out to customers to push it.

How it was found

  1. Host a page that fetches a URL from a query parameter and displays the response.
  2. Load the page with a URL pointing to the SureMDM system and observe that the cross-origin request succeeds.
  3. Access the Master.html page without authentication and view the markup because the redirect is done in JavaScript.
  4. Extract API endpoint links from the markup.
  5. Send a GET request to the register API with a base64-encoded email and the ApiKey header to check if an account exists.
  6. Request the DownloadUrlResponse.ashx endpoint with a url parameter pointing to a local file to read it.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes several security mistakes in a system used to manage mobile devices. One mistake let any website read data from the management system if a logged-in user visited it, and another let attackers make the system fetch files from its own server, including password files. Together these could let an attacker steal sensitive information and control managed devices.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.