what you don't know can hurt you

Barracuda WAF V360 Firmware 8.0.1.014 Credential Disclosure

Barracuda WAF V360 Firmware 8.0.1.014 Credential Disclosure
Posted Jul 6, 2017
Authored by Matthew Bergin, Joshua Hardin | Site korelogic.com

Firmware reversing of the Barracuda Web Application Firewall uncovered development artifacts that should have been removed on the production images. Once the encryption scheme was broken, many QA and development tools were discovered on the affected partitions. Some of these contained sensitive information such as authentication credentials used by internal developers. Firmware version 8.0.1.014 is affected.

tags | exploit, web
SHA-256 | 41af7991ec90055d2e9576142c80137283f105fdc993d700215ae487f134beef

Barracuda WAF V360 Firmware 8.0.1.014 Credential Disclosure

Change Mirror Download
KL-001-2017-011 : Barracuda WAF Internal Development Credential Disclosure

Title: Barracuda WAF Internal Development Credential Disclosure
Advisory ID: KL-001-2017-011
Publication Date: 2017.07.06
Publication URL: https://www.korelogic.com/Resources/Advisories/KL-001-2017-011.txt


1. Vulnerability Details

Affected Vendor: Barracuda
Affected Product: Web Application Firewall V360
Affected Version: Firmware v8.0.1.014
Platform: Embedded Linux
CWE Classification: CWE-489: Leftover Debug Code, CWE-200: Information Exposure
Impact: Privileged Access
Attack vector: Code Review

2. Vulnerability Description

Firmware reversing of the Barracuda Web Application Firewall
uncovered development artifacts that should have been removed
on the production images. Once the encryption scheme was broken,
many QA and development tools were discovered on the affected
partitions. Some of these contained sensitive information such
as authentication credentials used by internal developers.

3. Technical Description

