Dave Jong discovered and reported this Cross Site Scripting (XSS) vulnerability in WordPress My Super Plugin Plugin to Patchstack.
See tips for patching this kind of vulnerabilityThis vulnerability exists due to missing access control in the wp_nopriv_myaction WP AJAX action.
In order to reproduce it, send a POST payload to /wp-admin/admin-ajax.php with the follow POST parameters:
action:myaction
option:myoptionname
value:<script>alert(1)</script>
After this, the JavaScript script above will be executed on all pages.
This is an additional comment left by the Patchstack team.