CVE-2025-6400
BaseFortify
Publication date: 2025-06-21
Last updated on: 2025-06-25
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| totolink | n300rh_firmware | 6.1c.1390_b20191101 |
| totolink | n300rh | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
| CWE-120 | The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2025-6400 is a critical buffer overflow vulnerability in the TOTOLINK N300RH router firmware version 6.1c.1390_B20191101. It occurs in the HTTP POST message handler at the endpoint /boafrm/formPortFw, where improper handling of the service_type parameter allows an attacker to send a specially crafted request that triggers a stack buffer overflow. This happens because the input size is not properly checked against the output buffer size, violating secure coding practices. The vulnerability can be exploited remotely without authentication. [1, 2]
How can this vulnerability impact me? :
This vulnerability can impact you by allowing a remote attacker to cause a denial of service (DoS) condition on the affected device, disrupting its availability. Additionally, it compromises the confidentiality, integrity, and availability of the device, potentially allowing further exploitation or control over the router. Since the exploit is publicly available and requires no authentication, the risk of attack is significant. [1, 2]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring HTTP POST requests to the endpoint /boafrm/formPortFw on TOTOLINK N300RH routers running firmware version 6.1c.1390_B20191101. Specifically, look for POST requests containing the service_type parameter with unusually large or malformed input that could trigger a buffer overflow. Network traffic analysis tools like Wireshark or tcpdump can be used to capture such requests. For example, a tcpdump command to filter HTTP POST requests to the vulnerable path could be: tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' and then manually inspect for POST requests to /boafrm/formPortFw with suspicious service_type values. Additionally, web application scanners or custom scripts can be used to send crafted POST requests to test for the vulnerability. [1, 2]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include discontinuing use of the affected TOTOLINK N300RH router firmware version 6.1c.1390_B20191101 and replacing the device with an alternative product, as no known mitigations or patches are currently available. Additionally, restricting access to the device's management interface from untrusted networks and implementing network-level protections such as firewall rules to block or limit HTTP POST requests to /boafrm/formPortFw can reduce exposure. Monitoring for exploit attempts and isolating vulnerable devices from critical network segments are also recommended. [2]