Question 82 of 270 from exam CAS-003: CompTIA CASP+

Question 82 of 270 from exam CAS-003: CompTIA CASP+

Question

Given the code snippet below:

include <stdio.h>
include <stdlib-h>
int main(void) {
char username [8];
print£(“Enter your username: “);
gets (username)

printé("\n";

if (username == NULL) {

printf ("you did not enter a username\n”);
}
it stromp(username, “admin”) {

print£("$s”, “Admin user, enter your physical token value:

“ie
// vest of conditional logic here has been snipped for brevity
} else [

print£("Standard user, enter your password: “);

// rest of conditional logic here has been snipped for brevity

}

Which of the following vulnerability types in the MOST concerning?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.