While observing several host machines, a security analyst notices a program is overwriting data to a buffer. Which of the following controls will best mitigate this issue?
Data Execution Prevention (DEP) is a technology built into Windows that helps protect you from executable code launching from places it's not supposed to. DEP does that by marking some areas of your PC's memory as being for data only, no executable code or apps will be allowed to run from those areas of memory.
ChatGPT
D. Parameterized queries
Parameterized queries are a security control used in database programming to mitigate the risk of SQL injection attacks, which can occur when user input is directly incorporated into SQL statements. When a program is overwriting data to a buffer, it could potentially lead to a buffer overflow or other security vulnerabilities. Parameterized queries help prevent these issues by separating user input from the SQL query, making it difficult for an attacker to inject malicious SQL code. This control is especially important in web applications and other software where user input is involved.
Application developers can prevent buffer overflows by building security measures into their development code, using programming languages that include built-in protection, and regularly testing code to detect and fix errors.
In exactly first article from MS in google about DEP, there is following sentence:
"DEM is designed to make it harder for attacks that try to use buffer overflows, or other techniques, to run their malware from those parts of memory that normally only contain data."
DEP is not designed to prevent buffer overwriting specifically, and it may not be effective in preventing all types of buffer overwriting attacks.
They specifically address the issue of SQL injection attacks, which can be caused by buffer overwriting. By separating SQL code from input data and treating the input data as parameters, prepared statements ensure that the SQL code is properly sanitized and prevent attackers from injecting malicious code into the application.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.CS0-002 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
adrian1188
Highly Voted 1 year, 11 months agokumax
Most Recent 1 year, 6 months agoJakeH
1 year, 7 months agotutita
1 year, 10 months agoCyberCEH
1 year, 12 months agoZUL01
2 years agokiduuu
2 years ago