Skip to content
RCE Disclosed report Intermediate CVE-2018-12368

.SettingContent-ms file extension bypasses 'dangerous file' prompt leading to WebExt RCE

A Windows 10 file type, .SettingContent-ms, could be used to launch local executables with arguments, but the browser did not treat it as dangerous. An attacker could therefore deliver such a file through a download or a WebExtension and get code execution on the victim's machine.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 9 days
  • Paid in 14 days
  • Disclosed after 9 days
Text
Created attachment 8984850
download.openRCE.zip

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36

Steps to reproduce:

Download attached SettingContent-ms file, or install attached extension for RCE.


Actual results:

SettingContent-ms is a new windows 10 extension that can be used to execute arbitrary local files with parameters.


Expected results:

Treat it as executable.

I am CCing Matt Nelson who originally found this file, I simply connected the dots with the browser RCE potential. 

He wrote about this file in public https://posts.specterops.io/the-tale-of-settingcontent-ms-files-f1ea253e4d39

Web Extension RCE part is not mentioned.

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

How it worked

Root cause

Likely the browser's dangerous-file list did not include the .SettingContent-ms extension, so it was handled as a harmless file rather than an executable.

Impact

An attacker could achieve remote code execution on a Windows 10 victim through a downloaded file or a WebExtension, without the browser's dangerous-file prompt.

What the attacker needed

Windows 10 target; victim opens the file or installs the extension

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 report has not been written yet. The Original tab links to the source.

Some file types on Windows can start programs when you open them. The browser keeps a list of file types it warns you about before opening, and this one was missing from that list. So a downloaded file that could run code was opened without the usual warning.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Abdulrahman Alqabandi

View all

33 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.