Description
WordPress Insert PHP plugin versions before 3.3.1 contain a PHP code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by injecting malicious shortcodes through the WordPress REST API. Attackers can send POST requests to the wp-json/wp/v2/posts endpoint with crafted content containing insert_php shortcodes to include and execute remote PHP files on the server.
Problem types
Improper Control of Generation of Code ('Code Injection')
Product status
Credits
sucuri.net @sucurisecurity
References
www.exploit-db.com/exploits/41308 (ExploitDB-41308)
fr.wordpress.org/plugins/insert-php/ (Official Product Homepage)
www.vulncheck.com/...-plugin-php-code-injection-via-rest-api (VulnCheck Advisory: WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API)