Timedora
Free Online Flashcard Deck

Injection Security Flashcards Free Online Flashcards

Study Injection Security with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What is injection?

Back

Injection occurs when untrusted data is interpreted as part of a command or structured language instead of being handled strictly as data.

02
Front

What is the central defense against injection?

Back

Keep data separate from instructions, using controls suited to the interpreter and the output context.

03
Front

Name three forms of injection.

Back

SQL injection, operating-system command injection, and cross-site scripting (XSS) are examples.

04
Front

What makes untrusted input an injection risk?

Back

It happens when untrusted data changes or becomes part of a command or structured language, rather than remaining data.

05
Front

Can input validation alone prevent injection?

Back

No. Validation complements parameterization and output encoding; it cannot replace safe command construction or context-aware output handling.

06
Front

Why must injection defenses fit the context?

Back

Controls must match the interpreter and output context because different contexts parse data according to different rules.

07
Front

How do parameterized queries help prevent SQL injection?

Back

Use prepared statements or parameterized queries so supplied values stay separate from SQL syntax.

08
Front

How can software reduce operating-system command injection risk?

Back

Use a filesystem library or a process API that passes arguments separately, and avoid shell interpreters where possible.

09
Front

How should untrusted data be handled when displayed?

Back

Encode untrusted data for the exact output context, such as HTML text or an HTML attribute; their parsing rules differ.

10
Front

Do parameterized queries establish a user's authorization?

Back

The application must still check whether the user is authorized to access the requested record.

11
Front

Can secure error handling substitute for injection defenses?

Back

No. Clear, appropriately general errors reduce disclosure, but error handling does not replace safe construction and handling of commands or output.

12
Front

Can a security filter alone replace safe command construction?

Back

No. A security filter alone cannot replace safe construction and use of commands and output.