r/linuxadmin • u/Dapper_Fun_8513 • May 06 '26
Found a cryptominer on my dev server — cleaned it up but still can't figure out how they got in
/r/servers/comments/1t5c3j5/found_a_cryptominer_on_my_dev_server_cleaned_it/
26
Upvotes
8
u/jaymef May 06 '26 edited May 06 '26
There was a very serious exploit (CVSS 10) related to react server components in the wild several months back that caused a lot of peoples servers to be exploited in a similar way with xmrig in particular being installed. It affected Next.js heavily, but it was in react server components so it affected anything using that. You may have gotten hit if you were running a vulnerable version. It was trivial to exploit remotely and an attacker would have had access to anything available to the user/group the nodejs app was running under. It wouldn't have necessarily given them root, but could have if either you had the app running in root context, or if they were able to sniff out root keys/access info with the level of access they had. If the system wasn't locked down an attacker with remote code execution can do a lot of damage.
https://nextjs.org/blog/CVE-2025-66478
I would almost bet money on it being the attack vector, and it would have almost certainly have affected react applications deployed with laravel forge.
-9
u/Amidatelion May 06 '26
Do you commonly work from public spaces? The vast majority of personal machine compromises come from connecting to public wifi.