John is investigating web-application firewall logs and observers that someone is attempting to inject the following:

What type of attack is this?
John is investigating web-application firewall logs and observers that someone is attempting to inject the following:
What type of attack is this?
The answer is B (buffer overflow) Reasons: The buffer buff is defined to hold 10 elements (indices 0 through 9). Writing to buff[10] attempts to access memory beyond the allocated buffer size. This can lead to overwriting adjacent memory, potentially corrupting data, crashing the application, or enabling the execution of malicious code.
SQL injection attack involves inserting malicious SQL code into a web application's input fields to manipulate the database
the answer is B and not A. Ignore my previous answer
buffer overflow, it not possible is sqli
'buff' is a 10 characters long string (from 0 to 9) and the user is trying to write the 11th position, which is over its last position. So the right answer is B. overflow
In C, an array like char buff[10] has valid indices from 0 to 9 — that's 10 elements. buff[10] is out of bounds — it's the 11th element, which does not exist.