H3C GR-1800AX
Vulnerability introduction
H3C GR-1800AX was discovered a fatal vulnerabilities that can cause a remote code execution(RCE) via the aspForm parame
Official website : https://www.h3c.com/
Download link: https://www.h3c.com/cn/d_202304/1824907_30005_0.htm
H3C MiniGRW1B0V100R007 is the latest version on GR-1800AX
Vulnerability analysis
DelL2tpLNSList parameter in the function sub_100780E8
In the binary file /bin/www , we use IDA to locate the function sub_100780E8 that causes the vulnerability.
As you can see, the snprintf function is called on line 35 of the sub_100780E8 function. Let’s trace the source of the parameter
We found that the value of v6 and v7 is determined by parameter , we can bypass the check_function sub_1007844C by using the character ‘0a’ like this
The image shows the router rebooting after the reboot command is executed
The POC is as follows:
1 | POST /goform/aspForm HTTP/1.1 |
Note that when copying this POC, there will be an additional 0d byte after ‘param=1;’, and all you need to do is delete this byte