OpenMeetings — 1 vulnerability check
noctis ships 1 vulnerability check for OpenMeetings, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Apache OpenMeetings swf Parameter Reflected XSS
| CVE | CVE-2016-3089 |
|---|---|
| Severity | medium · CVSS 6.1 |
| Category | xss — XSS |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/openmeetings/CVE-2016-3089.yaml |
Apache OpenMeetings before 3.1.2 prints the swf query parameter of its /swf panel back into the page without HTML escaping, allowing reflected cross-site scripting.
Under the web root and /openmeetings, this check requests swf?swf=<script>alert(/marker/)</script>, where marker is random for each scan. The finding requires an HTTP 200 page carrying the OpenMeetings branding (">OpenMeetings<" and ">Timezone<") that contains the script element verbatim in the page text, outside any tag. A page that escapes the value is not reported. The request is a plain GET and changes nothing on the server.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/swf?swf=%3Cscript%3Ealert%28%2F{{tok}}%2F%29%3C%2Fscript%3E - Parses / computes the next value with a Rhai script
- Checks
xss_prooffor^<script>alert\(/noctis[0-9a-f]{12}/\)</script>$→ finding QoD 75: Apache OpenMeetings swf Parameter Reflected XSS (CVE-2016-3089)
References:
Feed source — tests/vulnerabilities/openmeetings/CVE-2016-3089.yaml
# Apache OpenMeetings < 3.1.2 — /swf panel 'swf' parameter reflected XSS (CVE-2016-3089)
#
# The Flash panel (/openmeetings/swf?swf=...) prints the swf query parameter back
# into the HTML page without escaping. CVE-2016-8736 (RMI deserialization) named in
# the same advisory has no HTTP probe and is not covered here.
#
# Differences with the source NASL (2016/gb_apache_openmeetings_swf_xss_vuln.nasl):
# - the NASL sends a fixed <script>alert(document.cookie)</script> and greps it; a
# page that always carries that string would match. This feed sends an element
# with a per-scan random marker and requires it back verbatim in a text node
# (no "<" between the previous ">" and the element), so an escaped or
# attribute-only reflection does not match;
# - the page must carry the OpenMeetings branding (">OpenMeetings<" and
# ">Timezone<", as the NASL's extra checks) and the feed also walks the
# default /openmeetings context and the web root.
#
# Source: OpenVAS/Greenbone NASL 2016/gb_apache_openmeetings_swf_xss_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.808658, GPL-2.0-only)
uid: 8199badc-5e5f-408a-9063-7a1556a7ca30
name: "Apache OpenMeetings swf Parameter Reflected XSS (CVE-2016-3089)"
description: |
Apache OpenMeetings before 3.1.2 prints the swf query parameter of its
/swf panel back into the page without HTML escaping, allowing reflected
cross-site scripting.
Under the web root and /openmeetings, this check requests
swf?swf=<script>alert(/marker/)</script>, where marker is random for each
scan. The finding requires an HTTP 200 page carrying the OpenMeetings
branding (">OpenMeetings<" and ">Timezone<") that contains the script
element verbatim in the page text, outside any tag. A page that escapes the
value is not reported. The request is a plain GET and changes nothing on the
server.
cves: [CVE-2016-3089]
cvss: 6.1
severity: medium
category: xss
confidence_base: 0.30
tags: [apache, openmeetings, xss]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2016-3089"
- "https://openmeetings.apache.org/security.html"
steps:
- id: marker
action: script
code: |
"noctis" + oob_token.sub_string(0, 8) + oob_token.sub_string(9, 4)
store_as: tok
- id: init-probe-r
action: set_var
var_name: probe_r
var_value: {status: 0, body: ""}
loop:
var: dir
over: ["/openmeetings", ""]
- id: probe
action: http_request
method: GET
path: "{{dir}}/swf?swf=%3Cscript%3Ealert%28%2F{{tok}}%2F%29%3C%2Fscript%3E"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
store_as: probe_r
- id: reflection
action: script
code: |
let out = "";
let b = if probe_r.status == 200 && type_of(probe_r.body) == "string" { probe_r.body } else { "" };
if b.contains(">OpenMeetings<") && b.contains(">Timezone<") && ereg(">[^<>]*<script>alert\\(/" + tok + "/\\)</script>", b) {
out = "<script>alert(/" + tok + "/)</script>";
}
out
store_as: xss_proof
- id: report
action: match
source: xss_proof
pattern: '^<script>alert\(/noctis[0-9a-f]{12}/\)</script>$'
on_match:
finding:
title: "Apache OpenMeetings swf Parameter Reflected XSS (CVE-2016-3089)"
description: "A request to the swf panel carrying a script element in the swf parameter was answered with an OpenMeetings page holding that element unescaped in the page text. An attacker can send a user a crafted link that runs script in the context of the OpenMeetings site, for example to steal the session cookie."
remediation: "Upgrade Apache OpenMeetings to 3.1.2 or later."
confidence_delta: 0.55
qod: 75
evidence: "GET {{dir}}/swf?swf=<injected element> returned HTTP 200 with an OpenMeetings page containing the element unescaped: {{xss_proof}}"
stop: true