Title: Salim Gasmi GLD Postfix Greylisting Daemon Buffer Overflow Vulnerability
Severity: CRITICAL
Description:
Salim Gasmi's GLD Postfix greylisting daemon is a standalone daemon designed to implement the greylisting protocol as described at http://www.greylisting.org.
It is reported that GLD contains a buffer overflow vulnerability. This issue is due to a failure of the application to properly ensure that a fixed-sise memory buffer is sufficiently large prior to copying user-supplied input data into it.
Specifically, in the 'server.c' file, in the 'HandleChild()' function, there is a fixed-size buffer of 2048 bytes called 'buff'. In a 'sprintf()' function call, the 'buff' buffer is filled with user-supplied input data, allowing remote attackers to overflow the destination buffer.
Remote attackers may exploit this vulnerability to cause arbitrary machine code to be executed in the context of the affected service. As the service is designed to be run as the superuser, remote attackers may gain superuser privileges on affected computers.
GLD version 1.4 is reportedly affected, but prior versions may also be affected.
Affected Products:
- Gentoo Linux
- Salim Gasmi GLD 1.0.0
- Salim Gasmi GLD 1.1.0
- Salim Gasmi GLD 1.2.0
- Salim Gasmi GLD 1.3.0
- Salim Gasmi GLD 1.3.1
- Salim Gasmi GLD 1.4.0
References:
- Salim Gasmi: GLD Home Page
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.