Security Flashcards

1
Q

Security by Default:

How do you write secure code? In your opinion, is it one of the developer’s duties, or does it require a specialized role in the company? And why?

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

Don’t invent Cryptography:

Why is it said that cryptography is not something you should try to invent or design yourself?

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

2-FA:

What is two-factor authentication? How would you implement it in an existing web application?

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

Sensible Data in Logs:

If not carefully handled, there is always a risk of logs containing sensitive information, such as passwords. How would you deal with this?

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

SQL Injection:

Write down a snippet of code affected by SQL injection and fix it.

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

Detect SQL Injection:

How would it be possible to detect SQL injection via static code analysis? I don’t expect you to write an algorithm capable of doing this, as it is probably a huge topic, but let’s discuss a general approach.

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

XSS:

What do you know about Cross-Site Scripting? If you don’t remember it, let’s review online its definition, and let’s discuss it.

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

Cross-Site Forgery Attack:

What do you know about Cross-Site Forgery Attacks? If you don’t remember it, let’s review online its definition, and let’s discuss it.

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

HTTPS:

How does HTTPS work?

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

MITM Attack:

What’s a man-in-the-middle attack, and why does HTTPS help protect against it?

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

Stealing Sessions:

How can you prevent the user’s session from being stolen? Chances are you remember what session or cookie hijacking is, otherwise let’s read its Wikipedia page together.

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