FOE_read and FOE_write store the filename length as uint8_t, truncating it modulo 256. When ...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| RT-Labs ABSOES |
< 3.2.1→ 3.2.1 |
3.2.1 |
Original description The description as published by the source.
FOE_read and FOE_write store the filename length as uint8_t, truncating it modulo 256. When (mbxheader.length - ESC_FOEHSIZE) is a multiple of 256, the length becomes 0. Additionally, a request whose mailbox length equals ESC_FOEHSIZE exactly also produces a length of 0 without any truncation. In both cases FOE_fopen calls strncmp with a length of 0, which always returns equal, so the first registered file whose password is 0 is opened regardless of the filename the master sent.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web docs.rt-labs.com
- web nvd.nist.gov
- web github.com