r/webdev • • 24d ago

Discussion PSA - SVGRepo Compromised

For ages I've been using the website https://www.svgrepo.com/ as a great resource for free SVGs, but today when I visited, it gave me a fake Cloudflare verification that attempts to install some sort of malware on your computer, as you can see in the screenshots below.

It almost caught me, so I thought I'd put this out because I couldn't see any indication that anyone else had noticed this!

Fake cloudflare verification attempting to get you to run a malicious command in Run
Malicious run command
104 Upvotes

22 comments sorted by

6

u/Osmium_tetraoxide 24d ago

Have you sent them this in an email so they can investigate it on their end?

My best guess is that they have had advertisers being dodgy, happens to a lot of sites since it can often be used to escape the sandbox.

2

u/NotCSM 24d ago

No, that's a good idea, I just assumed they'd been domain swapped or something

2

u/cshaiku 23d ago

You know what they say about assumptions, right?

3

u/doublecastle 24d ago

This isn't happening to me (on Linux). Is it still happening for Windows users, or did SVGRepo fix the vulnerability?

2

u/NotCSM 24d ago

No, it's still up unfortunately. I think it only targets windows users, as it doesn't show up on mobile either.

2

u/cowboyecosse 24d ago

It’s always a powershell command these days.

3

u/swb_rise 24d ago

Oh no, not svgrepo!

1

u/Vegetable-Capital-54 23d ago

I would guess it's probably just a bad ad, not the site owners gone rogue. Similar things have happened to my sites too a couple of times. Advertiser networks do try to keep dodgy ads out, but scammers are relentless and always trying to slip something malicious in.

1

u/ma-d_1607 21d ago

Free SVGs, with a complimentary malware side quest.

1

u/Ok-Listen-2162 24d ago

thx for the heads up. did u see it more than once or only on the first visit tho

-6

u/rusticdev_ 24d ago

thats the clickfix trick, real cloudflare never asks you to open run and paste something. if anyone already pasted it assume that machine is compromised and change passwords from a different device

14

u/NotCSM 24d ago

yes i know, this means the website has been hacked/compromised, did you read the post?

-4

u/baqocatagoluf6792 24d ago

I've been pulling SVGs programmatically in a few of my Pipedream workflows, and learned the hard way to cache them locally after I got bitten by rate limits during nightly batch runs—turns out depending on external sources means you're vulnerable not just to outages but stuff like this. The downside is you have to maintain your own copy and deal with staleness if the original updates, but at least you're not stuck waiting on someone else's compromised server when your automation runs.

2

u/NotCSM 24d ago

holy bot

48

u/[deleted] 24d ago

[removed] — view removed comment

10

u/Squigglificated 24d ago

And SVGs can contain embedded scripts, and/or malware payloads hidden by invisible unicode characters. Good idea to sanitize SVGs in general.

1

u/NotCSM 24d ago

Do you know any good tools for sanitizing SVGs?

8

u/[deleted] 24d ago

[removed] — view removed comment

1

u/cshaiku 23d ago

That's why we roll our own. With AI being so well versed on protocols, it has become far easier to make your own systems.