Hacksplaining
  • For Teams
Log in Start Learning

Remote Code Execution

If the string being executed as code comes from an untrusted source, however, you are in serious trouble. An attacker may be able to supply code in an HTTP request and execute it on your server. This will allow them to delete files, read sensitive data, install malware, and perform other malicious acts.

malicious-input.js
let cmd = "fs.rmSync('/'," + '{ recursive: true, ' + '  force: true })';

// This will delete everything
// on the disk. Oops.
eval(cmd);
A robot
output.log
Hacksplaining

Defend your code.

Learn

All Lessons AI Prompt Injection SQL Injection XSS CSRF

Teams

For Teams Features Pricing FAQ

Resources

Glossary OWASP Top 10 PCI Compliance Book

Legal

Privacy Terms DPA Subprocessors

© 2026 Hacksplaining. Built with in Seattle, WA, USA

Need help? Reach out to support@hacksplaining.com