exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

barracudeArbitrary.txt

barracudeArbitrary.txt
Posted Aug 17, 2006
Authored by Greg Sinclair

The Barracuda Spam Firewalls from versions 3.3.01.001 through 3.3.02.053 are vulnerable to arbitrary file disclosure via the preview_email.cgi script.

tags | exploit, arbitrary, cgi
SHA-256 | 8363029dcc673fedc8a62cebf430f37662f1cabb8e3673ab097dc0ee0fc14f0d

barracudeArbitrary.txt

Change Mirror Download
Title: Barracuda Arbitrary File Disclosure
Severity: High (Sensitive Information Disclosure)
Date: 01 August 2006
Version Affected: Barracuda Spam Firewall version 3.3.01.001 to 3.3.03.053
Discovered by: Greg Sinclair (gssincla@nnlsoftware.com)
Discovered on: 29 May 2006

Overview:
Barracuda Spam Firewalls (www.barracudanetworks.com) are vulnerable to
arbitrary file disclosure due to improper parameter sanitation.

Details:
The Barracuda Spam Firewalls from version 3.3.01.001 to 3.3.02.053 are vulnerable to arbitrary file disclosure via the preview_email.cgi script.

The /cgi-bin/preview_email.cgi script is designed to retrieve a message from the local message database on the Barracuda Spam Firewall. However, the "file" parameter which is passed via GET is not properly sanitized to restrict the file retrieval to the message database directories. The script looks for "/mail/mlog" in the file parameter but does not take into account
directory transversal arguments such as ".." The result is that any file that is accessible to the web server user is accessible from the web
interface. The script does require a valid user to be logged in to perform this attack, however using the "Barracuda Hardcoded Password Vulnerability" (NNL-20060801-01) guest password vulnerability this restriction can easily be overcome.

This particular problem is amplified by the fact that it is possible to download the full configuration file for the barracuda. The configuration file is periodically backed-up into the /tmp directory as "/tmp/backup/periodic_config.txt.tmp"

Message confidentiality is compromised by the fact that an attacker who is able to view the message log screen (which can be done via the guest password vulnerability) can easily view any message on the system. The message logs are stored as /mail/mlog/X/Y/email_address/msgID where X is the first character of email_address, Y is the second character of email_address, email_address is the recipient's email address and msgID is the message ID assigned to the message in question. So for example if
jon@smith.com received a message with messageID 1234, any user could view the message by entering /mail/mlog/j/o/jon@smith.com/1234

Proof of Concept:

https://<deviceIP>/cgi-bin/preview_email.cgi?file=/mail/mlog/../tmp/backup/periodic_config.txt.tmp

Recommendations:
* Never allow your barracuda web interface to be accessible from untrusted networks (especially the Internet)

* Upgrade to version 3.3.0.54 or later


Vendor Contact:
30 May 2006 - Initial Vendor Contact
24 June 2006 - Vendor replies with prospect of fix
17 July 2006 - NNL request status update, no reply
01 Aug 2006 - NNL releases vuln report, notifies vendor of release
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    0 Files
  • 8
    Aug 8th
    0 Files
  • 9
    Aug 9th
    0 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close