Visitorbook LE Multiple Vulnerabilities
From: Paul Johnston (paul_at_westpoint.ltd.uk)
Date: 12/10/03
- Previous message: Cisco Systems Product Security Incident Response Team: "Cisco Security Advisory: Unity Vulnerabilities on IBM-based Servers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 10 Dec 2003 11:19:20 +0000 To: bugtraq@securityfocus.com
Westpoint Security Advisory
Title: VisitorBook LE Mail Relay and Cross Site Scripting
Risk Rating: Moderate
Software: FreeScripts VisitorBook LE
Platforms: Most Unix
Vendor URL: http://www.freescripts.com/
Author: Paul Johnston <paul@westpoint.ltd.uk>
Date: 10th December 2003
Advisory ID#: wp-03-0001
Overview
========
VisitorBook is a "customizable, database-driven guestbook software ...
used all
over the net", which fails to escape various control characters in user
input.
This results in:
* Mail relaying
* Data loss
* Cross site scripting
Details
=======
Open mail relay
---------------
If $mailuser is set to 1 (not the default) then the script can be used as a
mail relay. This arises because line breaks are not escaped in the email
field,
so you can relay mail by setting the email address to something like:
victim@example.com
From: spammer@example.com
Subject: $$$ hardcore XXX
...
Guestbook database deleting / DoS
---------------------------------
Another consequence of the script failing to escape line breaks is that
anyone
can remotely delete the log - they just need to submit an entry with
more line
breaks that the value of $max_posts.
If you do this with Windows line breaks, then the database file is so
corrupted
afterwards that the script always gives "500 Internal Server Error".
The script also fails to escape pipe "|" characters, which it uses as a
field
deliminator, although it's unlikely this can be exploited.
Cross site scripting
--------------------
The "do" parameter is not escaped at all, which you can exploit like:
http://fester/cgi-bin/visitorbook.pl?do=