FlashKeepers

IT Security · Professional · Professional Certifications

Secure Coding Practices

Input validation, output encoding, parameterized queries, secrets management, memory safety, dependency risk and secure SDLC.

About this set

40 basic cards for Professional IT Security. It opens with "What is input validation?" and "What is a whitelist approach to input validation?". Study it alongside the other Professional sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is input validation?
Show answerThe process of checking that user input conforms to expected formats, types, and ranges before processing.
What is a whitelist approach to input validation?
Show answerExplicitly allow only known good values or patterns; reject everything else.
What is a blacklist approach to input validation?
Show answerExplicitly block known dangerous values or patterns; allow everything else.
Where should input validation occur?
Show answerOn the server side; client-side validation is a convenience, not a security boundary.
Why is server-side validation necessary even when client-side validation exists?
Show answerClient-side validation can be bypassed by an attacker; server-side is the actual security control.
What is boundary value testing?
Show answerTesting input at edge cases such as zero, negative numbers, empty strings, and maximum lengths.
What is output encoding?
Show answerConverting special characters into safe representations for the output context to prevent injection attacks.
What is HTML encoding?
Show answerConverting characters like <, >, &, and quotes into HTML entities so they render as text, not code.
When is URL encoding used?
Show answerWhen including data in URLs to ensure special characters like spaces and symbols are safely transmitted.
Why must output encoding be context-specific?
Show answerDifferent contexts (HTML, JavaScript, CSS, URL) have different dangerous characters; wrong encoding for the context fails to prevent attacks.
What is SQL injection?
Show answerAn attack where malicious SQL code is inserted into user input, allowing an attacker to alter or bypass database queries.
What is a parameterized query?
Show answerA query where placeholders separate SQL structure from data, and parameters are bound separately so user input cannot alter query structure.
Why are parameterized queries safer than string concatenation?
Show answerThe SQL structure is fixed before data is added; user input is treated as data only, never as executable code.
Can a stored procedure prevent SQL injection?
Show answerOnly if it uses parameterized queries internally; a stored procedure built with string concatenation is still vulnerable.
Which parts of a SQL statement can be parameterized?
Show answerData values in WHERE clauses and INSERT values; table names, column names, and SQL keywords cannot be parameterized.

25 more cards in the app

Study this set free