Skip to content
Path traversal Write-up Intermediate

CVE 2024 — 24919

The Check Point Security Gateway's vpnd service used loose string matching to validate file paths, allowing unauthenticated attackers to read arbitrary files as root. Attackers could retrieve sensitive files such as password hashes and SSH keys, potentially leading to full domain compromise.

medium.com

Published on medium.com

CVE-2024–24919 is a critical unauthenticated arbitrary file read vulnerability affecting Check Point Security Gateways. The flaw exists in the vpnd service and allows attackers to read any file on the underlying GAIA OS as root, without authentication.

Owais Ali Khan, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The backend used loose string matching (checking only for the presence of 'CSHELL/') instead of validating that the resolved file path stayed within an allowed directory.

Impact

Attackers could read any readable file on the system as root, including password hashes and SSH keys, which could lead to VPN access, lateral movement, and full Active Directory compromise.

What the attacker needed

Target runs vulnerable Check Point Gateway; Network access to the gateway

How it was found

  1. Scan for exposed Check Point VPN portals and identify the /clients/MyCRL endpoint.
  2. Send benign POST requests to the endpoint to confirm it attempts to open a file path based on user input.
  3. Test path patterns and observe that requests containing 'CSHELL/' are accepted regardless of prefix.
  4. Construct a path traversal payload that includes 'CSHELL/' and directory traversal sequences to reach sensitive files.
  5. Send an unauthenticated POST request with the payload in the body to read the target file.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A VPN gateway is a device that lets people connect securely to a private network. The software that handles these connections checked only whether a certain word appeared anywhere in a file path, not whether the path was safe. This let anyone on the internet trick the device into showing secret files, like password lists, without logging in.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.