[UNIX] Mathopd Insecure Dump File Creation

SecuriTeam <[email protected]>
Newsgroups gmane.comp.security.securiteam
Message-ID <[email protected]>
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

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Mathopd Insecure Dump File Creation
------------------------------------------------------------------------


SUMMARY

" <http://www.mathopd.org/> Mathopd is a very small, yet very fast HTTP 
server for UN*X systems. Mathopd supports useful features of HTTP/1.1, 
such as persistent connections, partial responses and pipelining. It does 
not support things like content negotiation. The latest version of the 
software (1.5) also supports CGI/1.1".

Recently discovered vulnerability in Mathopd, can be exploited by 
malicious local users to corrupt the contents of arbitrary files on a 
vulnerable system.

DETAILS

Vulnerable Systems:
 * Mathopd version 1.5p4
 * Mathopd version 1.6b5

Immune Systems:
 * Mathopd version 1.5p5
 * Mathopd version 1.6b6 Beta

The vulnerability is caused due to the "internal_dump()" function creating 
dump files insecurely when a SIGWINCH signal is caught. This can be 
exploited via symlink attacks to append dump data to arbitrary files on 
the system with the privileges of the user running Mathopd.

Successful exploitation requires that Mathopd is running with the "-n" 
command line option, and the user running Mathopd resizes the terminal 
window.


ADDITIONAL INFORMATION

The information has been provided by  <mailto:[email protected]> Michiel 
Boland.
The original article can be found at:  
<http://www.mail-archive.com/mathopd%40mathopd.org/msg00272.html> 
http://www.mail-archive.com/mathopd%40mathopd.org/msg00272.html



======================================== 


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: [email protected] 
In order to subscribe to the mailing list, simply forward this email to: [email protected] 


==================== 
==================== 

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.