Description
FiberHome AN5506-04-FA firmware versions up to and including RP2631 and HG6245D prior to RP2602 contain a stack-based buffer overflow, as the HTTP service ('webs') fails to enforce maximum lengths for Cookie header values. When a cookie longer than 511 bytes is processed, a stack buffer is overrun, leading to a crash or potential control of execution flow.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| FiberHome | AN5506-04-FA | ≤ RP2631 | — |
| FiberHome | HG6245D | < RP2602 | RP2602 |
References
- https://pierrekim.github.io/blog/2021-01-12-fiberhome-ont-0day-vulnerabilities.html#misc-remote-stack-overflow-an5506 technical-description exploit
- https://pierrekim.github.io/advisories/2021-fiberhome-0x00-ont.txt technical-description exploit
- https://www.vulncheck.com/advisories/fiberhome-routers-remote-stack-overflow third-party-advisory