VDB
Sign up
MEDIUM5.4

GHSA-g9w4-m5fx-x3wv

Yoast Duplicate Post has an Authenticated (Contributor+) Missing Authorization to Arbitrary Post Duplication and Overwrite

Quick fix

GHSA-g9w4-m5fx-x3wv — yoast/duplicate-post: upgrade to the fixed version with the command below.

composer require yoast/duplicate-post:^4.6

Details

The Yoast Duplicate Post plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the clone_bulk_action_handler() and republish_request() functions in all versions up to, and including, 4.5. This makes it possible for authenticated attackers, with Contributor-level access and above, to duplicate any post on the site including private, draft, and trashed posts they shouldn't have access to. Additionally, attackers with Author-level access and above can use the Rewrite & Republish feature to overwrite any published post with their own content.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/yoast/duplicate-post
Introduced in: 0Fixed in: 4.6
Fixcomposer require yoast/duplicate-post:^4.6

References