ThakeeNathees Pocketlang Memory Corruption Vulnerability in pkByteBufferAddString Function
Vulnerability
A memory corruption vulnerability has been identified in ThakeeNathees Pocketlang versions up to cc73ca61b113d48ee130d837a7a8b145e41de5ce. The issue arises in the pkByteBufferAddString function, where the manipulation of the argument length with an extremely large value leads to memory corruption. This vulnerability requires local access to exploit. The problem has been publicly disclosed, and an exploit is available.
Impact
Exploitation of this vulnerability causes a heap-buffer overflow, leading to memory corruption and a segmentation fault.
Reproduction
The vulnerability can be reproduced by building Pocketlang with release optimization and running the compiled binary with a specific input file that triggers the issue. This can be done using gdb to observe the crash, which occurs due to the integer underflow caused by the large length value.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
