Skip to content
Access control Write-up Beginner

The Official Facebook Chat Plugin Created Vector for Social Engineering Attacks

The WordPress plugin lacked capability checks on an AJAX action, allowing any authenticated user, even a subscriber, to change the connected Facebook page ID. An attacker could link their own Facebook Messenger account to the site's chat, intercepting visitor messages and enabling social engineering attacks.

wordfence.com

Published on wordfence.com

On June 26, 2020, our Threat Intelligence team discovered a vulnerability in The Official Facebook Chat Plugin, a WordPress plugin installed on over 80,000 sites. This flaw made it possible for low-level authenticated attackers to connect their own Facebook Messenger account to any site running the vulnerable plugin…

Chloe Chamberland, on wordfence.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The AJAX action that updates the plugin's options did not check whether the user had administrator privileges, and the nonce needed to perform the action was exposed to any authenticated user.

Impact

An attacker could receive all chat messages intended for the site owner, enabling social engineering to steal credentials or other sensitive information, or could disable the chat entirely.

What the attacker needed

Victim runs vulnerable plugin version ≤1.5; attacker can register a user account; attacker has a Facebook page

The fix

The vulnerability was fixed in version 1.6 by adding capability checks to the AJAX action.

How it was found

  1. Register a low-privileged account on the target WordPress site.
  2. Access the /wp-admin dashboard and extract the nonce from the page source.
  3. Send a request to the update_options AJAX action with the nonce and a new page ID.
  4. The plugin updates the connected Facebook page to the attacker's page.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A WordPress plugin that adds a Facebook chat box to a website had a security hole. Any logged-in user, even with the lowest permissions, could change which Facebook account receives the chat messages. This meant an attacker could take over the chat and trick visitors into giving away information.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.