ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 107 - CAS-004 discussion

Report
Export

A developer implement the following code snippet.

Which of the following vulnerabilities does the code snippet resolve?

A.
SQL inject
Answers
A.
SQL inject
B.
Buffer overflow
Answers
B.
Buffer overflow
C.
Missing session limit
Answers
C.
Missing session limit
D.
Information leakage
Answers
D.
Information leakage
Suggested answer: A

Explanation:

SQL injection is a type of vulnerability that allows an attacker to execute malicious SQL commands on a database by inserting them into an input field. The code snippet resolves this vulnerability by using parameterized queries, which prevent the input from being interpreted as part of the SQL command. Verified

Reference: https://www.comptia.org/training/books/casp-cas-004-study-guide , https://owasp.org/www-community/attacks/SQL_Injection

asked 02/10/2024
Vangelis Gouloutis
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first