![[Post-Mortem] Next.js Remote Code Execution (RCE) Scare: A Full Attack-and-Defense Record from Abnormal PM2 Logs to a Crypto Mining Trojan](/_next/image?url=https%3A%2F%2Fdirectus-vps.aimazing.site%2Fassets%2F91c19cb1-b3b3-4171-a1d3-f15c28289425.png&w=3840&q=75)
[Post-Mortem] Next.js Remote Code Execution (RCE) Scare: A Full Attack-and-Defense Record from Abnormal PM2 Logs to a Crypto Mining Trojan
This article provides a detailed post-mortem of a Remote Code Execution (RCE) attack against a Next.js server. By analyzing PowerShell errors and malicious wget download records in the PM2 logs, it confirms that the attacker exploited a Next.js Server Actions or Prototype Pollution vulnerability (such as CVE-2024-34351).