SB2020010612 - Multiple vulnerabilities in uftpd daemon
Published: January 6, 2020 Updated: January 31, 2020
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 secuirty vulnerabilities.
1) Buffer overflow (CVE-ID: CVE-2020-5204)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in "handle_PORT" in "ftpcmd.c" file when a buffer that is 16 bytes large being filled via "sprintf()" with user input based on the format specifier string %d.%d.%d.%d. A remote attacker can trigger memory corruption and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
2) Path traversal (CVE-ID: CVE-2020-5221)
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to the lack of a well-written chroot jail in "compose_abspath()" function. A remote attacker can use multiple different FTP commands and read and write to arbitrary locations on the filesystem.
Remediation
Install update from vendor's website.
References
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00034.html
- https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd
- https://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvq
- https://github.com/troglobit/uftpd/commit/455b47d3756aed162d2d0ef7f40b549f3b5b30fe
- https://github.com/troglobit/uftpd/security/advisories/GHSA-wmx8-v7mx-6x9h