About this interactive
What you are doing: naming the injection attack by where the unchecked input ends up.
All three feed input into a place it should not reach, and the destination tells them apart. Command injection runs the input as an operating-system command on the host. SQL injection makes the input part of a database query, so it returns or changes records it should not. Cross-site scripting gets the input rendered as live script in another user's browser. The fix for all three is the same idea: treat input as data, never as instructions.
How to use it: ask where the input lands. The host operating system, the database query, or another person's browser?
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →