InterviewStack.io LogoInterviewStack.io

Secure Coding and Application Security Questions

Writing and reviewing code that resists attack. Covers the OWASP Top Ten and common web vulnerabilities (XSS, SQL injection, CSRF), input validation, secure coding practices and security code review, static application security testing (SAST), API and HTTP security, database and frontend security, and mobile app security. The application-layer defense discipline for engineers building software.

EasyTechnical
40 practiced

Explain the three types of Cross-Site Scripting (stored, reflected, and DOM-based): how each one arises in source code and executes at runtime, how they map to CWE-79, and the concrete mitigations you would apply for each (output encoding, safe templating, Content Security Policy, sanitization libraries).

MediumTechnical
37 practiced

Discuss XSS and other client-side injection risks in React applications. Explain concrete best practices: avoiding dangerouslySetInnerHTML, sanitizing any HTML you must render (server-side or with a library like DOMPurify), setting a Content Security Policy, and being cautious with third-party libraries that inject HTML. Provide a sample sanitization approach and an example CSP header.

That is every published Secure Coding and Application Security question for Frontend Developer so far. Browse the other topics in this category, or practice this one interactively.