Headline
CVE-2022-45706: ip-com-7 - HackMD
IP-COM M50 V15.11.0.33(10768) was discovered to contain a buffer overflow via the hostname parameter in the formSetNetCheckTools function.
# ip-com-7 vendor:IP-COM product:M50 version:V15.11.0.33(10768) type:Buffer Overflow author:Yifeng Li, Wolin Zhuang; ## Vulnerability description We found an buffer overflow vulnerability in IP-COM Technology IP-COM’s M50 routers with firmware which was released recently, allows control “hostname” to attack it. ## Buffer Overflow vulnerability In formSetNetCheckTools function, the parameter “hostname” is directly strncpy to a local variable placed on the stack, which overrides the return address of the function, causing buffer overflow, and so on, we also can control the hostname to attack it. ![](https://i.imgur.com/Z4rJNQg.png) ## PoC ### Buffer Overflow We set the value of “hostname” as aaaaaaaaaaaaaaaaaaaaaaaaa…… and the router will cause buffer overflow.