Daily security quiz #13
Question for 2026-11-13. Read the code and pick the most serious security vulnerability.
This function logs error messages. msg comes from a user request. What is the most serious vulnerability?
#include <stdio.h>
void log_error(FILE *log, const char *msg) {
fprintf(log, "[error] ");
fprintf(log, msg);
fprintf(log, "\n");
}