Java: Spring Security Filter Chain
What is SQL Injection and how can it be prevented?
SQL Injection exploits unsanitized inputs; prevent with prepared statements. SQL Injection occurs when attackers manipulate query inputs to…
View Card →Quick study sessions to strengthen memory and retain key concepts.
What is SQL Injection and how can it be prevented?
SQL Injection exploits unsanitized inputs; prevent with prepared statements. SQL Injection occurs when attackers manipulate query inputs to…
View Card →Why does the Spring Security CORS filter matter in this design?
It manages and permits cross-origin requests. The CORS filter in Spring Security is responsible for handling and allowing…
View Card →What are the components of a JWT?
Header, Payload, Signature. Frame the concept in practical terms so you can explain it during interview discussion. A…
View Card →How does Spring Security handle unauthorized access?
It returns HTTP 401 or 403 errors. Frame the concept in practical terms so you can explain it…
View Card →Why is HTML encoding crucial for preventing Stored XSS?
HTML encoding neutralizes harmful scripts. HTML encoding converts special characters to HTML entities, preventing scripts from executing when…
View Card →How does increasing the BCrypt work factor affect security?
It increases the computation time, enhancing security. The BCrypt work factor determines the complexity of password hashing. A…
View Card →What are prepared statements and why use them?
Prepared statements safely parameterize SQL queries. Prepared statements use placeholders for data, preventing SQL injection by ensuring data…
View Card →Why does CSRF tokens matter in practice?
CSRF tokens protect against unauthorized actions. CSRF tokens are unique values added to forms to verify requests originate…
View Card →How does a Stateless JWT Token work?
It contains user information and is self-contained. Stateless JWT tokens hold user information like identity and expiration directly…
View Card →Why is Salting important in password hashing?
Salting adds unique data to passwords to prevent attacks. Salting involves adding random data to passwords before hashing,…
View Card →