(Pwn2Own) Synology DiskStation Manager Netatalk Library Buffer Overflow Remote Code Execution Vulnerability
The afp_getappl function in Synology DiskStation Manager's Netatalk library copies user-supplied data into a fixed-length buffer without checking its length. A remote, unauthenticated attacker could exploit this to run arbitrary code as root.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing length check before copying attacker-controlled data into a fixed-size stack buffer in afp_getappl.
Impact
An unauthenticated remote attacker could execute arbitrary code with root privileges on affected installations.
What the attacker needed
Network access to the AFP service; no authentication needed
The fix
Synology issued an update that corrects the vulnerability.
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 report has not been written yet. The Original tab links to the source.
A buffer is a small reserved area of memory. This software copies data sent by a stranger into that area without first checking whether the data fits, so oversized data spills over into neighbouring memory. An attacker can use that spill to make the device run their own commands with the highest level of permission.
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.