Reolink RLC-410W device TestEmail out-of-bounds write vulnerability
An out-of-bounds write exists in the TestEmail API of the Reolink RLC-410W camera due to uninitialised stack buffers and a length calculation error. An authenticated attacker could send a crafted request to overflow a stack buffer and potentially execute code.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the device TestEmail functionality of reolink RLC-410W v3.0.0.13620121102. A specially-crafted network request can lead to an out-of-bounds write.
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 the concatenate_recipients function uses a signed size variable that can become negative, which is then treated as a huge unsigned value in snprintf, and the input strings may lack null terminators due to strncpy usage.
Impact
An authenticated attacker could cause a stack-based buffer overflow, potentially leading to code execution or a denial of service.
What the attacker needed
Admin privileges on the device; network access to the camera
The fix
The vendor patched the vulnerability.
How it was found
- Send an HTTP request to the TestEmail API with admin credentials.
- Include addr1 and addr2 strings of 127 characters each, and addr3 of 100 characters.
- The concatenate_recipients function miscalculates remaining buffer size, leading to a negative value.
- The next snprintf writes addr3 data beyond the recpt_normal buffer, causing a stack overflow.
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.
This report describes a memory corruption bug in a security camera. When the camera tries to combine email addresses for a test email, it can write past the end of a buffer because it miscalculates available space and assumes strings are properly terminated. An attacker with admin access could exploit this to crash the device or possibly run their own code.
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.