Alcatel Omnivista — 1 vulnerability check
noctis ships 1 vulnerability check for Alcatel Omnivista, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Alcatel-Lucent OmniVista 8770 unauthenticated GIOP scheduler access (RCE)
| CVE | CVE-2016-9796 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | giop, unknown |
| Detection | script, set_var, tcp_open, tcp_send, sleep, tcp_close, match · highest QoD 75 |
| Feed | tests/vulnerabilities/alcatel-omnivista/CVE-2016-9796.yaml |
Connects to the OmniVista 8770 CORBA object request broker (TCP 30024) and, without any credentials, calls the AddJobSet method of the server's scheduler interface with a random job set name. The finding is confirmed when the server answers with a successful GIOP reply that carries the object reference of a newly created job set (IDL:scheduler.util.nmd.alcatel.com/SCHED/JobSet:1.0): the scheduler, whose jobs run programs on the server as SYSTEM, accepts commands from unauthenticated clients. The test then deletes the job set it created with DeleteJobSet. No job is added and nothing is executed on the server.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Opens a persistent TCP/TLS socket
- Sends a binary frame on the open socket
- Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Sends a binary frame on the open socket
- Parses / computes the next value with a Rhai script
- Checks
p.okfor^true$→ finding QoD 75: Alcatel-Lucent OmniVista 8770 scheduler accepts unauthenticated GIOP requests (CVE-2016-9796)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2016-9796
- https://blog.malerisch.net/2016/12/alcatel-omnivista-8770-unauth-rce-giop-corba.html
- https://github.com/malerisch/omnivista-8770-unauth-rce
- https://www.exploit-db.com/exploits/40862
Feed source — tests/vulnerabilities/alcatel-omnivista/CVE-2016-9796.yaml
# Alcatel-Lucent OmniVista 8770 2.0 – 3.0 — unauthenticated CORBA/GIOP scheduler
# interface (CVE-2016-9796).
#
# Source check: OpenVAS/Greenbone NVT 2016/gb_alcatel_luc_omnvista-rce-win.nasl
# (OID 1.3.6.1.4.1.25623.1.0.107112, GPL-2.0-only); same AddJobSet frame as the
# public proof of concept (EDB 40862, blog.malerisch.net 2016-12).
#
# The OmniVista 8770 server exposes omniORB objects on TCP 30024 that anyone can
# invoke without authentication. The scheduler object (object key
# "SchedulerInterface\0") offers AddJobSet / AddJob / ExecuteNow, which together
# run arbitrary programs as SYSTEM. The vendor never shipped a fix; the
# mitigation is to firewall the ORB ports.
#
# What this feed does (one TCP connection, GIOP 1.0, big-endian):
# 1. AddJobSet(<random 7-char name>, ...) on the scheduler key — the frame
# of the source check / PoC, only the job set name is per scan.
# 2. The reply is parsed as CDR: GIOP Reply, reply status NO_EXCEPTION, and a
# returned object reference whose type id is
# IDL:scheduler.util.nmd.alcatel.com/SCHED/JobSet:1.0 — the server created
# a job set for an unauthenticated peer. Its IIOP host and 16-byte object
# key are read from the IOR (falling back to the last 16 bytes of the
# reply, as the PoC does).
# 3. DeleteJobSet on the returned key, so nothing is left on the server.
# No job is added and nothing is executed: the proof is that a privileged
# scheduler method answered an unauthenticated caller with a new object.
# A server that takes longer than ~5 s to answer AddJobSet is reported clean
# (same window as the source check) and may keep one empty "NOC…" job set.
#
# Findings:
# QoD 75 — AddJobSet accepted without authentication (JobSet IOR returned).
#
# Better than the OpenVAS NVT:
# - the NVT's first regex hard-codes its lab server's host name and object
# key bytes ("...JobSetOMNIVISTAOMNIVISTAHuQ"), so it misses every other
# installation; this feed parses the reply status and the IOR type id;
# - the NVT's second request is raw_string() of a quoted string, i.e. the
# ASCII text "0x47, 0x49, ..." rather than a GIOP frame, and it then looks
# for "GIOPGIOP": that step proves nothing; it is dropped;
# - the NVT leaves its job set "MYJOB01" on the server; this feed deletes the
# job set it created;
# - the NVT only runs when an OmniVista web front end was detected; this
# feed runs on the ORB port itself.
uid: e7845470-6c89-4b5b-a437-ce93e9612fd4
name: "Alcatel-Lucent OmniVista 8770 unauthenticated GIOP scheduler access (RCE)"
description: |
Connects to the OmniVista 8770 CORBA object request broker (TCP 30024) and,
without any credentials, calls the AddJobSet method of the server's
scheduler interface with a random job set name. The finding is confirmed
when the server answers with a successful GIOP reply that carries the
object reference of a newly created job set
(IDL:scheduler.util.nmd.alcatel.com/SCHED/JobSet:1.0): the scheduler, whose
jobs run programs on the server as SYSTEM, accepts commands from
unauthenticated clients. The test then deletes the job set it created with
DeleteJobSet. No job is added and nothing is executed on the server.
cves: [CVE-2016-9796]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [alcatel-lucent, omnivista, omnivista-8770, corba, giop, omniorb, rce, auth-bypass, intrusive, tcp-30024]
# nmap -sV names a GIOP endpoint "giop"; TCP 30024 has no nmap-services entry,
# so without version detection it is "unknown".
services: [giop, unknown]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2016-9796"
- "https://blog.malerisch.net/2016/12/alcatel-omnivista-8770-unauth-rce-giop-corba.html"
- "https://github.com/malerisch/omnivista-8770-unauth-rce"
- "https://www.exploit-db.com/exploits/40862"
steps:
# 1 — the AddJobSet frame (294-byte GIOP 1.0 request body). Only the 7-char
# job set name differs from the source check, so every size stays valid.
- id: build
action: script
store_as: b
code: |
let name = "NOC" + toupper(oob_token.sub_string(0, 4));
let f = "47494f50010000000000012600000000";
f += "0000000101000000000000135363686564756c6572496e7465726661636500";
f += "000000000a4164644a6f625365740000000000000000000008";
f += hexstr(name);
f += "00000007e0000000060000001b0000001000000024000000000000000000000000000000";
f += "0000000000000000000000000000000000002a0000000000000000000000000000000000";
f += "000000000000000000000000000000000000000000000000000000000000000000000000";
f += "083131313131313100010000000000000000000000000000010000000000000000000000";
f += "000000003f7569643d";
f += hexstr("xxx.y.zzzzz,cn=Administrators,cn=8770 administration,o=nmc");
f += "00000000000a6f6d6e69766973626200";
#{ name: name, frame: f }
- id: init-js
action: set_var
var_name: js
var_value: ""
- id: init-late
action: set_var
var_name: js_late
var_value: ""
- id: open
action: tcp_open
handle: ov
port: "{{port}}"
timeout_secs: 10
store_as: conn
- id: add-jobset
action: tcp_send
handle: ov
condition: "conn.connected == true"
send_hex: "{{b.frame}}"
timeout_secs: 10
store_as: js
# 2 — the source check waits 5 s for this reply; one 500 ms read can miss a
# slow server, so read once more after a pause.
- id: pause
action: sleep
condition: "conn.connected == true && js.responded == false"
duration_ms: 4500
- id: add-jobset-late
action: tcp_send
handle: ov
condition: "conn.connected == true && js.responded == false"
send: ""
timeout_secs: 10
store_as: js_late
# 3 — parse the GIOP Reply as CDR (either byte order).
- id: parse
action: script
store_as: p
code: |
fn rd(h, off, le) {
let s = substr(h, off * 2, off * 2 + 7);
if le { u32le(s) } else { u32be(s) }
}
let h = "";
if type_of(js) == "map" && type_of(js.response_hex) == "string" { h = js.response_hex; }
if h == "" && type_of(js_late) == "map" && type_of(js_late.response_hex) == "string" {
h = js_late.response_hex;
}
let n = h.len() / 2;
let ok = false;
let status = -1;
let key = "";
let host = "";
let tid = hexstr("IDL:scheduler.util.nmd.alcatel.com/SCHED/JobSet:1.0") + "00";
if n >= 24 && substr(h, 0, 7) == "47494f50" && substr(h, 14, 15) == "01" {
let le = u8(substr(h, 12, 13)) % 2 == 1;
let pos = 12;
let nctx = rd(h, pos, le);
pos += 4;
let i = 0;
while i < nctx && i < 16 && pos + 8 <= n {
let clen = rd(h, pos + 4, le);
pos += 8 + clen;
pos = (pos + 3) / 4 * 4;
i += 1;
}
status = rd(h, pos + 4, le);
pos += 8;
let tlen = rd(h, pos, le);
if status == 0 && tlen == 52 && substr(h, (pos + 4) * 2, (pos + 56) * 2 - 1) == tid {
ok = true;
pos = (pos + 56 + 3) / 4 * 4;
let e = pos + 12;
let elen = rd(h, pos + 8, le);
if rd(h, pos + 4, le) == 0 && e + elen <= n && elen >= 12 {
let ele = u8(substr(h, e * 2, e * 2 + 1)) % 2 == 1;
let hl = rd(h, e + 4, ele);
if hl >= 2 && hl <= 256 && e + 8 + hl <= e + elen {
let hh = substr(h, (e + 8) * 2, (e + 8 + hl - 1) * 2 - 1);
host = base64_decode(base64_encode_hex(hh));
let q = e + 8 + hl - e;
q = (q + 1) / 2 * 2 + 2;
q = (q + 3) / 4 * 4;
let kl = rd(h, e + q, ele);
if kl >= 1 && kl <= 64 && e + q + 4 + kl <= e + elen {
key = substr(h, (e + q + 4) * 2, (e + q + 4 + kl) * 2 - 1);
}
}
}
if key == "" { key = substr(h, (n - 16) * 2); }
}
}
if ereg("[^A-Za-z0-9._-]", host) { host = ""; }
#{ ok: ok, status: status, key: key, keylen: key.len() / 2, host: host }
# 4 — clean up: delete the job set we created (GIOP 1.0 Request, big-endian).
- id: build-delete
action: script
condition: "p.ok == true"
store_as: del_frame
code: |
let body = "000000000000009e01000000" + p32be(p.keylen) + p.key;
while (body.len() / 2) % 4 != 0 { body += "00"; }
body += "0000000d44656c6574654a6f6253657400";
while (body.len() / 2) % 4 != 0 { body += "00"; }
body += "00000000";
"47494f5001000000" + p32be(body.len() / 2) + body
- id: init-del
action: set_var
var_name: del
var_value: ""
- id: delete-jobset
action: tcp_send
handle: ov
condition: "p.ok == true"
send_hex: "{{del_frame}}"
timeout_secs: 10
store_as: del
- id: close
action: tcp_close
handle: ov
- id: cleanup-result
action: script
store_as: c
code: |
let r = "not confirmed";
if type_of(del) == "map" && type_of(del.response_hex) == "string" {
let h = del.response_hex;
if substr(h, 0, 7) == "47494f50" && substr(h, 14, 15) == "01" && h.len() >= 48 {
let le = u8(substr(h, 12, 13)) % 2 == 1;
let n = h.len() / 2;
let pos = 16;
let nctx = if le { u32le(substr(h, 24, 31)) } else { u32be(substr(h, 24, 31)) };
let i = 0;
while i < nctx && i < 16 && pos + 8 <= n {
let cs = substr(h, (pos + 4) * 2, (pos + 4) * 2 + 7);
let clen = if le { u32le(cs) } else { u32be(cs) };
pos += 8 + clen;
pos = (pos + 3) / 4 * 4;
i += 1;
}
let s = substr(h, (pos + 4) * 2, (pos + 4) * 2 + 7);
let st = if le { u32le(s) } else { u32be(s) };
if pos + 8 <= n && st == 0 { r = "deleted"; }
}
}
r
- id: report
action: match
source: p.ok
pattern: "^true$"
condition: "p.ok == true"
on_match:
finding:
title: "Alcatel-Lucent OmniVista 8770 scheduler accepts unauthenticated GIOP requests (CVE-2016-9796)"
description: "Without any credentials, the OmniVista 8770 CORBA scheduler interface on this port executed AddJobSet and returned the object reference of a new job set (IDL:scheduler.util.nmd.alcatel.com/SCHED/JobSet:1.0). The same unauthenticated interface offers AddJob and ExecuteNow, which run arbitrary programs on the server as SYSTEM (CVE-2016-9796). The job set created by the test was deleted afterwards."
remediation: "No fixed release exists. Restrict access to the OmniVista 8770 ORB ports (TCP 30024 and the other omniORB ports) with firewall rules so that only the OmniVista clients and servers that need them can connect, as the vendor's security deployment guidelines require."
confidence_delta: 0.50
qod: 75
evidence: "AddJobSet on SchedulerInterface (TCP {{port}}) answered NO_EXCEPTION with a JobSet IOR; job set {{b.name}}, IOR host '{{p.host}}', object key {{p.key}}; cleanup DeleteJobSet: {{c}}"