Kaveh.c: a new C challenge built from Broccoli2Shell (Node2Shell)
Kaveh.c is a new C challenge on SecDim Play. The vulnerability is an unchecked return value (CWE-252). Your job is to find it and fix it.
We built Kaveh.c from Broccoli2Shell (CVE-2026-111497), also known as Node2Shell. It is a vulnerability in the Brotli library, which is written in C and used by Node.js.
The Brotli bug allows the code to write past the end of a buffer. This can crash the program, leak memory, or let an attacker run their own code.
Finding and fixing this flaw yourself teaches you to look at what the code does after a check fails.
Can you identify and fix the flaw?
Play it on SecDim Play: Play - SecDim
