Which situation best describes an injection vulnerability?
Injection Vulnerabilities Online Quiz Questions
Use this free practice quiz with 10 questions to review Injection Vulnerabilities, test your knowledge, and prepare for your next test or exam.
Which example illustrates how injection can occur in a database query?
- A
A supplied username is concatenated into SQL and causes the database to process a different query.
- B
A username is stored in a database as plain data.
- C
A query uses a fixed instruction and separately handles a supplied value as data.
- D
An application displays a username without sending it to an interpreter.
What is the core failure that makes injection possible?
- A
Allowing an interpreter to process instructions written by its developer.
- B
Sending any data across a trust boundary.
- C
Failing to reliably preserve the separation between data and control syntax.
- D
Storing user-provided data before it is used.
What is a trust boundary in the context of injection?
- A
A place where a database permanently stores information.
- B
A point where data passes from a less-trusted context into a component that may act on it.
- C
A rule that guarantees all internal services are trustworthy.
- D
A point where software converts instructions into data.
An application retrieves user content from its database. Which statement about that content is most accurate?
- A
Data is trustworthy once it has been forwarded by an internal service.
- B
Data is trustworthy if it came from a database rather than a form.
- C
Only data from URL parameters can be untrusted.
- D
Stored data may remain untrusted if it originated with an attacker.
Which practice is identified as a common way injection vulnerabilities can arise?
- A
Data is validated once, then later used in a different context or after being transformed.
- B
Data is checked in the context where it will be used and remains unchanged.
- C
Data is rejected before it reaches any component that may act on it.
- D
Data is stored without ever being used to construct instructions.
Which approach is listed as a common injection-related failure?
- A
Separating data from control syntax in the interpreter’s language.
- B
Treating values from every client as potentially untrusted.
- C
Relying on a denylist of suspicious characters instead of preserving the syntax/data boundary.
- D
Checking how data will be used in its relevant context.
Why might a seemingly safe wrapper or stored procedure still contribute to injection?
- A
A stored procedure that never constructs instructions dynamically.
- B
A seemingly safe wrapper that constructs dynamic instructions internally.
- C
An application that keeps user values separate from interpreter syntax.
- D
A component that receives data but does not parse a language.
Which statement about interpreters is supported?
- A
Only operating-system shells.
- B
Only databases and directory services.
- C
Only browsers that process markup.
- D
Components that parse a language, including databases, shells, browsers, and directory services.
Which set of possible effects can an injection flaw have?
- A
It may expose or alter data, bypass controls, or change program behavior.
- B
It always causes the application to stop running immediately.
- C
It can affect only the appearance of a browser page.
- D
It affects data only when that data has been stored in a database.
Related study packs and tools
3 Airway, Respiration, and Ventilation
Review EMT airway assessment, breathing mechanics, airway management, ventilation support, and priorities for common respiratory emergencies.
3 Airway, Respiration, and Ventilation
Learn how to assess airway and breathing, distinguish ventilation from oxygenation and respiration, provide appropriate support, and recognize common respiratory emergencies.
4 Cardiology and Resuscitation
Review cardiac assessment and emergencies, adult and pediatric CPR, AED use, and special resuscitation priorities for EMTs.
4 Cardiology and Resuscitation
A medium-difficulty quiz on EMT cardiovascular assessment, cardiac emergencies, CPR, AED use, and special resuscitation considerations.
4 Cardiology and Resuscitation
Learn how EMTs assess cardiac emergencies, recognize poor perfusion, and provide prompt care for cardiac arrest and other resuscitation situations.
6 Medical Emergencies
Review EMT priorities and key recognition and care principles for neurologic, metabolic, respiratory, toxicologic, behavioral, and environmental emergencies.
6 Medical Emergencies
A medium-difficulty quiz on recognizing and responding to medical emergencies within EMT scope and local protocols.
6 Medical Emergencies
Learn how EMTs approach medical emergencies, recognize time-sensitive conditions, provide care within their scope and local protocols, and arrange appropriate transport.
7 Obstetrics, Gynecology, and Pediatric Emergencies
A medium-difficulty quiz on practical assessment, treatment, and transport decisions in obstetric, gynecologic, neonatal, and pediatric emergencies.
8 EMS Operations
A medium-difficulty quiz on applying EMT operational principles to scene safety, communication, incident management, patient rights, and coordinated care.
9 Comprehensive EMT Practice Scenarios and Review
Review EMT exam domains and the priorities, interventions, and responsibilities that guide safe care in common emergency scenarios.
9 Comprehensive EMT Practice Scenarios and Review
Practice applying EMT scene safety, assessment, intervention, transport, and operational principles to realistic situations.