Code Injection
Code injection → attack where an attacker inserts malicious code into an application, causing it to execute unintended commands or actions due to improper input handling.
SQLi
Structured query language injection (SQLi) → code injection attack that manipulates database queries by inserting malicious structured query language commands, allowing attackers to view, modify, or delete database data.
XSS Attack
Cross-site scripting (XSS) attack → code injection attack that injects malicious JavaScript into trusted websites, allowing attackers to steal session data, redirect users, or perform actions on behalf of victims.
Non-Persistent XSS Attack
Non-persistent cross-site scripting → also called reflected cross-site scripting, where malicious script is embedded in a request such as a search box and executed immediately when the server reflects it back to the user.
Persistent XSS Attack
Persistent cross-site scripting → also called stored cross-site scripting, where malicious code is permanently stored on the server, commonly on social networking sites, and executed whenever users view the affected content.
Protecting against XSS
Protecting against cross-site scripting → security practices including validating and sanitizing user input, avoiding untrusted links, limiting or disabling JavaScript where possible, and keeping browsers and applications updated.