SQL Injections & Cross-site Scripting Flashcards

(6 cards)

1
Q

Code Injection

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQLi

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

XSS Attack

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Non-Persistent XSS Attack

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Persistent XSS Attack

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Protecting against XSS

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly