Now Hacked
EN-GB

Daily security quiz #3

Question for 2026-11-03. Read the code and pick the most serious security vulnerability.

MediumC2026-11-03

This function takes a user name and prints a greeting. What is the most serious vulnerability?

#include <stdio.h>
#include <string.h>
 
void greet(const char *name) {
    char buf[32];
    strcpy(buf, "Hello, ");
    strcat(buf, name);
    printf("%s\n", buf);
}

Past questions