q3vm icon indicating copy to clipboard operation
q3vm copied to clipboard

opStack is not zero-initialized which leads to the memory disclosure

Open rivit98 opened this issue 1 year ago • 0 comments

Hello, during my research on this project, I noticed that opStack variable is not zero-initialized (https://github.com/jnz/q3vm/blob/master/src/vm/vm.c#L873). This can lead to the memory disclosure issue. Ideally, opStack should be zeroed on function entry.

Please see PoC and more details here: https://github.com/TeamAustria/writeups/blob/main/2024-justctf/q3vm.md https://enzo.run/posts/justctf2024/

rivit98 avatar Aug 19 '24 21:08 rivit98