Kap7 Security Flashcards

1
Q

How to avoid Command Injection?

A
Avoid external command calls, Assume all input is malicious and Assign permissions that prevents from accessing/opening
privileged files (if not required)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to avoid SQL Injection?

A

Input Validation, Escaping, Bound Parameters (Prepared Statements), Limit user privileges and segregate users, Error Reporting

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

How to avoid Cross-Site Scripting?

A

Escaping, Recommendation, Prevent inline JavaScript with Content Security Policies

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