New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

GIAC Information Security Professional GISP Question # 31 Topic 4 Discussion

GIAC Information Security Professional GISP Question # 31 Topic 4 Discussion

GISP Exam Topic 4 Question 31 Discussion:
Question #: 31
Topic #: 4

John works as a C programmer. He develops the following C program:

#include

#include

#include

int buffer(char *str) {

char buffer1[10];

strcpy(buffer1, str);

return 1;

}

int main(int argc, char *argv[]) {

buffer (argv[1]);

printf("Executed\n");

return 1;

}

His program is vulnerable to a __________ attack.


A.

Denial-of-Service


B.

SQL injection


C.

Buffer overflow


D.

Cross site scripting


Get Premium GISP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.