WP Photo Album Plus <= 9.3.07.003 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Comment Field
The WP Photo Album Plus plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data.comment' parameter in all versions up to, and including, 9.3.07.003 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The double-encoded entity bypass works because wp_kses_post() and esc_js() both preserve the stored &amp;#39; value intact, and it is only the subsequent wppa_compress_html() rewrite pass that collapses it to a browser-decoded literal single quote capable of breaking out of the JavaScript string. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.