WordPress Plugin “Code Snippets” Vulnerability Risked Over 200K Websites

Researchers have found another WordPress plugin to be posing a threat to hundreds of thousands of websites. Specifically, they a serious vulnerability in the Code Snippets plugin.

Reportedly, the team Wordfence has recently discovered a high-severity vulnerability in the WordPress plugin Code Snippets. As revealed through their advisory, there is a CSRF to remote code execution flaw in the plugin. Exploiting the bug could allow an adversary to take control of the target websites.

In brief, the Code Snippets plugin’s import function lacked CSRF protection. This allowed an attacker to craft malicious requests and inject code on the target site.

Although, any codes being imported through the plugin are “disabled” by default. This could ideally have prevented any code execution upon a CSRF attack. However, the researchers found that an adversary could bypass this setting.

The following video demonstrates an attack scenario.

According to the researchers, the vulnerabilities needed immediate attention owing to their severity and the potential risk to over 200,000 sites, as evident by the number of active installations given on the Plugin web page.

You Might Also Like