Ew, that's unsanitary: SEO plugin for WordPress would run arbitrary JavaScript inputs instead of scrubbing them

XSS vuln could hijack websites so update your All in One pack

A popular WordPress search engine optimisation plugin with around two million installs could have been abused to hijack a target website, according to a threat intel firm.

"This flaw allowed authenticated users with contributor level access or above the ability to inject malicious scripts that would be executed if a victim accessed the wp-admin panel's 'all posts' page," said WordPress-focused infosec biz Wordfence in a blog post about the vuln in the All in One SEO Pack plugin.

The cross-site scripting (XSS) vuln could have been abused to hijack control of a targeted site from its operators. With WordPress powering a large number of high-profile websites, and All in One SEO being very popular (and free at its basic tier), the potential impact of the vuln was widespread.

As its name suggests, the plugin is intended to make the appearance of one's blog posts on Google search results a simple and automated process. Among other things, the plugin creates SEO-specific input fields on new posts with the aim of boosting the post's search ranking in response to certain specified terms.

"Unfortunately, the SEO meta data for posts, including the SEO title and SEO description fields, had no input sanitization allowing lower-level users like contributors and authors the ability to inject HTML and malicious JavaScript into those fields," said Wordfence.

Worse, JavaScript inserted into those fields "would also be executed when visiting the page directly if a closing tag was inserted by an attacker before adding their own script". Instead of sanitising inputs, the plugin merely executed them – so escaping the plugin's own </script> tag was trivially easy.

Larger WordPress websites allow varying levels of user privileges: a Contributor can write whatever they want but their post must be approved by an Editor or Administrator before it is published. To do so, the higher-priv'd account must access the site's "all posts" page in the backend. An attacker who compromised a lower-level account could insert arbitrary JS into the SEO plugin metadata fields, with that JS being executed once the admin opened the draft post for editing.

All in One SEO Pack's devs have now patched the vuln in version 3.6.2 by sanitising inputs. Users of the popular plugin should install the latest update.

"If someone calls you, sends you an email, or contacts you in any way saying they need access to your site for any reason, and it's not coming from someone you know and trust, then it might be a social engineering attempt. Never provide credentials or user account access unless you can trust and verify who you are providing that information to," urged Wordfence, adding that blog admins should enable 2FA where possible to harden all account privilege levels against takeovers. ®

Similar topics

Broader topics

Other stories you might like

  • Experts: AI should be recognized as inventors in patent law
    Plus: Police release deepfake of murdered teen in cold case, and more

    In-brief Governments around the world should pass intellectual property laws that grant rights to AI systems, two academics at the University of New South Wales in Australia argued.

    Alexandra George, and Toby Walsh, professors of law and AI, respectively, believe failing to recognize machines as inventors could have long-lasting impacts on economies and societies. 

    "If courts and governments decide that AI-made inventions cannot be patented, the implications could be huge," they wrote in a comment article published in Nature. "Funders and businesses would be less incentivized to pursue useful research using AI inventors when a return on their investment could be limited. Society could miss out on the development of worthwhile and life-saving inventions."

    Continue reading
  • Declassified and released: More secret files on US govt's emergency doomsday powers
    Nuke incoming? Quick break out the plans for rationing, censorship, property seizures, and more

    More papers describing the orders and messages the US President can issue in the event of apocalyptic crises, such as a devastating nuclear attack, have been declassified and released for all to see.

    These government files are part of a larger collection of records that discuss the nature, reach, and use of secret Presidential Emergency Action Documents: these are executive orders, announcements, and statements to Congress that are all ready to sign and send out as soon as a doomsday scenario occurs. PEADs are supposed to give America's commander-in-chief immediate extraordinary powers to overcome extraordinary events.

    PEADs have never been declassified or revealed before. They remain hush-hush, and their exact details are not publicly known.

    Continue reading
  • Stolen university credentials up for sale by Russian crooks, FBI warns
    Forget dark-web souks, thousands of these are already being traded on public bazaars

    Russian crooks are selling network credentials and virtual private network access for a "multitude" of US universities and colleges on criminal marketplaces, according to the FBI.

    According to a warning issued on Thursday, these stolen credentials sell for thousands of dollars on both dark web and public internet forums, and could lead to subsequent cyberattacks against individual employees or the schools themselves.

    "The exposure of usernames and passwords can lead to brute force credential stuffing computer network attacks, whereby attackers attempt logins across various internet sites or exploit them for subsequent cyber attacks as criminal actors take advantage of users recycling the same credentials across multiple accounts, internet sites, and services," the Feds' alert [PDF] said.

    Continue reading

Biting the hand that feeds IT © 1998–2022