Skip to content
Path traversal Write-up Beginner

POC — CVE-2024–9935 — PDF Generator Addon for Elementor Page Builder <= 1.7.5 — Unauthenticated Arbitrary File Download

The PDF Generator Addon for Elementor Page Builder plugin for WordPress is vulnerable to path traversal in the rtw_pgaepb_dwnld_pdf() function, allowing unauthenticated attackers to read arbitrary files on the server. This could expose sensitive information.

Very Lazy Tech Follow

Published on systemweakness.com

✨ For the Free article click here

Very Lazy Tech 👾, on systemweakness.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

Likely the rtw_pgaepb_dwnld_pdf() function does not properly sanitise the file path parameter, allowing directory traversal sequences to access files outside the intended directory.

Impact

An unauthenticated attacker could read arbitrary files on the server, potentially exposing sensitive information.

What the attacker needed

Target runs vulnerable plugin version; No authentication required

How it was found

  1. Find a target WordPress site using the plugin by searching for the plugin's path in the page source.
  2. Clone the proof-of-concept repository or copy the script.
  3. Run the script with the target URL, the file path to download, and the action (download or view).
  4. The script sends a crafted request to the target URL with a path traversal payload.
  5. If successful, the file is downloaded or displayed.

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 path traversal flaw lets an attacker use special characters like '../' in a file path to escape the intended folder and access other files on the server. Here, the plugin fails to properly check the file path, so anyone can request files outside the plugin's directory, such as system files, 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.

More by Very Lazy Tech

View all

9 more disclosed reports, best first.

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.