OpenNMS — 1 vulnerability check
noctis ships 1 vulnerability check for OpenNMS, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
OpenNMS < 14.0.3 Default Credentials rtc/rtc
| CVE | CVE-2015-0975, CVE-2015-7856 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | default-credentials — Default credentials |
| Services | http, https |
| Detection | tcp_connect, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/opennms/CVE-2015-0975.yaml |
OpenNMS before 14.0.3 ships an enabled default account (rtc/rtc) for the Spring Security login. This check logs in with rtc/rtc through /login.jsp → /j_spring_security_check → /frontPage.htm, carrying the JSESSIONID session cookie, and confirms the authenticated web console (Statistics / Dashboard / Change Password / Log Out markers) is reachable — proving the default credentials are active. OpenNMS < 14.0.3 is also prone to a stored XSS (CVE-2015-7856) tracked by the same advisory.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /opennms/login.jsp HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
POST /opennms/j_spring_security_check HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /opennms/frontPage.htm HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
resp_front.bannerfor>Statistics<→ finding QoD 75: OpenNMS default credentials rtc/rtc accepted: authenticated frontPage.htm reachable (Statistics / Dashboard / Change Password / Log Out / T…
References:
Feed source — tests/vulnerabilities/opennms/CVE-2015-0975.yaml
# OpenNMS < 14.0.3 Default Credentials (CVE-2015-0975 / CVE-2015-7856)
# Detection ported from OpenVAS/Greenbone NASL 2015/gb_opennms_mult_vuln.nasl (GPL-2.0-only).
#
# The NASL is a *default-credentials* check against the OpenNMS web console. It
# performs the full Spring-Security login flow with the shipped rtc/rtc account:
# 1. GET <dir>/login.jsp — confirm the OpenNMS fingerprint and grab JSESSIONID.
# 2. POST <dir>/j_spring_security_check (j_username=rtc&j_password=rtc, cookie
# carried) — a successful login returns 302 Found with Location: .../index.jsp
# and NO ?login_error=1 query string.
# 3. GET <dir>/frontPage.htm (cookie carried) — the authenticated landing page
# contains >Statistics<, >Dashboard<, >Change Password<, >Log Out< and
# >The OpenNMS Group, Inc.
# The finding keys on the authenticated frontPage markers reached via the default
# credentials, not merely on a session cookie being issued.
#
# tcp_connect is used for every request because the check greps raw response text
# (the Set-Cookie header, the 302 status line and Location header), which the
# `match` action can only reach via resp.banner — resp.headers cannot be indexed
# by the match/template path resolver. tcp_connect auto-wraps TLS for https.
uid: be40a09b-62e6-4aea-a737-8d248d6c790b
name: "OpenNMS < 14.0.3 Default Credentials rtc/rtc (CVE-2015-0975)"
description: |
OpenNMS before 14.0.3 ships an enabled default account (rtc/rtc) for the Spring
Security login. This check logs in with rtc/rtc through /login.jsp →
/j_spring_security_check → /frontPage.htm, carrying the JSESSIONID session
cookie, and confirms the authenticated web console (Statistics / Dashboard /
Change Password / Log Out markers) is reachable — proving the default
credentials are active. OpenNMS < 14.0.3 is also prone to a stored XSS
(CVE-2015-7856) tracked by the same advisory.
cves: [CVE-2015-0975, CVE-2015-7856]
cvss: 10.0
severity: critical
confidence_base: 0.30
category: default-credentials
tags: [opennms, java, default-accounts, auth-bypass, mult-vuln]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2015-0975"
- "https://nvd.nist.gov/vuln/detail/CVE-2015-7856"
- "OpenVAS/Greenbone NASL 2015/gb_opennms_mult_vuln.nasl (GPL-2.0-only)"
steps:
# ── 1. GET /login.jsp — confirm OpenNMS fingerprint and extract JSESSIONID ──
- id: login-page
action: tcp_connect
port: "{{port}}"
send: "GET /opennms/login.jsp HTTP/1.0\r\nHost: {{target_host}}\r\nAccept: */*\r\n\r\n"
store_as: resp_login
# Extract the JSESSIONID cookie, but only if the OpenNMS login fingerprint is
# present. jsessionid stays "" on a non-OpenNMS or unreachable target, which
# gates every later step.
- id: extract-cookie
action: script
condition: "resp_login.connected == true"
store_as: jsessionid
code: |
let cookie = "";
if type_of(resp_login.banner) == "string"
&& ereg("OpenNMS Group, Inc\\.", resp_login.banner) {
let m = eregmatch("JSESSIONID=([0-9A-Za-z]+)", resp_login.banner);
if m.len() > 1 { cookie = m[1]; }
}
cookie
# ── 2. POST /j_spring_security_check with the default rtc/rtc credentials ────
- id: login-submit
action: tcp_connect
port: "{{port}}"
condition: "jsessionid != \"\""
send: "POST /opennms/j_spring_security_check HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: JSESSIONID={{jsessionid}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 29\r\n\r\nj_username=rtc&j_password=rtc"
store_as: resp_auth
# A successful default-credential login = 302 Found → Location: .../index.jsp
# with NO ?login_error=1. Rust regex has no look-ahead, so the three conditions
# are checked explicitly in a script and folded into one boolean gate.
- id: auth-ok
action: script
condition: "jsessionid != \"\""
store_as: auth_ok
code: |
let ok = false;
if type_of(resp_auth.banner) == "string" {
let b = resp_auth.banner;
if ereg("^HTTP/1\\.[01] 302", b)
&& ereg("Location:[^\\r\\n]*/index\\.jsp", b)
&& !ereg("login_error", b) {
ok = true;
}
}
ok
# ── 3. GET /frontPage.htm with the authenticated session cookie ─────────────
- id: front-page
action: tcp_connect
port: "{{port}}"
condition: "auth_ok == true"
send: "GET /opennms/frontPage.htm HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: JSESSIONID={{jsessionid}}\r\nAccept: */*\r\n\r\n"
store_as: resp_front
# Confirm every authenticated-console marker the NASL requires is present
# (order-independent). front_ok gates the finding so detection keys on the
# authenticated area, never on a bare cookie.
- id: front-markers
action: script
condition: "auth_ok == true"
store_as: front_ok
code: |
let ok = false;
if type_of(resp_front.banner) == "string" {
let b = resp_front.banner;
if ereg(">Statistics<", b)
&& ereg(">Dashboard<", b)
&& ereg(">Change Password<", b)
&& ereg(">Log Out<", b)
&& ereg(">The OpenNMS Group, Inc\\.", b) {
ok = true;
}
}
ok
# ── Finding — keyed on the authenticated frontPage reached via rtc/rtc ──────
- id: report
action: match
condition: "front_ok == true"
source: resp_front.banner
pattern: ">Statistics<"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "OpenNMS default credentials rtc/rtc accepted: authenticated frontPage.htm reachable (Statistics / Dashboard / Change Password / Log Out / The OpenNMS Group, Inc. markers present)."
stop: true