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.
Problem types
CWE-121 Stack-based Buffer Overflow
Product status
Any version
Any version before RP2602
Timeline
| 2021-01-12: | Pierre Kim publicly discloses vulnerability. |
Credits
Pierre Barre
References
pierrekim.github.io/...berhome-ont-0day-vulnerabilities.html
pierrekim.github.io/advisories/2021-fiberhome-0x00-ont.txt
www.vulncheck.com/...fiberhome-routers-remote-stack-overflow