(CVE-2018-20336) ASUSWRT Stack Overflow in wanduck.c
A stack overflow exists in the parse_req_queries function of wanduck.c in ASUSWRT router firmware. The text claims this may lead to an information leak, but gives no further detail on how.
starlabs.sg
Published on starlabs.sg
There is a stack overflow issue in parsereqqueries function in wanduck.c, which may lead to information leak.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the parse_req_queries function copies request query data into a fixed-size stack buffer without checking its length.
Impact
The overflow may lead to an information leak, according to the text; no further impact is described.
What the attacker needed
Access to the router's web interface
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Routers run small programs that handle web requests from your browser. A stack overflow happens when a program writes more data into a fixed-size memory area than it can hold, which can corrupt nearby memory. Here the text says this could let an attacker leak information, though it does not explain how.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.