GHSL-2022-066: Stack Buffer Overflow in iowow - CVE-2022-23462
A stack buffer overflow exists in iowow's JSON parser when handling scientific notation numbers, because a buffer of size 32 is used with a format string that assumes 64 bytes. An attacker could cause a denial of service by overwriting the stack canary.
There is a stack buffer overflow present in iowow that allows for Denial of Service (DOS) when it parses scientific notation numbers present in JSON.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The buffer size constant IWNUMBUF_SIZE is 32, but the snprintf call uses a hardcoded size of 64, causing a write beyond the buffer.
Impact
This issue may lead to Denial of Service (DOS).
What the attacker needed
Attacker can supply JSON input
The fix
The issue was fixed in commit [redacted].
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A stack buffer overflow happens when a program writes more data into a small memory area than it can hold, corrupting nearby data. Here, the program reserves 32 bytes for a number but tries to write up to 64 bytes, so it can crash the program. An attacker could send a specially crafted JSON number to make the service unavailable.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.