Skip to content
Path traversal Advisory Advanced CVE-2024-5762

Zen Cart findPluginAdminPage Local File Inclusion Remote Code Execution Vulnerability

The findPluginAdminPage function in Zen Cart fails to validate user-supplied data before passing it to a PHP include, allowing an unauthenticated attacker to include local files. This can be chained with other vulnerabilities to execute arbitrary code as the service account.

Anonymous Follow

Originally disclosed on Zero Day Initiative

High 8.1 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Zen Cart. Authentication is not required to exploit this vulnerability.

Anonymous, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the findPluginAdminPage function passes user-controlled input directly to a PHP include without validating or restricting the path.

Impact

An unauthenticated attacker could execute arbitrary code in the context of the service account, but the text says this requires chaining with other vulnerabilities.

What the attacker needed

No authentication required; chaining with other vulnerabilities

The fix

Zen Cart issued an update to correct this vulnerability.

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 report has not been written yet. The Original tab links to the source.

A PHP include statement pulls in another file to run as code. Here the file path comes from user input without checks, so an attacker can point it at a file they control or a sensitive local file. That can lead to running their own code on the server.

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 Anonymous

View all

2,270 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.