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 makes a vulnerability an injection flaw?

Back

Injection occurs when untrusted input changes the meaning of a command or structured document instead of remaining data.

02
Front

How does the receiving interpreter guide injection risk review?

Back

Identify which interpreter consumes the input—such as a database, operating-system command processor, browser, or directory service. That determines the injection risk and the appropriate defense.

03
Front

What should a reviewer trace when checking for injection risks?

Back

Trace untrusted data to the interpreter that consumes it. Review how queries and commands are built, how browsers render or update content, and how directory expressions are constructed.

04
Front

What is the general principle for preventing injection?

Back

Use an API designed for the relevant interpreter to keep data separate from instructions. Validation, contextual encoding, least privilege, monitoring, and testing are complementary defenses.

05
Front

Can generic character filtering replace safe interpreter-specific construction?

Back

No. A generic character filter or firewall does not replace safe construction at the interpreter boundary.

06
Front

Do injection indicators prove exploitation or safety?

Back

No. Unexpected output, errors, or unusual activity are clues to investigate, not proof of exploitation; their absence does not prove the system is secure.

07
Front

What defines SQL injection, and what is its primary construction defense?

Back

The database interprets input as part of a query rather than only as a value. Parameterized queries keep query structure separate from data values.

08
Front

What interpreter is targeted by operating-system command injection?

Back

The operating system or a launched program interprets externally influenced input as command syntax or options. Prefer a built-in library or API over launching a system command.

09
Front

What makes cross-site scripting a browser-side injection?

Back

XSS occurs when untrusted content is interpreted by a browser as active HTML or script instead of ordinary text. Use context-appropriate output encoding and safe DOM APIs.

10
Front

What does LDAP injection alter?

Back

LDAP injection occurs when untrusted input changes the structure or logic of an LDAP search filter or distinguished name. Use an encoder suited to the exact context.

11
Front

Why do dynamic SQL identifiers need an allowlist?

Back

Parameterized queries separate SQL structure from values. Dynamic identifiers or sort choices need a strict allowlist because parameters generally represent values, not table names or SQL keywords.

12
Front

How can client-side code safely insert untrusted text into a page?

Back

Use safe DOM APIs such as assigning ordinary text through `textContent`, rather than parsing untrusted strings as HTML.