GHSL-2020-103: OOB read vulnerability in FreeRDP license_read_new_or_upgrade_license_packet - CVE-2020-11099
The FreeRDP client's license packet parser did not validate the length of a data blob, allowing a malicious server to cause out-of-bounds reads. An attacker could potentially read memory beyond the allocated buffer.
Originally disclosed on GitHub Security Lab
An out-of-bounds (OOB) read vulnerability has been detected in FreeRDP’s licensereadneworupgradelicensepacket function due to an incorrect handling of data blob sizes.
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
Impact
This issue may lead to Out-of-Bounds read.
What the attacker needed
Malicious RDP server
The fix
The vendor fixed the bug and released a patch.
How it was found
- A malicious server sends a license packet with a small or zero blob length.
- The client allocates a buffer of that size.
- The client then reads multiple fields from the buffer without checking bounds, causing out-of-bounds reads.
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.
When a program reads data from a network, it must check that the data fits within the buffer it allocated. Here, the program trusted a length field from the server and used it to allocate a small buffer, then read more data than the buffer could hold, causing it to access memory outside the buffer. This is called an out-of-bounds read and can leak sensitive information.
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.