Security Flashcards
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?
Don’t invent Cryptography:
Why is it said that cryptography is not something you should try to invent or design yourself?
2-FA:
What is two-factor authentication? How would you implement it in an existing web application?
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?
SQL Injection:
Write down a snippet of code affected by SQL injection and fix it.
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.
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.
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.
HTTPS:
How does HTTPS work?
MITM Attack:
What’s a man-in-the-middle attack, and why does HTTPS help protect against it?
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.