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.

MediumTechnical
35 practiced

Walk through a code-level security review for a REST endpoint that accepts file uploads, pushes the file to a worker for processing (thumbnailing, parsing), and stores metadata in a database. Identify the high-risk code paths (parsers, deserializers, temporary-file handling) and propose mitigations at the code level for input validation, safe deserialization, resource-exhaustion limits, sandboxing the processing step, and access control on the stored results.

EasyTechnical
38 practiced

Describe device attestation services available for mobile platforms: Android SafetyNet and Play Integrity, and Apple DeviceCheck and App Attest. Explain what an attestation actually asserts about the device and app, how the server should validate an attestation response, and known limitations or attacks against attestation.

HardSystem Design
44 practiced

Your web application serves user-generated HTML and relies on third-party analytics and widgets. Design a Content Security Policy that reduces XSS risk while preserving the required third-party functionality. Discuss nonces versus hashes, strict-dynamic, report-only mode, subresource integrity, and practical bypass techniques an attacker might try against your policy.

MediumTechnical
66 practiced

Implement a safe Go-based CLI helper that accepts a filename and a single template command pattern but prevents command injection: the tool must execute a trusted command with the user-supplied filename as an argument, without any shell interpolation of that filename. Provide the code and explain specifically how it avoids shell injection.

MediumTechnical
37 practiced

Write server-side pseudocode (or an algorithm description) to validate an App Attest or Play Integrity attestation. Include validating the signing certificate or attestation chain, verifying the nonce and freshness, checking the package name or bundle identifier, interpreting the integrity flags, and preventing replay attacks. Discuss caching strategies and how to handle offline validation failures gracefully.

Unlock Full Question Bank

Get access to all Secure Coding and Application Security interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.