[UNIX] Linux nfs-utils xlog() Off-by-One Bug
From: SecuriTeam (support_at_securiteam.com)
Date: 07/17/03
- Previous message: SecuriTeam: "[NT] Moby's Netsuite Directory Traversal Vulnerability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 17 Jul 2003 13:40:28 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
Beyond Security in Canada
Toronto-based Sunrays Technologies is now Beyond Security's representative in Canada.
We welcome ISPs, system integrators and IT systems resellers
to promote the most advanced vulnerability assessment solutions today.
Contact us at 416-482-0038 or at canadasales@beyondsecurity.com
- - - - - - - - -
Linux nfs-utils xlog() Off-by-One Bug
------------------------------------------------------------------------
SUMMARY
<http://sourceforge.net/projects/nfs/> Linux NFS utils package contains
remotely exploitable off-by-one bug. A local or remote attacker could
exploit this vulnerability by sending a specially crafted request to
rpc.mountd daemon.
DETAILS
Vulnerable systems:
* nfs-utils version 1.0.3 and prior
Immune systems:
* nfs-utils version 1.0.4 and above
An off-by-one bug exist in xlog() function which handles logging of
requests. An overflow occurs when function is trying to add missing
trailing new line character to logged string.
Due to miscalculation, if a string passed to the functions is equal or
longer than 1023 bytes, the '\0' byte will be written beyond the buffer:
- ------8<------cut-here------8<------
char buff[1024];
...
va_start(args, fmt);
vsnprintf(buff, sizeof (buff), fmt, args);
va_end(args);
buff[sizeof (buff) - 1] = 0;
if ((n = strlen(buff)) > 0 && buff[n-1] != '\n') {
buff[n++] = '\n'; buff[n++] = '\0';
}
- ------8<------cut-here------8<------
Impact:
Local or remote attacker that is capable of sending an RPC request to a
vulnerable mount daemon could execute arbitrary code or cause denial of
service.
Vendor status:
Vendor has been notified on June 10, 2003. The fix is incorporated in
recent 1.0.4 release of nfs-utils.
ADDITIONAL INFORMATION
The information has been provided by <mailto:funkysh@isec.pl> Janusz
Niewiadomski.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: SecuriTeam: "[NT] Moby's Netsuite Directory Traversal Vulnerability"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [NT] Vulnerability Report for Windows SMB DoS
... cross-platform mechanism for client systems to request file services from ...
In order to exploit the vulnerability a user account is needed for the ... is therefore
vulnerable to a denial of service attack. ... Later in the processing of the request, at
SRV.SYS+33209h another buffer ... (Securiteam) - CORE-20020618: Vulnerabilities in Windows SMB (DoS)
... Denial of Service Vulnerabilities in Windows SMB implementation ... mechanism
for client systems to request file services from server ... It might be possible to abuse
this vulnerability to execute arbitrary ... Later in the processing of the request, at
SRV.SYS+33209h another buffer ... (NT-Bugtraq) - CORE-20020618: Vulnerabilities in Windows SMB (DoS)
... Denial of Service Vulnerabilities in Windows SMB implementation ... mechanism
for client systems to request file services from server ... It might be possible to abuse
this vulnerability to execute arbitrary ... Later in the processing of the request, at
SRV.SYS+33209h another buffer ... (Bugtraq) - SecurityFocus Microsoft Newsletter #101
... MICROSOFT VULNERABILITY SUMMARY ... Tomahawk Technologies SteelArrow Cookie
HTTP Header Buffer... ... MySQL Null Root Password Weak Default Configuration Vulnerability
... Microsoft Network Share Provider SMB Request Buffer Overflow... ... (Focus-Microsoft) - [NT] Windows Media Services Remote Command Execution (Large POST)
... Toronto-based Sunrays Technologies is now Beyond Security's representative in Canada.
... Extension for Windows Media Services Could Cause Code Execution, ... vulnerability
exists because an attacker could send specially formed HTTP ... In no event shall we be liable
for any damages whatsoever including direct, indirect, incidental, consequential, loss of business
profits or special damages. ... (Securiteam)