πŸ“– Step 7: Testing & Quality#481 / 498

Remote Code Execution

Remote Code Execution (RCE)

πŸ“–One-line summary

The most severe class of vulnerability, letting an attacker run arbitrary code on a server or device over the network.

✨Example

// RCE

βœ“ κ³΅κ²©μžκ°€ λ„€νŠΈμ›Œν¬ λ„ˆλ¨Έμ—μ„œ μ„œλ²„λ‚˜ 기기에 μ›ν•˜λŠ” μ½”λ“œλ₯Ό μ‹€ν–‰ν•  수 있게 λ˜λŠ” κ°€μž₯ μ‹¬κ°ν•œ λ“±κΈ‰μ˜ 취약점

Tests: 1 passed

⚑Vibe coding prompt examples

>_

Find places in my Next.js API routes and server actions where user input flows into eval, child_process.exec, dynamic import, or template rendering, and mark the RCE risk points.

>_

Fix the code that extracts user-uploaded archives (zip, gz, br) on the server to prevent RCE and zip bombs, adding size limits, path checks, and an up-to-date runtime check.

>_

Make a checklist of what to do within one hour when an RCE advisory drops (check versions, apply the patch, redeploy, review logs).

Try these prompts in your AI coding assistant!