• Vulnerability: XSS
  • Affected Software: Give (50,000+ active installations)
  • Affected Version: 2.3.0
  • Patched Version: 2.3.1
  • Risk: Medium
  • Vendor Contacted: 11/24/2018
  • Vendor Fix: 12/13/2018
  • Public Disclosure: 02/05/2019

6.1 Medium CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N


The Give WordPress plugin is vulnerable to reflected XSS as it echoes various parameter without proper encoding.

Successful exploitation allows an attacker to execute JavaScript in the context of the application in the name of an attacked user. This in turn enables an attacker to bypass CSRF protection and thus perform any actions the legitimate user can perform, as well as read data which the user can access.

Proof of Concept
public function start_import() {
    <input type="hidden" value='<?php echo maybe_serialize( $_REQUEST['mapto'] ); ?>' name="mapto"
    <input type="hidden" value="<?php echo $_REQUEST['csv']; ?>" name="csv" class="csv">
    <input type="hidden" value="<?php echo $_REQUEST['mode']; ?>" name="mode" class="mode">
    <input type="hidden" value="<?php echo $_REQUEST['create_user']; ?>" name="create_user"
    <input type="hidden" value="<?php echo $_REQUEST['delete_csv']; ?>" name="delete_csv"
    <input type="hidden" value="<?php echo $delimiter; ?>" name="delimiter">
    <input type="hidden" value="<?php echo absint( $_REQUEST['dry_run'] ); ?>" name="dry_run">
  • 11/24/2018 Asked for email address via contact form
  • 11/24/2018 Vendor responds, advisory sent
  • 12/13/2018 Vendor releases fix
  • 02/05/2019 Confirmed fix & Disclosure