The Welcomizer <= 2.8.1 - Missing Authorization to Authenticated (Subscriber+) Remote Code Execution via 'twiz_custom_logic' Parameter
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
The The Welcomizer plugin for WordPress is vulnerable to Remote Code Execution in all versions up to and including 2.8.1. This is due to missing authorization checks on the twiz_ajax_callback AJAX action's 'savesection' handler combined with the use of eval() to execute user-supplied 'custom logic' code on the frontend. The AJAX handler at twiz-ajax.php verifies a nonce but performs no current_user_can() capability check for the ACTION_SAVE_SECTION case. Furthermore, the nonce is exposed to any authenticated user through the directly-accessible twiz-ajax.js.php file which loads WordPress and outputs the nonce. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary PHP code via the twiz_custom_logic POST parameter when saving a section with output choice 'twiz_logic_output'.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- sebwordpress The Welcomizer
through 2.8.1
References 12
plugins.trac.wordpress.org
- browser/the-welcomizer/trunk/includes/twiz.output.class.php#L828
- browser/the-welcomizer/tags/2.8.1/includes/twiz.output.class.php#L828
- browser/the-welcomizer/trunk/twiz-ajax.php#L148
- browser/the-welcomizer/tags/2.8.1/twiz-ajax.php#L148
- browser/the-welcomizer/trunk/includes/twiz.menu.class.php#L265
- browser/the-welcomizer/tags/2.8.1/includes/twiz.menu.class.php#L265
- browser/the-welcomizer/trunk/includes/twiz.menu.class.php#L507
- browser/the-welcomizer/tags/2.8.1/includes/twiz.menu.class.php#L507
- browser/the-welcomizer/trunk/includes/twiz.menu.class.php#L580
- browser/the-welcomizer/tags/2.8.1/includes/twiz.menu.class.php#L580
- log/the-welcomizer