PhastPress <= 3.7 - Unauthenticated Arbitrary File Read via Null Byte Injection

2025-12-22 00:00
shark3y

Strategic Overview

Status
Patched in 3.8
Affected PluginPhastPress
Affected Version<= 3.7
CVSS9.8Critical
CVECVE-2025-14388
View all PhastPress vulnerabilities

Vulnerability Overview

The PhastPress plugin for WordPress is vulnerable to Unauthenticated Arbitrary File Read via null byte injection in all versions up to, and including, 3.7. This is due to a discrepancy between the extension validation in `getExtensionForURL()` which operates on URL-decoded paths, and `appendNormalized()` which strips everything after a null byte before constructing the filesystem path. This makes it possible for unauthenticated attackers to read arbitrary files from the webroot, including wp-config.php, by appending a double URL-encoded null byte (%2500) followed by an allowed extension (.txt) to the file path.

Technical Analysis

REMEDIATION: Update to version 3.8, or a newer patched version --- IDENTIFIER: CWE-158 (Improper Neutralization of Null Byte or NUL Character) The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes NUL characters or null bytes when they are sent to a downstream component.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C