A remote code execution vulnerability has been found in Microslop Notepad

8 months ago by als to c/technology

They finally did it. Microsoft has successfully over-engineered a text editor into a threat vector.

This CVE is an 8.8 severity RCE in Notepad of all things.

Apparently, the "innovation" of adding markdown support came with the ability of launching unverified protocols that load and execute remote files.

We have reached a point where the simple act of opening a .md file in a native utility can compromise your system.

load all comments
yuzu8 12 points 8 months ago

Wait! Can someone explain this to me

path: 0 22105139, hotness: undefined, score: 12, children: 10
MadBits 26 points 8 months ago

Microsoft recently added Markdown support so it can handle things like bold text, links, and images.

But in doing that, they accidentally created a problem where a malicious text file could hide a link inside it. When you open the file, Notepad might follow that link, which could then download and run harmful code on your system.

So now, in the worst case, just opening what looks like a normal text file could put your computer at risk.

Thanks Microsoft.

path: 0 22105139 22107152, hotness: undefined, score: 26, children: 7
pkjqpg1h 8 points 8 months ago
path: 0 22105139 22107152 22107848, hotness: undefined, score: 8, children: 1
pkjqpg1h 4 points 8 months ago
path: 0 22105139 22107152 22107848 22107869, hotness: undefined, score: 4, children: 0
Buddahriffic 1 point 8 months ago

Can you elaborate a bit on how notepad following a link can result in running arbitrary code? Cause it sounds more like a second vulnerability is involved, because a text editor following a link still shouldn't result in running whatever code is on the other side of the link.

Though it is a privacy issue on its own, just like a tracking pixel or images in emails.

I'm also curious what the actual use case is for having a link that notepad automatically follows on load in markdown. Or why they got rid of wordpad (their default rich text editor) and put it into notepad (their plain text editor), ruining one of the reliable things about notepad: it would just show you the actual bytes of the file, whether it was text or not, kinda like a poor man's hex editor (just without the hex).

Makes me wonder if eventually opening an html file in notepad will make it render it like a browser. "Back in my day, we edited html in notepad instead of browsed it!"

path: 0 22105139 22107152 22107996, hotness: undefined, score: 1, children: 4
Robust_Mirror 7 points 8 months ago

Yeah I get your thought process, but the second vulnerability is actually just how Windows is designed to work. When Notepad follows a link, it isn't opening a web page, it's passing a command directly to the OS shell.

Because Notepad is a trusted native application, it bypasses many of the security checks that a browser has.

If the link uses the file:// protocol to point to an .exe on a remote server, or ms-appinstaller to trigger an install, the OS treats that as a direct instruction to launch that software, so it can trigger an app installation prompt or, depending on the exploit, silently side-load malicious packages.

path: 0 22105139 22107152 22107996 22112348, hotness: undefined, score: 7, children: 3
technology
technology

@lemmy.world

login for more options
88745
22214
14627

This is a most excellent place for technology news and articles.

Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


go to feed...