root@(none):/realroot/root# grep -ri "bospw" *|more
newfile/lib/Stub.pm: 'BOSPW' => undef,
newfile/lib/Stub.pm: my $bospw = $self->_retrieve_bos_pw();
newfile/lib/Stub.pm: $self->_set_BOSPW($bospw);
newfile/lib/Stub.pm: my $bospw = Postbuild::get_bos_pw();
newfile/lib/Stub.pm: my $url =
"https://$bospw\@ops.barracudanetworks.com:443/cgi-old/createserialkey.cgi?model=$tmpmodel&date=$date&mac=$tmpMAC&revision=$tmprevision&hw=$tmphw&devel=$devel&vm=$vm&
platform=$platform&buildkey=$bdvers";
newfile/lib/Stub.pm: $bospw = Postbuild::get_bos_pw();
newfile/lib/Stub.pm: $url =
"https://$bospw\@ops.barracudanetworks.com:443/cgi-old/createserialkey.cgi?model=$tmpmodel&date=$date&mac=$tmpMAC&revision=$tmprevision&hw=$tmphw&devel=$devel&vm=$vm
&platform=$platform&dest_country=$ship_code&buildkey=$bdvers";
newfile/lib/Stub.pm: my $bospw;
newfile/lib/Stub.pm: if ( -f "/root/bospw" ) {
newfile/lib/Stub.pm: open IN, "/root/bospw";
newfile/lib/Stub.pm: $bospw = <IN>;
newfile/lib/Stub.pm: chomp($bospw);
newfile/lib/Stub.pm: $bospw = "manufacturing:N3rfH3rders";
newfile/lib/Stub.pm: return $bospw;
newfile/lib/Stub.pm:sub _get_BOSPW() {
newfile/lib/Stub.pm: return $self->{'BOSPW'};
newfile/lib/Stub.pm:sub _set_BOSPW() {
newfile/lib/Stub.pm: my ($self, $BOSPW) = @_;
newfile/lib/Stub.pm: $self->{'BOSPW'} = $BOSPW;
newfile/lib/Postbuild.pm: my $bospw = "manufacturing:N3rfH3rders";
newfile/lib/Postbuild.pm: if( -f "/root/bospw" ) {
newfile/lib/Postbuild.pm: open IN, "/root/bospw";
newfile/lib/Postbuild.pm: $bospw = <IN>;
newfile/lib/Postbuild.pm: chomp($bospw);
newfile/lib/Postbuild.pm: return $bospw;
newfile/lib/Postbuild.pm: my $bospw = get_bos_pw();
newfile/lib/Postbuild.pm: my $url =
"https://$bospw\@ops.barracuda.com:443/cgi-old/createserialkey.cgi?model=$tmpmodel&date=$date&mac=$tmpMAC&revision=$tmprevision&hw=$tmphw&devel=$devel&vm=$vm&pl
atform=$platform&bdvers=$bdvers";
newfile/lib/Postbuild.pm: $url =
"https://$bospw\@ops.barracuda.com:443/cgi-old/createserialkey.cgi?model=$tmpmodel&date=$date&mac=$tmpMAC&revision=$tmprevision&hw=$tmphw&devel=$devel&vm=$
vm&platform=$platform&dest_country=$ship_code&bdvers=$bdvers";
newfile/lib/Postbuild.pm: my $bospw = get_bos_pw();
newfile/lib/Postbuild.pm: my $url =
"https://$bospw\@ops.barracudanetworks.com:443/~order/prod_void.cgi?void_serial=$serial";
postbuild-code-platform-2.tar.gz.integrit:!/root/bospw
qaclear: unlink("/root/bospw");
qaclear.2:unlink("/root/bospw");
qapass:my @bospw = ("manufacturing:N3rfH3rders");
qapass:my $extrabospw = injectAndGet("__METHOD__://__POSTBUILDIP__/postbuild/files/os_updates2/root/bospw", {
METHOD => [ "http", "https" ], POSTBUILDIP => [ "mfg-postbuild.englab.cudanet.local" ] }, 10
);
qapass:if( defined($extrabospw) ) {
qapass: unshift @bospw, split(/\n/, $extrabospw);
qapass: $url = "https://__BOSPW__\@__BOSIP__/~order/prod_accept.cgi?serial=$serial&wh=$warehouse&firmware=$firmware"
qapass: $url = "https://__BOSPW__\@__BOSIP__/~order/prod_accept.cgi?serial=$serial&firmware=$firmware";
qapass:if (!defined(injectAndGet($url, { BOSPW => \@bospw, BOSIP => \@bosip } ))) {
qapass:$url = "https://__BOSPW__\@__BOSIP__/cgi-bin/get_serial_status.cgi?serial=$serial";
qapass:my $content = injectAndGet($url, { BOSPW => \@bospw, BOSIP => \@bosip } );
qapass:$url =
"https://__BOSPW__\@__BOSIP__/cgi-bin/shipping.cgi?option=qadocs&xlist=1&box_label=1&printer_loc=manufacturing&submit=Print&serial_id=$serial&override=$serial$loc_string";
qapass: $url =
"https://__BOSPW__\@__BOSIP__/cgi-bin/shipping.cgi?option=qadocs&xlist=1&box_label=1&link_code=1&printer_loc=manufacturing&submit=Print&serial_id=$serial&override=$serial$loc_string";
qapass:if( !defined(injectAndGet($url, { BOSPW => \@bospw, BOSIP => \@bosip })) ) {
qapass:$url =
"https://__BOSPW__\@__BOSIP__/cgi-bin/shipping.cgi?option=qadocs&serial_label=1&printer_loc=manufacturing&submit=Print&serial_id=$serial&override=$serial$loc_string";
qapass:if( !defined(injectAndGet($url, { BOSPW => \@bospw, BOSIP => \@bosip })) ) {


4. Mitigation and Remediation Recommendation

The vendor has patched this vulnerability in the lastest
virtual appliance release.

5. Credit

This vulnerability was discovered by Matt Bergin (@thatguylevel)
of KoreLogic, Inc. and Joshua Hardin.

6. Disclosure Timeline

2016.12.20 - KoreLogic sends vulnerability report and PoC to
Barracuda.
2016.12.21 - Barracuda acknowledges receipt of the vulnerability
report.
2017.01.09 - Barracuda informs KoreLogic that they are working
on remediation for this issue.
2017.01.26 - Barracuda asks for additional time beyond the
standard 45 business day embargo to address this
and other issues reported by KoreLogic.
2017.02.27 - 45 business days have elapsed since the issue was
reported.
2017.04.10 - 75 business days have elapsed since the issue was
reported.
2017.05.15 - 100 business days have elapsed since the issue was
reported.
2017.05.24 - Barracuda updates KoreLogic on the status of the
remediation efforts.
2017.06.13 - 120 business days have elapsed since the issue was
reported.
2017.06.27 - Barracuda informs KoreLogic that the issue has
been fixed in the latest release of the WAF
virtual appliance.
2017.07.06 - KoreLogic public disclosure.

7. Proof of Concept

See 3. Technical Description


The contents of this advisory are copyright(c) 2017
KoreLogic, Inc. and are licensed under a Creative Commons
Attribution Share-Alike 4.0 (United States) License:
http://creativecommons.org/licenses/by-sa/4.0/

KoreLogic, Inc. is a founder-owned and operated company with a
proven track record of providing security services to entities
ranging from Fortune 500 to small and mid-sized companies. We
are a highly skilled team of senior security consultants doing
by-hand security assessments for the most important networks in
the U.S. and around the world. We are also developers of various
tools and resources aimed at helping the security community.
https://www.korelogic.com/about-korelogic.html

Our public vulnerability disclosure policy is available at:
https://www.korelogic.com/KoreLogic-Public-Vulnerability-Disclosure-Policy.v2.2.txt

Login or Register to add favorites

File Archive:

May 2022

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