buffer size confusion in vastrock-huang/minivpn
Reported on
Jun 5th 2022
Description
an attempt to write 2000 into a buffer of 10 bytes, while SSL_read
does not add a zero at the end.
Proof of Concept
#define BUFF_SIZE 2000
...
char buf[10];
SSL_read(ssl,buf,BUFF_SIZE);
int virtualIP = atoi(buf);
Impact
by changing the network data, you can access remote code execution. gives out that the application is building vpn, the information is also very sensitive.
Occurrences
SECURITY.md
a year ago