239
you are viewing a single comment's thread
view the rest of the comments
[-] towerful@programming.dev 93 points 5 months ago* (last edited 5 months ago)

What makes this even more sneaky is that JetBrains has a theme called "Darcula".

So, with a wider generic theme called Dracula and themes that duplicate JetBrains Darcula theme, it is no surprise that "Darcula Official" is being installed.
It's more than just a typosquat

Edit:
But why can a theme make web requests?!

[-] hydroptic@sopuli.xyz 65 points 5 months ago

But why can a theme make web requests?!

Because we live in a broken world and nothing matters.

On a more serious note, it's a pretty horrifying misfeature. What's even more worrying is that by all appearances Microsoft doesn't give a shit, if they apparently didn't even bother removing the malicious extensions that were reported. Not that I'm surprised, but still.

[-] 30p87@feddit.de 13 points 5 months ago

But why can a theme make web requests?!

Why can a Word or Excel file execute shell code? Why does M$ SQL Server have xp_cmdshell?

Because we live in a broken world and nothing matters.

Because devs chose to live in this part of the world, dictated by M$ and other large companies, who just don't care.

[-] hemko@lemmy.dbzer0.com 31 points 5 months ago

But why can a theme make web requests?!

To display ads on your ide

[-] Kuinox@lemmy.world 9 points 5 months ago

It's not a theme here, it's an extension.

[-] towerful@programming.dev 13 points 5 months ago

I think that's how themes are distributed for VSCode, right?
With VSCode, everything is an extension.
But the vscode marketplace seems to have filters for themes, so there must be some way to differentiate them.

I think extensions need a permissions system

[-] savedbythezsh@sh.itjust.works 17 points 5 months ago

You declare it in the package.json as a category when publishing. It's completely self-selected with no oversight, review, or enforced permissions.

[-] hydroptic@sopuli.xyz 3 points 5 months ago

Microsoft security practices haven't changed much over the decades

[-] Kuinox@lemmy.world 3 points 5 months ago

You can install themes directly from the theme selector.

[-] nekusoul@lemmy.nekusoul.de 5 points 5 months ago

Even worse, it also previews the theme when selected. I hope that the logic they use for that feature works in a simpler way.

[-] Kuinox@lemmy.world 3 points 5 months ago

I checked the logic and there is no rce.

this post was submitted on 10 Jun 2024
239 points (94.8% liked)

Programming

17314 readers
146 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS