# WordPress Plugin Update Confusion at trafficfactory.com

Custom WordPress plugin slug 'tf-elementor' was unclaimed in the WP.org SVN, letting an attacker publish a same-named plugin and backdoor it via the update flow.

- Payout: $200
- Severity: low
- Program: Traffic Factory
- Found by: vavkamil
- Disclosed: 2021-11-25
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/1364851
- Library page: https://bugbountylibrary.com/r/h1%3A1364851
- Tags: area:oss domain:oss impact:integrity impact:rce kind:bounty platform:hackerone sev:low tech:wordpress technique:recon technique:source-review vuln:business-logic vuln:dependency-confusion

**Target:** WordPress plugin update mechanism / WP.org SVN plugin directory
**Root cause:** WordPress trusts plugin slugs globally; an internally-named plugin absent from the public directory can be registered by anyone, and the site's auto-update then pulls attacker code.
**Steps:**
1. Passively scan front page JS/CSS asset paths for `/wp-content/plugins/<slug>/` to enumerate installed plugin slugs.
2. For each slug, check `https://plugins.svn.wordpress.org/<slug>` for existence; unclaimed slugs are candidates.
3. Submit a plugin with the same slug to WP.org; it passes automated review (lowercase alnum+dash, no reserved/trademarked slug, <100 installs).
4. Gain SVN commit access, upload backdoored plugin files, bump version.
5. Victim site receives update notification and auto/manual update installs the malicious version.
**How found:** Researcher hypothesized a Dependency-Confusion-style supply-chain attack on WordPress plugins, wrote a Python scanner that extracts plugin slugs from front-page asset URLs and checks them against the WP SVN registry, and found 'tf-elementor' unclaimed.
**Exploitation:** Attacker registers the unclaimed slug on WP.org, commits a backdoored plugin, and waits for the victim's routine plugin update to pull and execute the malicious code, yielding backdoor/RCE. Author did not claim the target slug (would break the site) but validated the flow with a self-published plugin.
**Insight:** Enumerate plugin slugs from `/wp-content/plugins/<slug>/` asset paths and diff against plugins.svn.wordpress.org; any internal-only slug is a claimable namespace for update-based supply-chain takeover.

