web security Flashcards

1
Q

What is SQL Injection?

A

SQL injection is a code injection technique to either bypass authentication or insert malicious code that might destroy your database.

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

Methods to protect from SQL injection?

A
  1. Sanitization of inputs parameters
  2. Use Prepared Statements
  3. Remove literals like ; or ‘
  4. Use escape for character
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Types of Cross site scripting( XSS)

A
  1. Non-persistent/Reflected XSS
  2. Persistent/Stored XSS
  3. DOM-based XSS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Methods to protect from XSS

A
  1. Sanitization

2. Check if the input has js code

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

Directory Traversal

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

XSRF

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

Clickjacking

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